My understanding is that if I create a file called noName.tex with the first line
%& -jobname=myName
then when I run pdflatex on that file, the output file will be named myName.pdf rather than noName.pdf, just as if I'd typed
pdflatex -jobname=myName noName.tex
But in the following example, the first line is ignored by pdflatex, and the output is named noName.pdf.
Here is noName.tex:
%& -job-name=myName
\documentclass{minimal}
\begin{document}
Hello World
\end{document}
Could somebody advise what the correct syntax would be please? Thanks very much.
The version of pdflatex I'm using is:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2014.6.25)
%& -jobname=myName
is one of these so-called magic comments, which can be interpreted by some editors (TeXstudio, TeXworks). This is hence not an intrinsic feature ofpdftex
and compiling from the command line will thus result in those magic comments being ignored.-jobname
there some don't: MiKTeX does, TeX Live doesn't.