Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unicode-math]

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

2
votes
2answers
135 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-...
9
votes
3answers
856 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 ...
5
votes
1answer
58 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
45 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{...
3
votes
1answer
56 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
30 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
28 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
16 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 ...
4
votes
0answers
53 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
152 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
41 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
25 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
53 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
207 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
173 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, ...
3
votes
2answers
26 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
141 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{...
1
vote
2answers
89 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
64 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
35 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 ...
2
votes
0answers
56 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
106 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
31 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
83 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
65 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 ...
3
votes
3answers
154 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
70 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
104 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
37 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
65 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
65 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
62 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
50 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
133 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
137 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
71 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-...
1
vote
2answers
130 views

unicode-math + bold upright symbols + bold circumflex accent

My goal is to write a \unitvector command which produces bold upright symbols with a bold circumflex accent. Here's my MWE: \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \...
2
votes
0answers
69 views

Neo Euler does not work with some symbols

I was trying to prepare some slides in XeLaTeX with main font Candara and Math font Neo Euler, but some symbols, like \angle, doesn't work. I am appending a minimal example: \documentclass{article} \...
2
votes
1answer
27 views

Missing overline and extra horizontal space when using unicode-math

Here's my MWE: \documentclass{article} \usepackage{unicode-math} \newcommand\closure[1]{\overline{#1}} \begin{document} The intersection of the closed ball $\overline{B}(1)$ with the closed ball $...
2
votes
1answer
76 views

\fontspec with scaling + \chemgreek = math font does not scale

I found this question: \chemgreek + \fontspec + Lucida.otf = missing greek characters which in principle solves my problem (missing greek characters). But since I use a scaling for my fonts another ...
4
votes
1answer
110 views

Mathematical Operators such as \lim are set in wrong font after changing mainfont

In my document I need to use Constantia as main font and Arial for different parts of the document. Therefore I use LuaLaTeX to compile the document. Furthermore I need siunitx and unicode-math. The ...
1
vote
1answer
140 views

How can I use STIX Two with nextxtt?

I tried to load STIX Two with fontspec, STIX Two Math with unicode-math, and load newtxtt package directly. However, it seems that the document cannot be complied properly: If I load newtxtt before ...
1
vote
0answers
56 views

Stylistic set substitution doesn't work in subscript with unicode-math

I am using TeX Live 2018 with all packages up-to-date. Minimal example: \documentclass{article} \usepackage{unicode-math} \setmathfont[StylisticSet=2]{STIX2Math.otf} \begin{document} \begin{equation}...
0
votes
1answer
66 views

Horizontal alignment of subscript and superscript - xetex

I want to horizontally align my subscripts and superscripts. I'm using XeTex with the Cambria Math font, and I'm rather new to Latex so I don't quite know if the problem is with the font, XeTex itself ...
3
votes
3answers
104 views

Spacing problems (overlap) with DeclarePairedDelimiter

I'm have a defined a couple of math delimiters via \DeclarePairedDelimiter, however, they seem to create some problems with respect to the spacing with some fonts. For example the following codes ...
3
votes
2answers
114 views

\xmapsto shows a “7” at the beginning of the arrow

I am using XeTeX and need a text above the \mapsto arrow. So I googled for it and found the command for it. But unfortunately, this comes out: So here's the code: \documentclass[a4paper,10pt]{...
2
votes
3answers
200 views

How do I use a math symbol from the private use area with unicode-math?

There are many math symbols which are not, unfortunately, in Unicode. One such symbol is the sequent relational operator that looks something like this ">-" and is found in the literature. I have a ...
1
vote
2answers
121 views

LuaTex setting locale

My Memoir section titles contain French accented characters and some suit symbols (e.g. \Ts). The former can be used directly in PDF bookmarks but I haven't found any reliable way of replacing the ...
4
votes
1answer
171 views

Unicode-math: Use several calligraphic fonts in parallel

I would like to use e.g. the calligraphic font from two different fonts conveniently in the same document. For example in the snippet below, how can I load in parallel e.g. the calligraphic fonts ...
0
votes
1answer
82 views

Normal math alphabet letters not appearing as italic

I am having a problem with the normal math fonts which is not appearing as italic. abc&&\mathit{abc} \\% problem here: non-mathit (abc) not italic!!!! I want to use \RequirePackage[math-...