# Tag Info

26

Yes it matters. In the first case the comma is from the math font, and depending on your math setup can be different from the text font. So you should make sure that all commas are either from text or math and not mixed. Which one is better depends on the context, in a normal sentence I would use the text comma. \documentclass{article} ...

20

TeX will not break a line at the “control space”, because it's allowed to break lines in formulas only after binary operators such as + or =. Glue in math mode is not an allowed break point. The spaces in $a,\ b$, and $c$ will be different, because TeX adds a thin space between a punctuation atom (the comma) and an ordinary atom (the ‘b’), independently ...

14

in latex.ltx there is a line \let\sp=^ so there is an alternate command, \sp, that will produce a superscript. @egreg notes in a comment that this isn't available for mathjax, so it's apparently not "portable". however, david cervone (mathjax lead developer) says that MathJax does handle \let\sp=^ [...]. MathJax's \let only works to set a control ...

7

The use of math alphabet commands in unicode-math is somewhat broken there are open issues at github which mentions \mathit but \mathrm is the same. You can redefine \mathrm to use the Roman text font as follows: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \setmathfont[range=\mathup]{Latin Modern Roman} ...

4

Try this: \documentclass{beamer} \usefonttheme[onlymath]{serif} \begin{document} \begin{frame} Here goes the text $x + y = Z$ \end{frame} \end{document}

3

Define a new symbol font using the font of newtxmath and tell TeX to take \gamma from it. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tgtermes} \usepackage{amsmath,amsfonts} \usepackage[zswash,lite]{mtpro2} \usepackage{bm} \DeclareSymbolFont{newtxletters}{OML}{ntxmi}{m}{it} \SetSymbolFont{newtxletters}{bold}{OML}{ntxmi}{b}{it} ...

1

\documentclass{article} \usepackage{amsmath} \begin{document} $A \in R^{M \times K_{0,}}$ $u = [u_1,\dots,u_{K_0}]^T$ $\min\sum^{K_0}_{i=1}(u_i+v_i), \text{ s.t. } [A,-A][u^T,v^T]^T = y, u \geq 0, v \geq 0,$ $\mathit{Ind}^{(n)}_+ \text{ and } \mathit{Ind}^{(n)}_-$ $\mathit{IND}^+_k = ... 1 \documentclass{article} \begin{document} \[ \in \mbox{and} \ni$ \end{document} The symbol can be found in "Table 139: Letter-like Symbols" of The Comprehensive LaTeX Symbol List.

Only top voted, non community-wiki answers of a minimum length are eligible