Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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

How can I use an additionaly temporaly math font to declare a macro using libertinusT1math

I would like to style my book more, until now I'm using \mathbfit for vectors\matrices. I would like to use another italic bold math font to type the same characters, e.g. x and y to denote different ...
user avatar
  • 61
0 votes
0 answers
21 views

how to set \mathversion{bold} in unicode-math.sty

I am using a style file unicode-math.sty and the compiler is lualatex i need lower and upper alphabets and numbers, and punctuations from Times font, upper/lower greek characters and math symbols ...
user avatar
  • 1,774
1 vote
0 answers
30 views

Map single character to another plane in unicode-math

In my document, I need to use a certain main font that lacks most mathematical symbols. For best results, I chose to stick to the main font for what is available, e.g. latin letters and numbers. Also, ...
user avatar
0 votes
1 answer
39 views

Combine arevmath (or similar) with unicode-math

Say I need to use a certain sans serif font (not Arial, but I am using this in the example, because it is widely available). As a consequence, I need to use a sans serif math font. The main font ...
user avatar
4 votes
2 answers
67 views

vertical bar in docstrip file changes to j with unicode-math

I'm writing a .dtx file that can generate multifiles, here is my minimal working example. % \iffalse %<*driver> \ProvidesFile{my.dtx}[2022/05/17 3.1a mytest] \documentclass{ltxdoc} \usepackage{...
user avatar
  • 1,121
0 votes
0 answers
40 views

What must be done before using unicode-math?

My attempt to compile the following example using LuaLaTeX: \documentclass{article} \usepackage{unicode-math} \begin{document} \end{document} fails to typeset, and produces the following error log: ...
user avatar
  • 390
1 vote
0 answers
44 views

\mathit{\vec{…}} silently swallows up the vector when using xelatex/lualatex, unicode-math, and TeX Gyre Termes (Math)

Feeding xelatex or lualatex with \documentclass{article} \pagestyle{empty} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Termes} \setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ...
user avatar
0 votes
0 answers
27 views

umathcode by glyph slot

In XeXeX I can input a glyph by the glyph ID \XeTeXglyph4185\relax However, when I try to define a math character, no character is inserted: \Umathchardef\myint 0 0 4185 If I instead use \Umathchardef\...
user avatar
  • 141
1 vote
2 answers
36 views

bm cause bold font undefined problems

\documentclass[a4paper]{article} \usepackage[no-math]{fontspec} \usepackage{anyfontsize} \usepackage{amsmath,amssymb,amsthm,mathrsfs} \setmainfont{Times New Roman} \usepackage{unicode-math} \...
user avatar
0 votes
1 answer
35 views

How to make wide grave and acute accents accurate also in \smaller when using TeX Gyre Termes Math and lualatex?

