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
0answers
18 views

\wide[bar/hat/tilde] commands with unicode-math

Is there some way to get \widebar, \widehat, and \widetilde to work with the libertinus package, such as to get nice spacing? Here's a MWE (which uses Vogt's \widebar command): \documentclass{...
1
vote
1answer
32 views

Alternating math alphabets with unicode-math package in \(re)newcommand environment

I am trying to define some command to alternate between various alphabets in the unicode-math package. More specifically, my code is as follows \documentclass[12pt]{article} \usepackage{unicode-math} ...
0
votes
0answers
14 views

Using unicode symbols with mathabx

I am using the mathabx package but I would like to import the integral symbols from Linux Libertine. My MWE is \documentclass{article} \usepackage{amsmath} \usepackage{mathabx} \usepackage{unicode-...
2
votes
1answer
34 views

XeLaTeX: Unicode math fonts cannot be found

I want to use math fonts with the unicode-math package. The code I wrote is \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX ...
4
votes
2answers
86 views

Unicode-math and declaring symbol font

I would like to set the math font as Garamond-Math (here) except that greek letters should come from a different font (for an illustration, computer modern in the example below.). But it seems ...
2
votes
1answer
27 views

Loading `xits-math.otf` for certain characters messes with spacing of fractions and binomial coefficients

Today I witnessed some odd behaviour: Using \setmathfont[range={\rightrightarrows}]{xits-math.otf} to load the symbol ⇉ changes the spacing of the \binom and \frac command. Here is how it looks ...
0
votes
0answers
31 views

TeX Gyre Schola (Math) gives error when compiling the example given in the GUST distribution

I downloaded and installed both TeX Gyre Schola and TeX Gyre Schola Math. However, the example given in the downloaded package, here, fails to compile: The key 'fontspec-opentype/vargreek-shape' is ...
2
votes
2answers
84 views

Why can’t I get unicode characters?

I’m trying to typeset the unicode dice character in LaTeX. I’m using emacs, on Ubuntu 18.04. I’ve tried manually setting my TeX-engine to xelatex and lualatex, and I get the same thing. \usepackage{...
1
vote
0answers
26 views

Why do matrix brackets look strange when using package unicode-math?

Compare this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b \\ c & d \\ e & f \\ g & h \end{bmatrix} \...
5
votes
2answers
149 views

Greek symbol fonts in latex

I'm an engineering student currently working on the thesis. I'm using the math font package newtxmath, which generates the greek letter \nu as: while the symbol font I want is: I have been trying so ...
1
vote
1answer
34 views

Why missing number for \blindmathpaper if use accents.sty & blindtext.sty with XeLaTeX?

Why does loading accents.sty together with blindtext.sty produce an error at \blindmathpaper in the following source, which uses a unicode-math.sty? The error is: ./blindmathpaperXeLaTeXError.tex:16:...
4
votes
2answers
85 views

unicode-math: Double-struck math fonts

What is the math font of unicode-math that can get the following output: since the following: \documentclass{article} \usepackage{unicode-math} \begin{document} $\symbb{R}$ \end{document} results ...
0
votes
1answer
55 views

How to use mainfont type in math environment?

thanks for your help in advance. I was wondering how to use the mainfont type for some features in the math environment. For example, let's say I'm using "font A" which I've uploaded using some otf ...
1
vote
1answer
55 views

How to use unicode-math in an IEEEtran document

IEEEtran is to be used with pdflatex (and for journal papers, one does not have a choice for a document which should be published). But in two use cases, compilation with lualatex can be desired. ...
0
votes
0answers
49 views

Equivalent of amssymb \square and \Diamond in Latin Modern Math?

PROBLEM Using amssymb, I get \square and \Diamond as follows: \documentclass{article} \usepackage{amssymb} \begin{document} BLAH $\square$ $\Diamond$ BLAH \end{document} How do I get the same (...
0
votes
0answers
80 views

Does anyone know this math font? [duplicate]

new to this forum. Does anyone know what math font this is and how I can use it/if it's available free? It's from "An Introduction to the Theory of Mechanism Design" by Tilman Börgers (this clip from ...
3
votes
1answer
71 views

How to get \backprime if the main math font is Cambria Math?

Running xelatex on \documentclass{standalone} \usepackage{unicode-math} \setmathfont{CambriaMath.ttf} %\setmathfont[Ligatures=TeX,range={\backprime}]{TeX Gyre Termes Math} %\setmathfont[Ligatures=TeX,...
0
votes
0answers
59 views

how can i write Arabic Mathematical Symbols by LaTex?

how can i write Arabic mathematical symbols within Arabic text by LaTex? For example, Integral, square root and derivative symbols from right to left as follow:
5
votes
1answer
55 views

Packages “LibertinusT1Math” raises error if compiled with XeLaTeX

The following MWE raises an error if compiled with XeLaTex: \documentclass{article} \usepackage{libertinus} \usepackage[slantedGreek]{libertinust1math} \begin{document} Lore ipsum dulur. \end{...
1
vote
0answers
22 views

Error when scaling math using “unicode-math” package

Scaling fails when using the unicode-math package the prime (') appears too high. Minimal example: \documentclass{book} \usepackage{unicode-math} \begin{document} $y'$\Large$y'$ \end{...
1
vote
3answers
81 views

How get \Diamond and \square with TeX Gyre Termes (or Pagella)?

How do I produce the equivalent of the symbols \square and \Diamond from amsfonts if I'm using TeX Gyre Termes or TeX Gyre Pagella? For example, XeLaTeXing the following gives Undefined control ...
0
votes
1answer
42 views

Changing the size of the mathfont, except for the numbers

I need to use Tex Gyre Adventor as a font in my documents. This font has no math font, so I'd like to use the numbers of that font in math mode. I managed to do it using \setmathfont[range=up/{num}]{...
1
vote
0answers
28 views

Where should the datatool package be loaded?

Trying to build the following MWE fails (at least here: TL2019, lualatex) \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} %\usepackage{datatool}%<-- loading the package ...
0
votes
0answers
33 views

How to type “not absolutely continuous” with unicode-math?

I've tried both \nu\not\ll\mu and \nu\centernot\ll\nu. I'm including amsmath, amsthm, amssymb, centernot, mathtools, thmtools, unicode-math and compiling with XeLaTeX. This is the ouput: I suppose ...
0
votes
1answer
65 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
98 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
1answer
90 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
91 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
47 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
112 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
56 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
53 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
50 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
90 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
681 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
129 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
234 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
71 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
236 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
170 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
70 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
184 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
110 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
35 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
29 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
95 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
201 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
50 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
32 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 ...