# Tag Info

2

According to the documentation of unicode-math, \setminus is the character U+29F5 (⧵), the Unicode reverse solidus operator. Asana Math, STIX Two Math, XITS Math, Libertinus Math and Cambria Math all have it, at least. I believe that Latin Modern, the TeX Gyre fonts and Fira Math do not (as of 2020). Generally, XITS and STIX Two attempt to be ...

1

As an alternative to the other solutions mentioned here, you could also directly use the Unicode character ∖ for "set minus" in your tex file. (Hopefully your editor uses a font that has a glyph for it like mine.) For me it works with both TeX Gyre Termes and TeX Gyre Pagella.

1

Well the standard method to get a new package option is to check on ctan or in the documentation for a suitable tracker (in this case http://github.com/wspr/unicode-math) and to make a feature request. Beside this: \documentclass{article} \usepackage{unicode-math} \ExplSyntaxOn \bool_gset_true:N \g__um_upLatin_bool \ExplSyntaxOff \begin{document} \$xX\...

4

You can newly load the font with an artificial negative slant just for the glyph you need. \documentclass[margin=2pt]{standalone} \usepackage{fontspec} \usepackage[math-style=TeX]{unicode-math} \setmathfont{XITSMath-Regular}[ Extension = .otf, BoldFont = XITSMath-Bold, Ligatures=TeX, ] \setmathfont{XITSMath-Regular}[ Extension = .otf, BoldFont = ...

2

As David Carlisle said, amsmath works with all font packages. It’s so ubiquitous, I’m not aware of any that are incompatible with it. Many newer packages want to modify how amsmath works, and amsmath does not deign to change itself for them, so it is very rare for any package to need to be loaded before amsmath. (Except document classes, which expect to ...

1

Using unicode-math and \symbf as suggested by Mico is imho the right and best solution as you will get the correct unicode chars. But to explain the concrete problem: fontspec by default maps the main text font to \mathrm, but as your main font uses a mapping you get the wrong output. You could load fontspec with the no-math option, then it will use the ...

1

I experience no problems if I (a) load unicode-math instead of fontspec and (b) use \symbf instead of \mathbf. % !TEX TS-program = xelatex \documentclass{article} \usepackage{amssymb} \usepackage{unicode-math} \defaultfontfeatures{Path=/Users/mico/Library/Fonts/} % change this as needed \setmainfont{AnnapurnaSIL-Regular.ttf}% [Script=Devanagari,Mapping=...

8

unicode-math and and amsmath are not really related, the first is primarily about font setup and the latter is about defining macros for math layout structures and is more or less independent of the fonts used. If typesetting mathematics using OpenType math fonts, it is recommended that you load both (load amsmath first). In fact the development version (...

0

Although not a final answer, what allowed me to continue working, and compiling was to place the files filehook.sty, filehook-scrlfile.sty and filehook-memoir.sty @SergioCallegari posted here, in texmf-local/tex/latex/filehook/ and refresh the TeX database.

1

Loading an Upright Math Alphabet With unicode-math, you can define an upright-math-symbols alphabet that’s distinct from text symbols in math mode. Here is an example that sets the imaginary unit i in ISO style, from the upright italic font, but keeps the µ symbol from the main text font. Using \text for symbols in math mode is a mistake I’ve made in the ...

3

siunitx uses \mathrm for the typesetting of the number and as this is normally a text font it doesn't have the math symbols. You could map \mathrm to the math font: \documentclass{scrbook} \usepackage{amsmath} \usepackage{unicode-math} \setmathfontface\mathrm{Latin Modern Math} \usepackage{siunitx} \sisetup{ math-micro=\text{µ},text-...

Top 50 recent answers are included