12
votes
Accepted
Writing μ (mu) in the text mode using Latin Modern Roman font
Latin Modern does not have Greek, but it does have micro (U+00B5) which is the most common use of an isolated mu in latin script.
\documentclass{article}
\tracinglostchars=3
\usepackage[english, ...
9
votes
Writing μ (mu) in the text mode using Latin Modern Roman font
You can use a substitute font just for \mu
\documentclass{article}
\usepackage[english, bidi = basic, layout = lists]{babel}
\usepackage{fontspec}
\usepackage{newunicodechar}
\babelfont{rm}[
...
8
votes
Writing μ (mu) in the text mode using Latin Modern Roman font
Egreg shows how to do a font-family substitution due to one character in LaTeX. Just for comparison, how to solve the analogical task in opTeX:
\fontfam[New CM] % this family is accessible by \...
6
votes
Accepted
Why is the STIX2 bold math font not being used here?
By default unicode-math (as in classic pdflatex) sets up mathbf to use the bold Roman text font, which is Noto Serif here.
You can use \symbf when it will use 𝐯
the bold math upright from Stix Two ...
5
votes
\usepackage{newtxtext, newtxmath} does not work
You provided no usable code but
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
abc
\end{document}
will work on Overleaf with xelatex (or lualatex) and ...
5
votes
Accepted
TL 2023 fontspec fatal error
L3 programming layer <2023-10-23>
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2023-11-01 L3 programming layer (loader)
shows that you have version 2023-11-...
4
votes
Accepted
LuaLaTeX adds spaces between glyphs of a font, while XeLaTeX does not
Updated answer
Thanks to Marcel for pointing out that my answer below is factually wrong (one can perhaps still use it as a kind of workaround, and I let it stand for completeness). I apologize for ...
2
votes
\usepackage{newtxtext, newtxmath} does not work
With XeLaTeX, just use:
\usepackage[T1]{fontenc}
\usepackage{newtx}
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
fontspec × 2243fonts × 915
xetex × 834
luatex × 598
unicode-math × 123
polyglossia × 107
opentype × 79
unicode × 75
ligatures × 74
small-caps × 68
math-mode × 66
fontsize × 63
font-encodings × 54
luaotfload × 54
microtype × 45
miktex × 42
babel × 42
libertine × 39
beamer × 38
spacing × 36
errors × 36
bold × 35
symbols × 33
overleaf × 31
texlive × 29