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

How to output pdf? #2

Open
faurehu opened this issue Oct 26, 2023 · 4 comments
Open

How to output pdf? #2

faurehu opened this issue Oct 26, 2023 · 4 comments

Comments

@faurehu
Copy link

faurehu commented Oct 26, 2023

I'd like to test the pdf output. What command can I call to run the latex compiler?

@jheer
Copy link
Member

jheer commented Oct 26, 2023

In your article YAML metadata/header block, you can add latex: true (or more detailed latex options) underneath the output key.

Here are some examples:

@faurehu
Copy link
Author

faurehu commented Oct 26, 2023 via email

@GdSAu
Copy link

GdSAu commented Oct 31, 2023

@jheer, hello.
I tried setting output: latex: true, and i get the following error:
Compiling latex PDF Error: ENOENT: no such file or directory, lstat '.temp/latex/index.pdf'
Any idea?
Thanks in advance

@jheer
Copy link
Member

jheer commented Nov 7, 2023

@GdSAu I would need more information to diagnose the issue. When generating a latex PDF, Living Papers writes the latex project to .temp/latex/ and runs pdflatex and bibtex within that directory. It then copies the generated PDF out of the folder. It looks like this final copy is what is breaking? So I'd recommend first checking the contents of .temp/latex/. There should be a latex log files which you can check to see if perhaps there was an error during latex compilation...

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