0

I've tried to get the math scaling right in a number of different ways, but have failed. What is the proper syntax here? The posting unicode math font smaller than the text seems relevant, but that didn't work.

% !TeX program = lualatex
\documentclass{article}


\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
\usepackage{lipsum}

\setmainfont{Baskervaldx-Reg}[Scale=0.2]
\setmathfont{Baskervaldx-Reg}[Scale=0.2]

\begin{document}
\lipsum 

$x=y$ 

\lipsum
\end{document}

enter image description here

5
  • 2
    Baskervaldx-Reg is not a math font. And what is the sense of a scale factor of 0.2? Commented Aug 16, 2020 at 21:16
  • you can only use fonts that have an OpenType MATH table with unicode-math Commented Aug 16, 2020 at 21:20
  • @UlrikeFischer ah, thanks. The scale factor of 0.2 was to make the problem visible in the example output.
    – JPi
    Commented Aug 16, 2020 at 21:23
  • @DavidCarlisle aha, it works with STIX2Math. Thanks. I'll accept your comment if you post it as an answer.
    – JPi
    Commented Aug 16, 2020 at 21:28
  • See also Which OpenType Math fonts are available? Commented Aug 17, 2020 at 3:30

1 Answer 1

3

You can only use fonts that have an OpenType MATH table with unicode-math

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .