New answers tagged math-mode
2
votes
Accepted
Issue with `tcolorbox` record option together with math delimiters `\( \)` in the title
The code compiles if in the key record, #2 is replaced by \unexpanded{#2}. Then \(x\) can be used.
\documentclass[10pt,a4paper,french]{book}
\usepackage{babel}
\usepackage[most]{tcolorbox}
\...
4
votes
Create a new math symbol
Old question, but the given answer has the defect of forcing MnSymbol which is rarely desired.
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\NewDocumentCommand{\triangleLeft}{}{%...
1
vote
Is there a LaTeX symbol for 'order'?
An additional possibility for "order" on this request that is worth disambiguating here is the symbol for the "precedence" relational operator or lexicographic order in formal ...
6
votes
How can I break an alignedat/gathered environment between pages?
I'd like to suggest that you reconsider insisting on using a single equation number to denote all rows of the multi-row equation environment. (I can't see a good reason for not numbering each row ...
5
votes
Subscripts in fractions on an exponent look terrible
Bad notation, I'd say. Your readers won't be very happy.
\RequirePackage{fix-cm}
\documentclass[11pt]{article}
\usepackage{amsmath}
%\DeclareMathSizes{5}{5}{4}{3}% for 10pt
\DeclareMathSizes{6}{6}{5}{...
8
votes
Subscripts in fractions on an exponent look terrible
In order for
$Q^{\frac{1}{n_K}}$
to have a chance to look decent, TeX would have to provide not just two but, in fact, three subscript depth layers.
TeX's two basic subscript and superscript depth ...
0
votes
how to write multiple overlapping underbraces
\begin{displaymath}
\rlap{\ensuremath{\underbrace{\phantom{\underbrace{C}_{D}}}_{B}}} A\underbrace{C}_{D}
\end{displaymath}
1
vote
Accepted
what can be the code of this series which takes 3 values
Use the cases environment.
\begin{equation}
\begin{cases}
\binom{n}{k}\binom{D(\alpha-k)+n}{n} & \text{if } \alpha-k\geq0 \\
0 & \text{if } \frac{-n}{D}\leq\alpha-k<0 \\
...
7
votes
Accepted
Improve spacing around equality = and other math relation symbols
TeX inserts \thickmuskip (math) glue around relation symbols and LaTeX sets, by default
\thickmuskip=5mu plus 5mu
If you reduce it, you should also take into account \medmuskip which is inserted ...
1
vote
Avoid underset text overlaping
I did it
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{calc}
\newcommand{\lunderset}[2]
{\underset
{ \parbox{\widthof{\scriptsize{#1}}}{\scriptsize{#1}}}
{ \parbox{\...
1
vote
Avoid underset text overlaping
The problem is not \underset, it is \mathrlap the only purpose of that command is to make the text overLAP on the Right, which is what you show.
If you must do this, I'd give yourself a bit more room ...
1
vote
Avoid underset text overlaping
Just for fun. It still can do nothing about text which is too wide for the box (unless you add hyphenation).
\documentclass[14pt]{article}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{...
3
votes
Avoid underset text overlaping
I suggest you shift the text of the middle \lunderset directive down, by inserting a \substack directive.
I can't help but remark that I don't find this setup easily readable.
\documentclass[12pt]{...
2
votes
Is there a customizable version of the `\boldmath` command?
I'd prefer to use semantic markup, rather than defaults: say
\newcommand{\mm}[1]{\bm{#1}}% matrix
\newcommand{\vv}[1]{\bm{#1}}% vector
and in the body of the document you type
$\mm{A}\vv{v}=\lambda\...
3
votes
Accepted
Is there a customizable version of the `\boldmath` command?
You can adjust the mathcode of A and V to use bold italic
\documentclass{article}
\usepackage[a6paper, margin=0.25in]{geometry}
\setlength{\parindent}{0pt}
\pagestyle{empty}
\DeclareSymbolFont{...
0
votes
How to make \left, \right pairs of delimiter work over multiple lines?
I recently wrote a longmath package that deals with the problem at the Lua level, so it works with lualatex.
It allows you to have delimiter groups over multiple lines, or link delimiters in different ...
1
vote
Types of mathversions in LaTeX
The text font used looks like Roboto, while the math font is the default MathJax TeX math font. I don't think the MathJax TeX .otf fonts can be used in LaTeX as they lack an OpenType Math table. But ...
0
votes
How to make \left, \right pairs of delimiter work over multiple lines?
I came here from this recent question on the same topic, and even if this is an old question, and even if it is likely a LaTeX question, I think it might be useful for some people to have a ConTeXt ...
1
vote
Types of mathversions in LaTeX
The text font is Arial (see also using word editor) and the math font is Computern Modern. Compiling with XeLaTeX engine you will have:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\...
2
votes
Specific calligraphic font for lowercase g
For reference, if you use unicode maths fonts, unicode-aware engines like xetex or lualatex, then unicode-math package provides access to
𝒢 U+1D4A2 and 𝓖 U+1D4D6 with \mscrG and\mbfscrG. Direct ...
1
vote
Specific calligraphic font for lowercase g
You could use free text/math fonts like newtxtext, newtxmath. I have added another option \rsfscr{G} that work under \DeclareMathAlphabet\rsfscr{U}{rsfso}{m}{n}.
\documentclass[a4paper,12pt]{article}
\...
6
votes
Accepted
Specific calligraphic font for lowercase g
It is an alternative glyph for capital Script G, provided by the professional (paid) MathTime Professional II fonts. If you have the complete set of fonts installed, you can get that symbol using \...
0
votes
Problem when combining \widebar and \mathring
I'd not use that complicated code by Hendrik Vogt.
\documentclass{article}
\usepackage{amsmath}
% see https://tex.stackexchange.com/a/364929/4427
\DeclareFontFamily{U}{mathx}{}
\...
3
votes
How to patch command to work differently in math mode?
I'd simply redefine the commands to yield \text{\stchr<number>}
\documentclass{article}
\usepackage[amsthm, libertine, varbb]{newtxmath}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage[...
4
votes
How to patch command to work differently in math mode?
The (few) commands that latex defines to work in text and math work by defining separate commands \textfoo and \mathfoo then defining \foo by
\NewDocumentCommand\foo{}{\TextOrMath\textfoo\mathfoo}
...
1
vote
How to use a the tt font for mathrm?
You want to redeclare the operators symbol font.
\documentclass{article}
\usepackage[euler-digits,euler-hat-accent]{eulervm}
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\ttdefault}
\...
2
votes
Nice looking empty set?
You could use the package unicode-math to change a specific math symbol's font without changing other symbols'.
Here is how I used:
\usepackage{unicode-math}
\setmathfont{latinmodern-math.otf}
\...
1
vote
Creating a command to display blackboard font
Old LaTeX still kicking.
\documentclass{article}
\usepackage{amssymb}
\makeatletter
\@tfor\x:=ABCDEFGHIJKLMNOPQRSTUVWXYZ\do{%
\ifcsname \x\x\endcsname
\typeout{Not redefining \@...
4
votes
Creating a command to display blackboard font
An alternative which allows arbitrary lists of letters or ranges.
\documentclass{article}
\usepackage{pgffor}
\usepackage{amsfonts}
\def\batchdef#1#2#3{%
\def\processletter##1{\expandafter\gdef\...
0
votes
Preventing Ångström symbol being italicised in pythontex
I presume the question is about creating a string for something like a matplotlib label, where there is a latex interpreter so you can use a latex environment by putting text between $$. The suggested ...
13
votes
Creating a command to display blackboard font
\documentclass{article}
\usepackage{amssymb}
\ExplSyntaxOn
\int_step_inline:nnn { 1 } { 26 }
{
\cs_if_exist:cTF { \int_to_Alph:n {#1} \int_to_Alph:n {#1} }
{
\iow_term:e { Not~redefining~\...
1
vote
Defining a functional map
Nest aligned[t] inside aligned inside equation.
I provide two realizations; in the bottom one there are a couple of improvements:
the arrows are shorter (and nicer);
the parentheses around [0,1],\RR ...
3
votes
Defining a functional map
Using alignat enviroment and text and math font Cambria with XeLaTeX engine.
\documentclass[12pt]{article}
\usepackage{fontspec,unicode-math}
\setmainfont{Cambria}
\setmathfont{Cambria Math}
\begin{...
7
votes
Accepted
Defining a functional map
Use aligned inside align*:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{align*}
\Psi: C([0,1],\mathbb{R}) &\longrightarrow C([0,1],\mathbb{R}) \\
...
Top 50 recent answers are included
Related Tags
math-mode × 9760amsmath × 992
symbols × 929
equations × 899
fonts × 823
spacing × 712
align × 584
macros × 382
math-operators × 382
horizontal-alignment × 331
formatting × 294
matrices × 268
errors × 264
subscripts × 255
tables × 226
tikz-pgf × 207
line-breaking × 200
unicode-math × 192
brackets × 190
xetex × 178
vertical-alignment × 171
beamer × 165
bold × 164
accents × 162
superscripts × 161