Skip to content

Conversation

@alexvh
Copy link

@alexvh alexvh commented Jul 3, 2015

pdflatex and xelatex accept either a file or commands. Add similar functionality for pydflatex with --cmds option.

From commit:
Similar to passing commands instead of a filename to pdflatex or
xelatex, but still allows for pydflatex to do any path magic and
output file finding it wants. Also allows for using commands with
latexmk, which normally only takes files (e.g. latexmk
-pdflatex="pydflatex --cmds '\def\webver{}').

e.g. Passing parameters to the tex file
Tex file:
\ifdefined\webver
web version
\else
normal version
\fi

pydflatex --cmds '\def\webver{}' texfile

Similar to passing commands instead of a filename to pdflatex or
xelatex, but still allows for pydflatex to do any path magic and
output file finding it wants. Also allows for using commands with
latexmk, which normally only takes files (e.g. latexmk
-pdflatex="pydflatex --cmds '\def\webver{}').

e.g. Passing parameters to the tex file
Tex file:
	\ifdefined\webver
		web version
	\else
		normal version
	\fi

pydflatex --cmds '\def\webver{}' texfile
@olivierverdier
Copy link
Owner

Nice! Great idea. Let me look at this.

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

Successfully merging this pull request may close these issues.

2 participants