Continuing Wide acute and wide grave for TeX Gyre Termes and TeX Gyre Termes Math , we try to make wide grave and accute accents work in \smaller with TeX Gyre Termes (Math) fonts and UTF-8 engines (...
user avatar
0 votes
0 answers
28 views

How can I type this formula in LaTex [duplicate]

![] I'm writing my thesis and I need help on how I can type the following equation in LaTex.
user avatar
1 vote
2 answers
98 views

State of sans serif maths fonts

I'm looking for a comprehensive sample of specimens from current, known to be up and running, sans serif fonts for (displaystyle) maths. In particular, I would like to know how one can know whether a ...
user avatar
0 votes
1 answer
26 views

unicode-math's \symit in superscripts and subscripts [closed]

I have a separate font for Unicode's mathematical symbols block which I use with unicode-math. It has a different font for the italic lambda, and I can access it using \symit{λ}. However this doesn't ...
user avatar
  • 116
7 votes
1 answer
59 views

conflict between siunitx and unicode-math (greek letter unit)

In optics, the "dioptre" unit's symbol is δ (lowercase delta). As long as I don't use unicode-math, the following code gives the expected result, but with it, the unit is missing in the ...
user avatar
  • 839
2 votes
0 answers
40 views

Different font for large parentheses

I am using unicode-math to specify fonts for my math equations. I would like that small parentheses (and other delimiters) to use one font, and large ones use a different one. The reason for this is ...
user avatar
  • 141
0 votes
0 answers
66 views

Square root symbol from this book

Is there a way to use the square root symbol used in the book "Elementary Number Theory" by Edmund Landau? Check the image attached for an example.
user avatar
  • 757
1 vote
2 answers
58 views

Package unicode-math Error: Command `\epsilon ` in math range is not(unicode-math) commands

Whenever I try the following command, I get this error: \documentclass{article} \usepackage[no-math]{fontspec} \usepackage{unicode-math} \setmainfont{Old Standard} \setmathfont{OldStandard-Regular....
user avatar
  • 757
0 votes
2 answers
24 views

pgfplots fails to display greek prefix when using unicode-math in LuaLaTeX/XeLaTeX

I'm experiencing difficulties trying to use the "Units in Labels" feature of pgfplots (pages 525-528 of the v1.17 manual). It works well in most circumstances except when the prefix is the ...
user avatar
1 vote
2 answers
49 views

\smalltriangleright not working in algpseudocodex

I'm using the algpseudocodex package to display pseudocode in LuaLaTeX. I want to change the symbol at the beginning of a comment to \smalltriangleright with: \usepackage[beginComment=$\...
user avatar
  • 2,410
6 votes
1 answer
391 views

Can't use 5-digit hexadecimal numbers with ^^^^^

I'm getting this exact error message (including linebreaks) ! ^^^^ needs four hex digits. l.5 \newcommand{\boldpsi}{^ ^^^^1d6d9} for this piece of code: \documentclass{...
user avatar
5 votes
1 answer
96 views

How do I get italic correction in LuaLaTex with unicode-math and \left \right?

The story about italic correction in LuaLaTeX when using unicode-math seems to be an old one. However, the issue does not appear to be fixed. Here is what it looks like with unicode-math and without ...
user avatar
0 votes
0 answers
30 views

Mathematical Unicode characters in verbatim using XeLaTeX:

The alltt environment interprets backslashes literally, and my input text is full of them, so I use the verbatim environment for typesetting code. It goes fine but it does not typeset a universal ...
user avatar
  • 747
0 votes
1 answer
79 views

Why does \symbf not switch to a bold math font?

I am using the Lucida Open Type Fonts, since they contain a bold math version. However, I found out that the command \symbf doesn't actually switch to the bold math font. I checked the embedded fonts ...
user avatar
  • 1,651
0 votes
0 answers
32 views

Math in compiled pdf has different encodings for different compiler. When are no unicode characters used?

When selecting and copying math in the compiled pdf I noticed it isn't always matching the original symbols. There are three different scenarios I can remember. Two of which I was able to reproduce: ...
user avatar
  • 1
0 votes
1 answer
43 views

Create a new double bracket symbol, or properly scale the existing one

In my document there already exists a math font configuration, but it doesn't contain the symbol for double brackets. Following this answer, I imported the one from the fourier font. However, as can ...
user avatar
  • 5,269
3 votes
1 answer
150 views

Why does my \hbar look like this?

This \hbar is ugly with the bar too high and too left This is what I want My settings are: \documentclass{beamer} \usetheme{default} \usecolortheme{seahorse} \setbeamertemplate{navigation symbols}{} \...
user avatar
0 votes
2 answers
67 views

Latin Modern Math doesn't have a bold font, but does have glyphs for Unicode block Mathematical Alphanumeric Symbols. Can \boldmath output them?

It is known that Latin Modern Math does not have a standalone bold font. If you load Latin Modern Math with package unicode-math, and try to use \boldmath, the fontshape with be substituted with the ...
user avatar
0 votes
1 answer
33 views

Importing mathcal from a font alongside another

I would like to import the mathcal font from DejaVu Math TeX Gyre without overwriting the mathcal font of my global math font. I assumed I could just do: \newfontfamily\djmathfont{DejaVu Math TeX ...
user avatar
  • 329
2 votes
1 answer
80 views

Hat on \mathcal{J} and \mathcal{K} "off-center" due to \DeclareMathAlphabet

I am using NCM (NewComputerModern) as my main font. Because I do not like the \mathcal{…} provided by unicode-math in the Euler font instead of the Latin Modern oder Computer Modern style. I think ...
user avatar
0 votes
1 answer
40 views

How can I use the unicode characters Triangle Arrowhead in equations with LuaLatex?

I'd like to use the unicode arrows ⭡⭧⭢⭨⭣ (U+2B60, U+2B67, U+2B62, U+2B68, U+2B63) as I think they look nicer than the built-ins. This should work with LuaLatex, since I need to use it for other ...
user avatar
2 votes
3 answers
410 views

How to input ⍻(not check mark) in latex?

I want to know how to input not check mark in LaTeX. Information of this symbol: https://www.compart.com/en/unicode/U+237B
user avatar
4 votes
2 answers
326 views

Strange position of unicode square root glyph (U+221A) in Latin Modern Math

Why is the square root glyph (U+221A) positioned so strangely in Latin Modern Math? \documentclass{article} \usepackage{unicode-math} \begin{document} \setmathfont{XITS Math} \(2 \sqrt{2} √2\) \qquad \...
user avatar
3 votes
1 answer
188 views

How to Avoid Fontspec When Invoking an External Font

I have recently downloaded a font from https://www.dafont.com, which, when I call it into my document, requires the fontspec package and compilation with lualatex. This has caused several problems, ...
user avatar
  • 4,977
3 votes
1 answer
56 views

\vu of physicx package with physics and unimath options went wrong when loading unicode-math package

\documentclass{article} \usepackage[physics, unimath]{physicx} \usepackage{unicode-math} \begin{document} $\vu{a}, \vu*{a}$ \end{document} \documentclass{article} \usepackage[physics]{physicx} % \...
user avatar
  • 419
1 vote
1 answer
23 views

Setting theorem environment fonts when using multiple fonts with unicode-math

\documentclass{article} \usepackage{unicode-math} \setmathfont[version=xcharter]{XCharter Math} \setmathfont[version=fira]{Fira Math} \newfontfamily\xcharterfont{XCharter} \newfontfamily\firafont{...
user avatar
1 vote
3 answers
87 views

unicode-math: How to include multiple font styles and Unicode symbols in a font range?

I need to include multiple Unicode symbols and font styles to be written in the Redacted Script font. However, this code \documentclass{article} \tracinglostchars=3 % Make it an error if a glyph is ...
user avatar
  • 8,759
2 votes
1 answer
55 views

How to trim space around italic `f` in unicode-math

I am making (almost) my first attempt with unicode-math and this is my first use of the STIXTwo fonts. I'm unhappy with the spacing around italic f in math mode. (And with the spacing before italic j ...
user avatar
  • 1,894
0 votes
0 answers
56 views

unicode-math doesn't like generated fonts with FontForge

When using unicode-math, I took the default font latinmodern-math.otf and opened it in FontForge. Re-exporting the font as an .otf using the "File/Generate fonts...", it turns out that ...
user avatar
  • 116
1 vote
0 answers
51 views

How to get a `not divides' symbol of the correct size using lualatex and unicode-math package?

I am having problems with \not command. I have read this: unicode-math breaks \not command I have tried the fix mentioned there. This MWE compiles without problems in pdflatex: \documentclass{article}...
user avatar
0 votes
1 answer
78 views

Get math symbols from main font in lualatex

I'm trying to use a few math symbols from my main font as described here: How to set a font everywhere (including math mode) in XeLaTeX? (I'm using lualatex.) (I don't have to use that method, if ...
user avatar
  • 1,894
2 votes
1 answer
67 views

Thinner square root line than expected

I am using Fira font in my document, text and math. The problem is that the math font is way too thin, so I ended up using FakeBold option from fontspec. Everything is OK until the square roots. As ...
user avatar
1 vote
0 answers
32 views

arrow of appropriate length over 𝐼ʹ with TeX Gyre Termes Math and lualatex or xelatex

Feeding \documentclass{standalone} \usepackage[math-style=ISO]{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Termes} \setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ok. \setmonofont{TeX Gyre ...
user avatar
0 votes
0 answers
36 views

Can I use ASCII to search for symbols in unicode-math formula?

\documentclass{article} \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math} \begin{document} a $a$ \end{document} It is feasible to use a to search for 𝑎 in the formula in PDF when I use ...
user avatar
  • 409
2 votes
0 answers
40 views

\Udelcode and \Udelimiter not working with Unicode font in LuaLaTeX

I am unable to get the stretchy brackets \Udelcode with a Unicode font. I get the results in XeLaTex, but in LuaLaTex brackets are not stretched. I took the solution given by Marcel Krüger in this ...
user avatar
  • 1,774
0 votes
0 answers
58 views

how to declare \DeclareMathAccent and \DeclareMathDelimiter with unicode-math.sty

In my tex i am using \usepackage{unicode-math}, but I am trying to modify the greek/math symbols and accents with NFSS declaration, with the help of solution given in 'https://github.com/wspr/unicode-...
user avatar
  • 1,774
0 votes
0 answers
30 views

how to select alphabet/numeric greek characters from text font, if some glyphs not available it will source from stix font through unicode-math.sty?

I am compiling a file with XeLaTeX/LuaTeX with unicode-math.sty My document base font is MinionPro font, and the secondary font (sans font) is Frutiger, i want to use alphabet/numeric/greek characters ...
user avatar
  • 1,774
0 votes
1 answer
30 views

Combine smallcaps in frame title, math upright + greek text

I am desperately trying to get three things working in Beamer: Have the frame title displayed in smallcaps. Have math formulas displayed upright. Print greek text with diacritics. The first two ...
user avatar
1 vote
1 answer
54 views

how to use \Udelcode for large Delimiter when using \big or \left or \right for STIXTwoMath OTF fonts?

I want to use OTF version of STIXTwoMath-Regular.otf, to get the large delimiter such as (),[],{ },|,/,\vert,\Vert,\langle,\rangle,\lceil,\rceil, and so on, I need to modify what are all the delimiter,...
user avatar
  • 1,774
4 votes
1 answer
159 views

Cubic root is not showing accurately

Following up this answer, I have added this code: \documentclass{memoir} \usepackage{babel} \babelprovide[import, onchar = fonts ids]{bengali} \babelfont[bengali]{rm}[Renderer=Harfbuzz,AutoFakeBold,...
user avatar
  • 2,001
0 votes
0 answers
28 views

How to increase letter spacing when using unicode-math range feature?

Using the package unicode-math and compiling with xelatex, one may use \setmathfont[range= ... ,Scale=MatchLowercase]{ ... } to change the italic and upright math letters. However, there are usually ...
user avatar
  • 77

1
2 3 4 5
16