aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
491 stars 89 forks source link

Pass arguments to pdflatex? #75

Open harieamjari opened 2 years ago

harieamjari commented 2 years ago

Would it be possible to pass arguments like, -shell-escape to pdflatex? I tried doing pdflatex%20-shell-escape but it treats this as only a command, not a command and an argument.

harieamjari commented 2 years ago

I was trying to append a git hash to my document by doing

\immediate\write18{git rev-parse --short HEAD > commit.txt}

\title{Research}
\author{Harieamjari\\
(Revision: \input{commit.txt})}
harieamjari commented 2 years ago

Anyway, I was able to do:

\input{.git/refs/heads/master}