95

The TeX Gyre Fonts Latin Modern This is the default font family loaded by unicode-math, but can also be set up explicitly. It is an OpenType version of Latin Modern, a clone of DEK’s Computer Modern, based on Monotype Modern, and of the AMS symbol fonts. The default fonts are therefore nearly identical to those of classic LaTeX. This conversion is the ...


63

(Please note that this answer has been revised to reflect issues raised in the comments.) unicode-math The unicode-math and mathspec packages have very different goals. The unicode-math package is designed to map math markup into unicode characters as supplied by real OpenType math fonts such as the Latin Modern Math, STIX, Asana Math. It also allows (as ...


45

Talking about pdfLaTeX, the command \mathscr from the package mathrsfs only support capital letters... MWE %!TEX TS-program = pdflatex %!TEX encoding = UTF-8 Unicode \documentclass[a4paper]{report} \usepackage{mathrsfs} \begin{document} $\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \end{document}


43

mathspec is a clever attempt to make it possible to use math in XeLaTeX documents, with system fonts for the letters and symbols from standard math fonts. With unicode-math one can basically use only specially tailored OpenType math fonts such as Latin Modern Math, TeX Gyre Termes Math, TeX Gyre Pagella Math, XITS Math, Asana Math (among the free ones) or ...


34

There is a new LaTeX math package called newtx with a libertine option that matches Libertine text, using Libertine Roman italic and Greek together with symbols from the old txfonts package, remetrized so as not to be as cramped, and with optical versions of math italic and symbols. Versions prior to 0.93 were problematic, but 0.93, which should appear ...


34

As the Unicode project seeks to determine the semantics of the glyphs rather than their graphical representation, this question is quite interesting. Although I agree that all of these “bullets” could theoretically look the same (and one wouldn’t need to care about this issue at all), the semantic background can—at least to some degree—be inferred by the ...


28

unicode-math is mainly concerned about facilitating the use of using Unicode math fonts, namely OpenType math fonts in LaTeX. While mathspec is about allowing to take math alphabets from text fonts in the absence of matching math font. Unicode defines a large set of math symbols and many fonts include them, but proper math typesetting requires many font ...


27

There is a new version of the template. Check here: https://github.com/posquit0/Awesome-CV/commit/6e8586270b203d5861377ba017f30cf16ed425cc You have to replace line 1) with line 2) and you will get it fixed: 1) \RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math} 2) \RequirePackage{unicode-math}


26

After last Khaled's comment, here's something that seems to work \Umathchardef\xnot="3 \symoperators "0338 \AtBeginDocument{ \renewcommand\not[1]{#1\xnot} \renewcommand{\notin}{\not\in} } Then $a\not\in b \notin c$ will work (although the placement doesn't seem to be optimal). \documentclass{article} \usepackage{unicode-math} \setmainfont{Latin ...


23

This answers your question title, but not your explanation (which seems to imply that you cannot use vulgar fractions with pdfLaTeX). The textcomp package makes available \textonehalf, \textonequarter, and \textthreequarters. If your font and chosen encoding supports these, then they can be used directly. (If your font does not support these, however, you ...


22

The situation with fonts is much better than you thought! I absolutely agree with your advisor that you should use OpenType fonts (and therefore, the unicode-math package on either XeLaTeX or LuaLaTeX). Any OpenType math font will have more-complete and consistent symbol coverage than any combination of legacy LaTeX packages, but the package also allows ...


19

It's quite strange that the symbol is missing in Latin Modern Math, TeX Gyre Termes Math and TeX Gyre Pagella and it's probably worth a bug report. You can supplement single symbols with the range option to \setmathfont: \documentclass{article} \usepackage{unicode-math} %\setmathfont{Latin Modern Math} % default \setmathfont[range=\setminus]{Asana Math} \...


19

I'm now doing one: https://github.com/firamath/firamath, which is based on FiraSans. Here is a showcase (use beamer theme metropolis): Of course, this work is far away from finished. For example, most of the relation symbols haven't been drawn. By the way, I'm a newbie to font design and creation, so if you have any suggestions, please tell me. Update: ...


18

I'm not sure what's supposed to be best. The following methods work well, though. For the Times (New) Roman text font, you could choose (via \setmainfont) Times New Roman XITS TeX Gyre Termes Stix Two Text (see http://stixfonts.org/ for more information) For a Times (New) Roman-like math font, first load the unicode-math package and then load (via \...


17

You can use \reflectbox from graphicx and also \text from amsmath to get the symbol to scale in sub/superscripts \documentclass{article} \usepackage{amsmath,graphicx} \usepackage{unicode-math} \setmathfont{Lucida Bright Math OT} \DeclareRobustCommand{\ammaG}{\text{\reflectbox{$\Gamma$}}} \begin{document} $\Gamma\ne\ammaG$ $\Gamma=\Gamma$ $\ammaG_{\...


17

I have posted several versions of a couple of book chapters at the following website: http://empslocal.ex.ac.uk/people/staff/gv219/aofd/fonts/ There you will find the same 100-plus page document typeset with Lucida, Minion-Math, MathTime, Cambria, Tex-Gyre and others. Comments, and other examples, would be welcome. Also, as an update, for the final ...


17

The Latin Modern Math and TeX Gyre Math support projects are complete. Together, these fonts provide a total of 5 fonts for typesetting mathematics, all produced by the GUST e-foundry. Details can be found here. That page lists an additional six fonts, produced by other foundries, which support the mathematics opentype extension, including 3 available from ...


16

Note that this explanation is actually a guess. I do not know enough about how these things work to be sure. Caveat emptor. It would be great to have a real solution to this problem. A real solution requires extending the opentype versions of MnSymbol quite significantly, I think. (I explain why below - I don't mean that the coverage is insufficient.) ...


15

As I already wrote in the comments: unicode-math defines \question. So you can't use "question" as the name of your environment. Replace it by e.g. questionX: \documentclass{article} \usepackage{unicode-math} % This causes the question mark bug \newtheorem{theorem}{Theorem} \newtheorem{question}[theorem]{Question} \newtheorem{questionX}[theorem]{Question} ...


14

The difference is mainly historical. \BbbN was created for the original amsfonts, pre-LaTeX; it should be considered obsolete now. (Oops! @egreg points out in a comment that \BbbN has been defined for unicode-math, so I was thinking of \Bbb{N}. That surely should be considered obsolete.) The original LaTeX equivalent is \mathbb{N}, and should still be ...


13

To provide a more current answer to this, there is now Libertinus, a fork of Linux Libertine with bug fixes and pretty nice math support (check out this example document). \documentclass[varwidth,border=1mm]{standalone} \usepackage[ math-style=ISO, bold-style=ISO, partial=upright, nabla=upright ]{unicode-math} \setmainfont{Libertinus Serif}...


13

This usually means you have several different versions of the font accessible to XeTeX. Because of the way XeTeX passes the font to the XDV driver (usually xdvipdfmx), sometimes the engine and the driver load different versions of the font when there is more than one and when they have different glyph id, you get effects like this. You can use \...


13

This can be achieved using a setting in the tick label style key. By default (without getting into too much details), pgf/pgfplots uses some "\ensuremath-like" business internally when typesetting the tick labels. We can disable this by setting tick label style={/pgf/number format/assume math mode=true}. What this does is tells pgf to assume that the input ...


13

For luatex you can load the fonts in base mode \ifx\XeTeXversion\undefined \input luaotfload.sty \def\otf#1{file:#1.otf:mode=base} \else \def\otf#1{[#1.otf]} \fi For xetex, I pinged Arthur in chat.... luaotfload documentation explains the need for this: base mode works by mapping OpenType features to traditional TeX ligature and kerning ...


13

The problem has a long history. It was brought up in 2011, as far as I know, with a message to the TeX Live mailing list; the thread went on also in the LuaTeX list. The problem is that LuaTeX doesn't add the italic correction in math mode after characters having category code 11. Indeed, in TeX Live 2011, the output from your code would be the same as you ...


13

It works with the development version of expl3, seems to have got ahead of ctan release, this will work in the meantime. \documentclass[12pt]{article} \ifdefined\suppressfontnotfounderror \expandafter\let\csname xetex_suppressfontnotfounderror:D\endcsname \suppressfontnotfounderror \else \expandafter\let\csname xetex_suppressfontnotfounderror:D\...


12

The following makes \setminus equivalent to \smallsetminus: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \AtBeginDocument{\let\setminus\smallsetminus} \begin{document} \[ A \setminus B \qquad A \smallsetminus B \] \end{document} The \AtBeginDocument is necessary because unicode-math defines its commands only at \...


12

You're not defining a main math font. \documentclass{article} \usepackage{fontspec} \usepackage[vargreek-shape=unicode]{unicode-math} \setmainfont{Georgia} \setmathfont{Neo Euler} \setmathfont[range=\mathit/{latin,Latin,greek,Greek}]{Georgia-Italic} \begin{document} Answer: $(1+00)^*=\{1, \mathbf{00}, 001, 100, 10000, \ldots \}$\\ and $b^2= 22 \times ...


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