9

Since arXiv still doesn't seem to support LuaLaTeX, I need to make my document work with pdfLaTeX instead. The only LuaLaTeX-specific stuff is

\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}

If I want the document to look as close to the one I compile with LuaLaTeX as possible, what do I need to do in terms of fonts? What differences can I expect? Is there anything in particular I should be on the lookout for? Are there subtleties that I really need to check in detail?

There is no other LuaLaTeX-specific stuff in my document, and it does compile fine with pdflatex once I replace some unicode symbols (but, of course, it looks entirely different).

  • 1
    your question is very unclear!! If you just remove the lines you quote then it may work without error, but using different fonts (cm instead of pagella) that is either "something to watch out for" or "the intended effect" depending on your unstated intention. Then other parts of your document may or may not have lua dependencies we can not know about. If it uses the chickenize package porting it to pdftex might be tricky. – David Carlisle Oct 12 '15 at 16:05
  • Sorry, you are absolutely right. Updating. – gspr Oct 12 '15 at 16:11
  • You can \usepackage{lfluatex}, then do \ifluatex <your current font stuff> \else <pdflatex stuff like inputenc, fontenc, mathpazo> \fi. Then you can compile with either engine. – jon Oct 12 '15 at 16:58
8

If you remove the lines you quote and add

\usepackage{mathpazo}

then you will be using a different but more or less similar Palatino clone usable in pdftex.

  • 1
    Thank you for seeing through my unclear question, hitting the nail on the head :-) – gspr Oct 12 '15 at 18:37
  • Hmm. My $\chi$s have become Øs. Do you happen to know if this is a known bug/deficiency in mathpazo? – gspr Oct 13 '15 at 7:17
  • @gspr This works for me and makes [χ] in pdflatex \documentclass{article}\usepackage{mathpazo}\begin{document}[$\chi$]\end{document} – David Carlisle Oct 13 '15 at 8:06
  • Sorry, my bad. Your example does work here too. However, replacing $\chi$ with $\mathbf{\chi}$ gives me a boldface Ø. With LuaLaTeX, I get a boldface χ. Any ideas? – gspr Oct 13 '15 at 8:33
  • @gspr with the default definitions of \mathbf and \chi you should get a normal weight \chi if you don't then you have redefined something. You won't get a bold chi from that as the mathbf font is a roman font with no lower case greek (welcome to the world of 8bit fonts:-) you could get a bold chi using \bm{\chi} from bm package. – David Carlisle Oct 13 '15 at 10:43
7

You could use the newpxtext and newpxmath font packages, which provide Palatino clone text and math fonts.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{newpxtext,newpxmath} % Palatino clones
\usepackage{bm} % "bold math"
\begin{document}
$\alpha\beta\chi\bm{\chi}\delta\omega\sum \displaystyle\sum$
\end{document}
  • What is the advantage of newpx vs Tex-Gyre-Pagella? – skan Nov 25 '16 at 21:20
  • 2
    @skan - In my opinion, the large integral symbol provided by newpxmath is far superior to that of TeX Gyre Pagella Math. – Mico Nov 25 '16 at 21:41
2

My suggestion for what it's worth is to use the Pagella package :

\usepackage{tgpagella} % alternative to MinionPro
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage[centertags, intlimits, sumlimits, namelimits]{amsmath} 
\usepackage{amssymb}
\usepackage{microtype}

The result should also deal with all the math notation and greek letters.

  • What is the advantage of Tex-Gyre-Pagella vs newpx? – skan Nov 25 '16 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.