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

fatal font error rendering apaquarto-pdf format with latek equations #99

Open
iancont opened this issue Nov 24, 2024 · 1 comment
Open

Comments

@iancont
Copy link

iancont commented Nov 24, 2024

# Error rendering APAquarto template with math equations

## Description
I'm experiencing issues rendering a Quarto document with math equations using the APAquarto template. The error occurs specifically when trying to render PDF files containing equations in my manuscript project. To verify this wasn't an isolated issue, I recreated the error with a fresh installation.

## Steps to Reproduce
1. Install APAquarto extension in a new directory:
   ```bash
   quarto use template wjschne/apaquarto
  1. Attempt to render the example document:
    quarto render example.qmd

Error Message

When trying to render the document with math equations, I get the following XeTeX error:

This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode

xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...

Example Math Equation

The error occurs with any equation, including the one appended in example.qmd

$$
e^{i\pi}+1=0
$$ {#eq-euler}

Additional Information

  • Document renders correctly when output format is changed to .docx
  • Error only occurs with PDF output format
  • Document renders successfully when math equations are commented out
  • Issue affects both simple and complex equations

Environment

  • TeX Live 2024
  • XeTeX Version 3.141592653-2.6-0.999996
  • Quarto version 1.6.32
  • APAquarto template

Question

How can I troubleshoot this error to properly render PDF documents containing math equations using the APAquarto template? Any guidance on font configuration or XeTeX settings would be appreciated.

@wjschne
Copy link
Owner

wjschne commented Nov 25, 2024

Thank you for thoroughly documenting the problem. I was not able to duplicate this error. I do not know why the error appears on your machine but not mine. I tried Googling the error message but did not find any obvious solutions. It seems that LaTeX is not finding a font and is not installing it either. If you are using tinytex, I would recommend reinstalling it. It sometimes gets stuck when something new needs to be installed. Other than that, I am not sure what else to do. If you find the solution, please let me know.

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

2 participants