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

Pass arguments to pdflatex? #75

Open
harieamjari opened this issue Oct 2, 2021 · 2 comments
Open

Pass arguments to pdflatex? #75

harieamjari opened this issue Oct 2, 2021 · 2 comments

Comments

@harieamjari
Copy link

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
Copy link
Author

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
Copy link
Author

harieamjari commented Oct 2, 2021

Anyway, I was able to do:

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

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

1 participant