stevengogogo / neurips-quarto-extension

https://stevengogogo.github.io/neurips-quarto-extension/
MIT License
1 stars 1 forks source link

Execution halted after "latex" not found #3

Open TaWeiYeh opened 1 month ago

TaWeiYeh commented 1 month ago

After the installation of RScript in #2, I ran the command again, quarto render reports.qmd --to neurips-html. This time the error shows,

Execution halted after "latex" not found. 

Should I install a latex package?

The screenshot is attached as below. image

stevengogogo commented 1 month ago

Quarto supports TinyLatex.

stevengogogo commented 1 month ago

You can install TinyLatex from here

https://quarto.org/docs/output-formats/pdf-engine.html

stevengogogo commented 1 month ago

You might need to install some R package as well. When you can R package not found error, enter 'r' in command line and use package install

TaWeiYeh commented 1 month ago

I think the problem is the tikz package.

The figure below shows the error when converting fig-tikz figure. Though the final error message is different, it should come from the same root issue. Also, though the file name is different in the current and the previous attached picture, they are all the same template.qmd file from this repo. image

TaWeiYeh commented 1 month ago

After I commented out Line 133 to 359, my quarto could compile the template.qmd. So the problem would be, what package should we install for tikz figures? https://github.com/stevengogogo/neurips-quarto-extension/blob/f1e57cb90f04dd648b9520cdd94004f659c06b6b/template.qmd#L333-L356

stevengogogo commented 1 month ago

Did you find error message?

On Mon, May 13, 2024, 4:24 PM TaWeiYeh @.***> wrote:

After I commented out Line 133 to 359, my quarto could compile the template.qmd. So the problem would be, what package should we install for tikz figures?

https://github.com/stevengogogo/neurips-quarto-extension/blob/f1e57cb90f04dd648b9520cdd94004f659c06b6b/template.qmd#L333-L356

— Reply to this email directly, view it on GitHub https://github.com/stevengogogo/neurips-quarto-extension/issues/3#issuecomment-2108825038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5KP2UWZYMYSSF6I5WTDQTZCEVQRAVCNFSM6AAAAABHRJFK3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYHAZDKMBTHA . You are receiving this because you commented.Message ID: @.***>

TaWeiYeh commented 1 month ago

Did you find error message? On Mon, May 13, 2024, 4:24 PM TaWeiYeh @.> wrote: After I commented out Line 133 to 359, my quarto could compile the template.qmd. So the problem would be, what package should we install for tikz figures? https://github.com/stevengogogo/neurips-quarto-extension/blob/f1e57cb90f04dd648b9520cdd94004f659c06b6b/template.qmd#L333-L356 — Reply to this email directly, view it on GitHub <#3 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG5KP2UWZYMYSSF6I5WTDQTZCEVQRAVCNFSM6AAAAABHRJFK3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYHAZDKMBTHA . You are receiving this because you commented.Message ID: @.>

The error shows up when quarto is trying to convert a dvi file to a svg file. This probably caused by missing an installed package. However, I can't tell which package to install from the repo readme file. Here is the error message I get now without installing any packages from the previous reply. It is mostly the same error message from the previous reply but with more error messages. error_msg.txt

stevengogogo commented 1 month ago

Installing dviscgm might help: https://dvisvgm.de/Downloads/

stevengogogo commented 1 month ago

Also, the CI contains complete setup to run on Github Action: https://github.com/stevengogogo/neurips-quarto-extension/blob/main/.github/workflows/build.yml