141

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 work ...


67

(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 ...


53

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}


48

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 ...


31

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}


29

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 ...


23

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: ...


23

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 ...


21

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} \...


18

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 ...


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

This is not a problem of cyrillic math characters; if the text were English, the correct input would be Letters only \[ \text{Memory: } M_{\textup{add}}(n) = \Theta(N) \] because Память and доп are not math. The difference becomes clear when comparing this with the output of \[ Memory: M_{add}(n) = \Theta(N) \] The bottom formula is clearly wrong. Textual ...


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

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}...


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

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

Edit2: Complete rewrite, with mostly complete explanation of all the intricacies. This is due to a complication in how XeTeX decides what fontdimen parameter to use, as Heiko notes in his answer to that question. In another answer, Khaled Hosny confirms that the details are buggy. To center the brace vertically, bytefield sets the \fontdimen22 of \...


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 ...


12

Load babel before unicode-math: \documentclass{minimal} \usepackage[frenchb]{babel} \usepackage{unicode-math} \setmathfont{XITS Math} \begin{document} a: ba : b $a:b$ \end{document} The difference lies in the fact that XeLaTeX and LuaLaTeX use different methods for typesetting the colon French style, that is with equal spaces on either side. If you ...


12

It's a very unfortunate state of affairs. The problem is that unicode-math does most of its work during processing of \AtBeginDocument tokens, that is, when \begin{document} is scanned. Part of this is to define \question as a math symbol producing a question mark. So, when you define the question environment with \newtheorem, no error is raised. But ...


12

There are two choices; one is easier: \documentclass{article} \usepackage{unicode-math} \setmathfont{XITS Math} \newcommand{\bcirc}{\mathbin{\mdsmwhtcircle}} \begin{document} $f\bcirc g$ \end{document} The second one is more complicated: \documentclass{article} \usepackage{unicode-math} \setmathfont{XITS Math} \ExplSyntaxOn \AtBeginDocument { \...


12

Like the other answer already said, in Unicode the combining characters come after the base characters. Also this is not supported by unicode-math. But at least for LuaLaTeX you can add support for U+20D7 as a combining character: \documentclass{article} \usepackage{unicode-math} \mathcode"20D7="8000 \def\aftervec{\directlua{ local nest = tex.nest[tex....


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