**Context** I need my `beamer` presentations to use `ttf` fonts installed on my PC. For that, I start compiling with `LuaLaTeX` For obscure production reasons, I need to provide a `.pptx` (sigh). `Adobe Acrobat Pro` does a really good job... as long as we provide it with the right fonts. **Where I need help** 1. the 16pt option is nt taken into account (hence my not so great font scale of 1.1) 1. at the end of MWE, you'll see math mode does not load the same fonts 1. I totally lose the integral/sum/math operators with Adobe not recognizing the font. SamCarter mentionned the unicode package but am only starting to read the documentation. ![image.png](/image?hash=ce472a11df43d2fffe13a2810e63b0bb25c50d443b82ba8d28cc30447c428c50) ``` \documentclass[16pt]{beamer} %\usefonttheme{professionalfonts} % obsolete for mathastext since beamer 3.34 \usepackage{fontspec} \setsansfont[ Ligatures=TeX, Scale=1.1, Extension=.ttf, % Numbers={Proportional, OldStyle}, ]{Tahoma} \renewcommand{\familydefault}{\sfdefault} \usepackage[defaultmathsizes,symbolgreek]{mathastext} \begin{document} \begin{frame} This is some text and next comes some math: $E=mc^2$ \[ E=mc^2=a^n+b^n-c^n=\alpha\beta\gamma \] \begin{align} E & =mc^2 \\ E & =h\nu \end{align} If i put $ 1,2,3,4,5,6,7,8,9,10, \alpha$ in math mode, I lose the font consistency If i put 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in text mode, it's ok \[ \int_{0}^{1} f(t) dt \] \end{frame} \end{document} ```

Pre-remark - adjusting the font size to anything outside of the usual 10pt-12pt range often causes obscure problems. I would use the default size and instead adjust the papersize to make the font appear bigger # Approach 1 Normally you could use the `unicode-math` package to change the math font, but this would require your font to have math symbols, which does not seem the case with `Tahoma` But luckily beamer normally does not use math font and instead uses the normal text font. You will just have to stop fontspec from interfering with the `[no-math]` option ``` % !TeX TS-program = lualatex \documentclass[16pt]{beamer} %\usefonttheme{professionalfonts} % obsolete for mathastext since beamer 3.34 \usepackage[no-math]{fontspec} % \setsansfont[ Ligatures=TeX, Scale=1.1, Extension=.ttf, % Numbers={Proportional, OldStyle}, ]{Tahoma} \usepackage[symbolgreek]{mathastext} \begin{document} \begin{frame} This is some text and next comes some math: $E=mc^2$ \[ E=mc^2=a^n+b^n-c^n=\alpha\beta\gamma \] \begin{align} E & =mc^2 \\ E & =h\nu \end{align} If i put $ 1,2,3,4,5,6,7,8,9,10, \alpha$ in math mode, I lose the font consistency If i put 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in text mode, it's ok \[ \int_{0}^{1} f(t) dt \] \end{frame} \end{document} ``` ![Screenshot 2022-06-24 at 13.08.07.png](/image?hash=6ac91c824004a903d76e2807ca8beb9c56f2b5b926fc85bf637361dacbc1ab8d) # Approach 2 Here an Frankenstein approach using `unicode-math`, with [`Fira Math`](https://github.com/firamath/firamath) as base font and then replacing the upright numbers/letters with Tahoma (I didn't like the Greek letters from Tahoma, but in theory you could also change the `\mathit` font). (I suspect a document with unicode-math might be more robust when converting the slides into different formats, but I can't test this) ``` % !TeX TS-program = lualatex \documentclass[16pt]{beamer} \usepackage{fontspec} % \setsansfont[ Ligatures=TeX, Scale=1.0, Extension=.ttf, % Numbers={Proportional, OldStyle}, ]{Tahoma} \usepackage{unicode-math} \setmathfont{Fira Math} \setmathfont[range={\mathup}]{Tahoma} \begin{document} \begin{frame} This is some text and next comes some math: $E=mc^2$ \[ E=mc^2=a^n+b^n-c^n=\alpha\beta\gamma \] \begin{align} E & =mc^2 \\ E & =h\nu \end{align} If i put $ 1,2,3,4,5,6,7,8,9,10, \alpha$ in math mode, I lose the font consistency If i put 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in text mode, it's ok \[ \int_{0}^{1} f(t) dt \] \end{frame} \end{document} ``` ![Screenshot 2022-06-24 at 13.34.51.png](/image?hash=5d73bf0d5da27a7cca0c6b6953f926534bcd75f62b35a11cd7c8695502e8ccdd) # Approach 3 Or if you are not too attached to your font, you could use one with [matching math font](https://github.com/firamath/firamath). For example Fira has a similar heaviness to your font, but is less dense (which is imho a good thing, it feels easier to read) ``` % !TeX TS-program = lualatex \documentclass[16pt]{beamer} \usepackage{fontspec} \setsansfont{Fira Sans} \usepackage{unicode-math} \setmathfont{Fira Math} \begin{document} \begin{frame} This is some text and next comes some math: $E=mc^2$ \[ E=mc^2=a^n+b^n-c^n=\alpha\beta\gamma \] \begin{align} E & =mc^2 \\ E & =h\nu \end{align} If i put $ 1,2,3,4,5,6,7,8,9,10, \alpha$ in math mode, I lose the font consistency If i put 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in text mode, it's ok \[ \int_{0}^{1} f(t) dt \] \end{frame} \end{document} ``` ![Screenshot 2022-06-24 at 13.43.15.png](/image?hash=90bca842ef84ed5f254645465693946d3b2d88472059dfd2a6f34287a6a6e8b6)