Questions tagged [unicode-math]

{unicode-math} provides an implementation of Unicode math symbols and OpenType math fonts for XeLaTeX and LuaLaTeX.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

Unicode Z notation brackets

I typeset Unicode mathematical symbols using the unicode-math and the fontspec package. For the Z notation brackets: ⦇ and ⦈ https://unicodes.smpc.io/%E2%A6%87 and https://unicodes.smpc.io/%E2%A6%...
5
votes
1answer
84 views

lualatex: too little space inside f\Bigl(

Consider the following example: \documentclass{standalone} \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math} \begin{document} \(f\Bigl(\Bigr)\) \end{document} If you compile it with ...
0
votes
0answers
32 views

Path and Extension do not work with the \setmathfont command in XeLaTeX package unicode-math

I would like to install some .otf fonts locally in a directory ./fonts with my XeLaTeX source. Using the standard installation of XeLaTeX with TeXShop/TexLive works on Mac Mojave (see essai1.tex). ...
0
votes
1answer
57 views

Accents misaligned with unicode-math and STIX2

While using STIX2 with LuaLaTeX and unicode-math, I found out that accents such as \hat or \bar aren't aligned properly with the letters: I haven't noticed any similar problems with XITS with the ...
2
votes
0answers
38 views

How can I use Garamond Premier Pro's own glyphs for e.g. square root in mathmode (using lualatex)?

I'm using lualatex (TeXlive 2019) and the font Garamond Premier Pro, which (shown in the screenshot, taken using fontforge) provides special glyphs for the following mathematical symbols: n-array ...
0
votes
1answer
64 views

Installing the newest version of Libertinus Math

The current version of the font Libertinus Math installed with my texlive distribution misses a glyph for \twoheadrightarrow. Newer versions of Libertinus Math obtained from the Github repository do ...
1
vote
2answers
51 views

Creating mathXxxx type macros for Unicode private use area

I have a custom font with a dozen or so scripts 0-9,A-Z,a-z in the private use area. I need to create macros like symcal() and mathcal() for those scripts. I have something that works -- but it is ...
1
vote
1answer
37 views

How to use sansmath to specify the font for tick label in pgfplots with xelatex?

I learned from this answer that the package sansmath can be used to change the font of tick label by setting option tick label style. Now I want to set the tick label font to be sans serif font while ...
0
votes
1answer
42 views

Creating \simrightarrow with ooalign [duplicate]

I would like to have a command \simrightarrow, that is, a \rightarrow with a \sim over it. Stealing code from @egreg, I got: \documentclass{article} \usepackage{unicode-math} \newcommand{\...
3
votes
1answer
73 views

unicode-math + mathtools: sin, cos etc in mathitalic

Here it is my base file $ cat test_00.tex \documentclass{standalone} %usepackage{unicode-math} %usepackage{mathtools} \begin{document} $\sin(00)$ \end{document} $ and I have also the files test_01....
7
votes
3answers
624 views

TeX Gyre Pagella Math Integral sign much too small

I am writing my thesis and I use the TeX Gyre Pagella Math fonts, but I have noticed that the integral sign is much too small compared to fractions. as you can see in the above image. I am using ...
4
votes
1answer
107 views

Unicode-math and mathrm result in missing symbols

I've played around for a while and searched quite a bit but can't find a solution. my code is the following \documentclass{article} \usepackage{hepnicenames} \usepackage{fontspec} \usepackage[math-...
7
votes
1answer
195 views

Are `mathfont` and `mathspec` intended for same purpose?

What package of these two is better for changing math-mode fonts (to .ttf fonts)?
0
votes
2answers
58 views

Using the unicode prime character outside math mode with unicode-math and newunicodechar

I am trying to use unicode-math, newunicodechar and LuaLaTeX/XeLaTeX to write my LaTeX code making use of unicode characters in the source text. This works fine, except for the prime character; if I ...
2
votes
1answer
211 views

Bold symbols in LuaLaTeX with setmathfont

How to type bold \wedge and \neg symbols in a selected math font? MWE1, with bm package, no math font selection: \documentclass{article} \usepackage{fontspec} \usepackage{bm} %\usepackage{unicode-...
10
votes
3answers
1k views

Do ℕ, \mathbb{N}, \BbbN, \symbb{N} effectively differ, and is there a “canonical” specification of the naturals?

Continuing https://math.meta.stackexchange.com/a/22167/, as far as I understand, all the four of ℕ, \mathbb{N}, \BbbN, \symbb{N} work now, and \BbbN is advised against. Is there any reasonably ...
4
votes
1answer
112 views

How to use MathJax Optentype fonts with XeLaTeX?

I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from the MathJax GitHub page. MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf ...
0
votes
0answers
60 views

mathtools + unicode-math + DeclareMathOperator + mathrm + glossaries-extra + xelatex +makeindex = “Undefined control sequence”

Running xelatex file && makeindex -s file.ist -t file.nlg -o file.not file.ntn && xelatex file on file.tex containing \documentclass{article} \usepackage{mathtools} \usepackage{...
4
votes
2answers
117 views

How to set a font everywhere (including math mode) in XeLaTeX?

My requirements are: Use Calibri as the main font. This is easy with XeLaTeX. Use Calibri as the math font. Also quite easy using e.g. mathspec. But this takes care only of letters and numbers. Use ...
1
vote
2answers
51 views

\blacktriangle not showing if unicode-math included

Following example shows only the square and lozenge (XeTeX, Version 3.14159265-2.6-0.99998) the other three symbols being shown as spaces whereas if unicode-math is removed, the symbols are shown ...
0
votes
0answers
32 views

Is there any way one could use letters from other languages as math symbols?

Just like one uses greek language symbols in math mode to denote variables, is there a way to use letters from other languages, etc. like say Hindi, Marathi, Kannada, etc. It may so happen that what I ...
1
vote
0answers
24 views

How to add a key for glossaries which mirrors \glssymbol?

At the moment i'm writing a text with lots of equations and not less variables. So 'Thank God' for the glossaries-package. To minimize the actual code i added an extra key 'derivative', which resulted ...
5
votes
0answers
68 views

Excessive memory use with unicode-math/Fira Sans and xfrac

When trying to use the Greek symbols in the font Fira Sans with unicode-math, I noticed that running lualatex on my document uses up enormous amounts of RAM. I have distilled my problem to a minimal ...
6
votes
2answers
171 views

Maths symbols and unicode-math input inside siunitx commands

What I’m trying to do is to input Unicode characters directly inside siunitx commands, like \SIrange{≳9}{≈40}{\kilogram}. But it does not work and I get errors like ! Package siunitx Error: Invalid ...
0
votes
1answer
46 views

Use text font for punctuations in xelatex with unicode-math

Suppose I have the following declarations in the preamble \usepackage[utf8]{inputenc} \usepackage{unicode-math} \setmathfont{My Best Math Font} \setmainfont{My Best Font} and then some texts like ...
0
votes
0answers
27 views

Math Symbol Horizontal Alignment

I'm now using TeX Gyre Pagella for text and TeX Gyre Pagella Math for math, with unicode-math package. But it seems that the math symbols are not in correct positions, compared with letters or numbers ...
0
votes
1answer
88 views

Use Utopia greeks with unicode-math

Is there a way to use TeX Gyre Pagella Math as the math font in a LaTeX document and substitute Utopia greeks? I knew how to get a mix of Palatino and Utopia with the pdftex engine by appropriately ...
5
votes
2answers
249 views

'Dimension too large' error when \setmathfont has the option Scale=MatchLowercase

\documentclass{article} \usepackage{unicode-math} \setmainfont{Georgia} \setmathfont[Scale=MatchLowercase]{Cambria Math} \begin{document} n $n \sqrt[n]{n}$ \end{document} The above code when typeset ...
3
votes
0answers
182 views

ℕ goes as N into the text layer?

Let's compile the following code with {xe|lua}atex: \documentclass{standalone}% or article, doesn't matter \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math}%% or TeX Gyre Pagella Math, ...
2
votes
2answers
31 views

Properly setting mathrel on negated symbol with \NewNegationCommand

The default definition of \not\models is not satisfying regarding spacing : \documentclass{article} \usepackage{unicode-math} \begin{document} $a\models b$ $a\not\models b$ \end{document} gives I ...
2
votes
3answers
157 views

\bar and \overbar not centered with unicode-math and Tex Gyre Font

I noticed that the \bar and \overbar as defined in unicode-math do not yield a centered bar over the letters. For example for \documentclass{article} \usepackage{amsmath,unicode-math} \unimathsetup{...
2
votes
2answers
113 views

Displaying a character in math mode from its Unicode encoding

Can someone tell me what I am doing wrong or simply tell me how I can use the coptic letter "Me" in math mode? I want to use a coptic letter in a mathematical expression in my TeX document. From my ...
2
votes
2answers
85 views

Replace Glyph with Another Glyph (Adobe Garamond Pro Dot Operator)

Adobe Garamond Pro does not include U+22C5, the dot operator, as shown here on the Y axis multiplier: Is there any way to replace just instances of the dot operator with another glyph, such as ...
0
votes
0answers
42 views

What's the correct way to import a symbol from another font compatible with XeLaTeX/LuaLatex? [duplicate]

EDIT: Apparently I wasn't very clear since I linked the question this supposedly duplicates in the first sentence so I could ask about the robustness of that solution.. I want to know if the method ...
1
vote
0answers
62 views

Problem with prime and unicode-math package

Here is a minimal code sample. \documentclass{article} \usepackage{fontspec} %\usepackage{unicode-math} \begin{document} \[ E'_1 \] \end{document} Without unicode-math package, I get this (good ...
4
votes
1answer
126 views

siunitx and XeLaTeX with OldStyle in text, but Lining in math

The attached example (not really an MWE) explains the problem better than I probably can here: % !TeX program = xelatex \documentclass{scrreprt} \usepackage{siunitx} \sisetup{% % detect-...
0
votes
0answers
35 views

How to keep the paren style of math-font mtpro2?

\documentclass{article} \usepackage{amsmath, amsfonts, amssymb}% \usepackage[lite]{mtpro2} \let\notsimeq\relax \usepackage{unicode-math} \setmainfont{XITS} \setmathfont{XITS Math} \begin{document} \[...
3
votes
1answer
89 views

Why do stylistic sets break in script-style in XeLaTeX?

\documentclass{article} \usepackage{amsmath, amsfonts, amssymb}% \usepackage{unicode-math} \setmainfont{STIX Two Text} \setmathfont{STIX Two Math}[StylisticSet={02}] \begin{document} $g^g_{g^g}$ \end{...
2
votes
1answer
71 views

sans-serif math wide П or Π in OTF font for xelatex?

I need a sans-serif math capital letter looking similar to the Greek Π or Cyrillic П but with a little bit more horizontal space between the vertical bars (assuming the same height) to fit the small ...
2
votes
3answers
202 views

Combine \symbb and \symbf to get bold double struck

I would like to get a bold double struck one and I tried to use \symbf{\symbb{1}} but this does not work sadly. Is there some way to still get the desired result? Thanks for your help :-) Update: ...
3
votes
0answers
78 views

unicode-math package broken without \setmathfont when compiled by XeLaTeX [closed]

After I updated TeXLive 2018 yesterday, I got the following error message when I use XeLaTeX to compile my file. xelatex.exe> Runaway argument? xelatex.exe> 76543210\q_stop newline - 'bold' (bx/...
4
votes
1answer
123 views

LuaLaTeX + unicode-math results in wrong \mkern and \mskip

In a personal package I tested \mkern and \mskip for different values using pdfLaTeX and LuaLaTeX, I discovered that the spacing using \mkern0mu and \mskip0mu seems to leave a negative space of -1.1mu....
1
vote
1answer
41 views

Why does minus sign disappear when loading unicode-math and semantic packages?

is there any conflict between these two packages (unicode-math and semantic)? See for instance this MWE: \documentclass[]{article} \usepackage{unicode-math} \usepackage{semantic} \begin{document} ...
0
votes
2answers
70 views

Symbols for outer joins not displaying

As suggested in an answer to this question, I'm using unicode-math and XeLaTeX to typeset symbols for different kinds of joins in relational algebra. However, when I commands \leftouterjoin, \...
1
vote
1answer
99 views

XeLaTeX: force lining numbers (instead of old style ones) in math bold mode, for fonts that don't have boldface

Consider the following code: % !TeX program = xelatex \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm,amssymb,amsfonts} % STIX Two font \usepackage[math-...
2
votes
1answer
79 views

\ohm does'n show while using user font

I want to use Source Serif Pro as mainfont and XITS Math as mathfont. But \setmainfont{Source Serif Pro} makes \SI{100}{\ohm} not working. if remove \setmainfont{Source Serif Pro}, it looks ...
3
votes
0answers
57 views

Make \mathcolon to be U+003C in unicode-math

There are several methods to input the colon-like symbols in unicode-math: Literal : (U+003C) \mathcolon (defined as U+003C) \mathratio (defined as U+2236) \colon (: with special spaces) When using ...
3
votes
1answer
162 views

Math typesetting with a given OpenType font in LuaLaTeX

Hi! I am trying to typeset math with Arno Pro in LuaLaTeX. However, I have not found a suitable solution yet. As Arno Pro does not have all the symbols required for proper math typesetting, some kind ...
1
vote
3answers
170 views

Build failure using unicode-math and newtx simultaneously

I'm seeing a build failure when trying to build the following minimal document: \documentclass{article} \usepackage{newtxmath} \usepackage{unicode-math} \begin{document} abc \end{document} Running ...
1
vote
1answer
74 views

Color symbols individually in math mode (unicode-math clash)

The solution in the post https://tex.stackexchange.com/a/100625 is highly efficient. Unfortunately it can not be used with unicode-math, which erases the individualized symbol colors. While unicode-...