wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
170 stars 15 forks source link

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

Open iancont opened 2 days ago

iancont commented 2 days ago
# 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

Environment

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 commented 19 hours ago

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.