Skip to content
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

pdfTeX error (font expansion): auto expansion is only possible with scalable fonts. #133

Closed
evildead opened this issue Nov 14, 2019 · 4 comments

Comments

@evildead
Copy link
Contributor

Hello,

I tried to use your eisvogel latex template (v1.3.0):
> pandoc myMDDocument.md -o myPdf.pdf --from markdown --template "./eisvogel.latex" --listings

and I always get the following error:

Error producing PDF.
! pdfTeX error (font expansion): auto expansion is only possible with scalable
fonts.
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
                                                  \fi \fi
l.643 \begin{lstlisting}

what can I do?

@Wandmalfarbe
Copy link
Owner

Wandmalfarbe commented Nov 14, 2019

I assume that you are using Windows with MiKTeX because I have experienced the same problem a while back. Please use the suggested solution from here:

To solve the problem navigate to C:\Program Files\MiKTeX 2.9\miktex\bin\x64 and run updmap.exe. The program may seem as it hangs for a while, but its probably because it tries to update the whole font tree. This solved the problem for me. After re-compiling everything should work fine.

@evildead
Copy link
Contributor Author

You were completely right man @Wandmalfarbe
Thank you sooo much, it worked perfectly.

Best Regards
Danilo

@Wandmalfarbe Wandmalfarbe changed the title Error trying to use the eisvogel template pdfTeX error (font expansion): auto expansion is only possible with scalable fonts. Nov 14, 2019
@Wandmalfarbe Wandmalfarbe pinned this issue Nov 14, 2019
@Wandmalfarbe Wandmalfarbe unpinned this issue Nov 23, 2019
@Wandmalfarbe Wandmalfarbe pinned this issue Nov 23, 2019
@Wandmalfarbe Wandmalfarbe unpinned this issue Feb 1, 2021
@fekoch
Copy link

fekoch commented May 19, 2021

Hey, I have the same Problem:

pandoc --template eisvogel --listings -f gfm -o mypdf.pdf mymarkdown.md
Error producing PDF.
! pdfTeX error (font expansion): auto expansion is only possible with scalable 
fonts.
<argument> ...shipout:D \box_use:N \l_shipout_box 
                                                  
l.493 \end{document}

But I use manjaro Linux.

@schumar
Copy link

schumar commented Sep 13, 2022

@fkoch-tgm , I don't think you have the same problem -- your error message is different.

I got the same error message as you (running Debian GNU/Linux 11), and the solution was to install the texlive-full package (as mentioned in README.md) -- for Manjaro, this guide might help.

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

No branches or pull requests

4 participants