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

LaTeX style file #1161

Closed
sepideh-esk opened this issue Nov 25, 2022 · 5 comments
Closed

LaTeX style file #1161

sepideh-esk opened this issue Nov 25, 2022 · 5 comments

Comments

@sepideh-esk
Copy link

When I inspect the PDFs of JOSS I see that they are created by "LuaHBTeX, Version 1.15.0 (TeX Live 2022)".

Do have the (La)TeX style file for directly compiling the PDF from a LaTeX source using TeX Live 2022? This would help for arXiv submission also.

@jedbrown
Copy link
Member

It's pandoc driving lualatex. You can see the invocation here. https://github.com/openjournals/inara/blob/main/Makefile#L28-L42
https://github.com/openjournals/inara/blob/main/data/defaults/pdf.yaml

If you make a target for the raw latex, we'd welcome a PR.

@xuanxu
Copy link
Member

xuanxu commented Nov 25, 2022

You can select preprint as output when running Inara using the flag -o preprint and it will generate a LaTeX file suitable to send to preprint archives.

@pedramardakani
Copy link

It's pandoc driving lualatex. You can see the invocation here. https://github.com/openjournals/inara/blob/main/Makefile#L28-L42 https://github.com/openjournals/inara/blob/main/data/defaults/pdf.yaml

If you make a target for the raw latex, we'd welcome a PR.

I can make it if no one's started yet ✌

@pedramardakani
Copy link

pedramardakani commented Nov 28, 2022

You can select preprint as output when running Inara using the flag -o preprint and it will generate a LaTeX file suitable to send to preprint archives.

Oh good call @xuanxu ! Here's what I did when running inara with the docker image:

sudo docker run --rm -it -v $PWD:/data \
            -u $(id -u):$(id -g) --entrypoint="" openjournals/inara \
            sh -c 'inara paper.md -o preprint && pdflatex paper.preprint.tex'

So the entrypoint is reset, and then, as @xuanxu said, the preprint option makes the paper.preprint.tex file. Right after that, we're using pdflatex to create the pdf inside the docker environment.

I tried building it on the host machine as well, but it complained about not finding authblk.sty and orcidlink.sty files. However, these can be installed pretty easily using: tlmgr install preprint orcidlink. So now I can get the preprint, tinker it and build it on the host machine quickly 🤓

Now the output pdf has the following properties:

Creator: LaTeX via pandoc
Producer: pdfTeX-1.40.24

I hope this helps @sepideh-esk 🤞

@sepideh-esk
Copy link
Author

Thanks @xuanxu and @pedramardakani. I was also able to generate the LaTeX source and now I can continue writing the manuscript and I hope to submit it as soon as possible.

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

5 participants