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.

0
votes
1answer
49 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
47 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
30 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
0answers
22 views

Creating \simrightarrow with ooalign

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
69 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....
6
votes
3answers
607 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
96 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
190 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
57 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
192 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
959 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
95 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
58 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
86 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
43 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
30 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
23 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
66 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
167 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
79 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
237 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
180 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
151 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
108 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
80 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
36 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
59 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
122 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
88 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
69 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
184 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
72 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
117 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
40 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
69 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
89 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
75 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
53 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
154 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
156 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-...
1
vote
2answers
137 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
82 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
81 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
118 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 ...