Skip to content

words overlap in mathpazo #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
teepeemm opened this issue May 1, 2025 · 6 comments
Open

words overlap in mathpazo #837

teepeemm opened this issue May 1, 2025 · 6 comments

Comments

@teepeemm
Copy link

teepeemm commented May 1, 2025

Something is strange with how mathpazo is initially setting the font. In the first line of output in

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid},
  }
\documentclass{article}
\usepackage{mathpazo}
\begin{document}
{\Large Some intro text}

{\tiny tiny text}

{\scriptsize scriptsize text}

{\footnotesize footnotesize text}

{\small small text}

{\normalsize Some normal size text}

{\large Some large text}

{\Large Some Large text}

{\LARGE Some LARGE text}

{\huge Some huge text}

{\Huge Some Huge text}
\end{document}

The words all overlap, as if each is in its own \makebox[0pt]. Once the font changes, the words are ok, but when that font is selected again, the words again overlap.

Image
@davidcarlisle
Copy link
Member

please attach your log.

With lualatex (and lualatex-dev) in tl2025 I get

LaTeX Font Warning: Font shape `TU/ppl/m/n' undefined
(Font)              using `TU/lmr/m/n' instead on input line 10.

and

Image

@davidcarlisle
Copy link
Member

Oh you used pdflatex, I can reproduce.

@davidcarlisle
Copy link
Member

simplified version:

\DocumentMetadata
  {uncompress,
    testphase={phase-III},
  }
\documentclass{article}
\usepackage{mathpazo}
\showoutput
\begin{document}
{\Large 1Some intro text}

{\tiny 2tiny text}

{\scriptsize 3scriptsize text}

{\footnotesize 4footnotesize text}

{\small 5small text}

{\normalsize 6Some normal size text}

{\large 7Some large text}

{\Large 8Some Large text}

{\LARGE 9Some LARGE text}

{\huge aSome huge text}

{\Huge bSome Huge text}
\end{document}

@u-fischer
Copy link
Member

An example without tagging:

\documentclass{article}
\usepackage{mathpazo}
\showoutput
\begin{document}%
\pdfinterwordspaceon

\Large 1Some intro text

\end{document}

Image

with texlive 2024 this gives

Image

So it looks like an engine bug. The question is why it is triggered by mathpazo.

@teepeemm
Copy link
Author

I think this can be reduced to

\documentclass{article}
\renewcommand{\rmdefault}{ppl}
\showoutput
\begin{document}
\pdfinterwordspaceon

1Some intro text

\end{document}

which mathpazo.sty calls at line 48 (or 40 or 44, depending on package options).

@u-fischer
Copy link
Member

@teepeemm I reported the issue to the pdftex some days ago maintainer. You can work around it by using the font at very small size first, e.g. in a shipout hook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants