[latexrefman] pdflatex -jobname=aa "\RequirePackage[draft]@{graphicx@}\input@{aa.tex@}"

Vincent Belaïche vincent.belaiche at gmail.com
Wed Apr 29 19:01:42 CEST 2020


One more thing. TeX Live (TL) and MiKTeX (MT) seem to have some
difference in their heuristics.

Still with some basic document temp.tex, if I type (note the space at
the beginning).

 pdflatex " \input" temp

with MT, the first argument is deemed to be code although it does not
begin with a «\», while TL will bark at not finding the file named "
.tex".




Le mer. 29 avr. 2020 à 18:57, Vincent Belaïche
<vincent.belaiche at gmail.com> a écrit :
>
> Maybe it would also be worth mentionning that when there are several
> arguments containing LaTeX code, an implicit space separator is in
> between them.
>
> So if you have a document temp.tex
>
> ================================================================================
> \documentclass{minimal}
> \begin{document}
> Bonjour\separator tous.
> \end{document}
> ================================================================================
>
> and you type
>
>   pdflatex "\def\sepearator{" "}\input" temp
>
> then you get in the PDF output this:
>
> ================================================================================
> Bonjour tous.
> ================================================================================
>
> Le mer. 29 avr. 2020 à 18:35, Vincent Belaïche
> <vincent.belaiche at gmail.com> a écrit :
> >
> > Sorry the email was sent w/o my completing it:
> >
> > Of course it is best not to use these special characters, but
> > sometimes they are forced by other constrains like for ~ which is
> > commonly used in version tracking systems.
> >
> >   V.
> >
> > Le mer. 29 avr. 2020 à 18:31, Vincent Belaïche
> > <vincent.belaiche at gmail.com> a écrit :
> > >
> > > Hello,
> > >
> > > This example is in node Command line input.
> > >
> > > There are two things:
> > >
> > > * first, I think that \PassOptionsToPackage{draft}{graphicx} is safer,
> > > especially when order of package loading matters.
> > > * second -jobname=aa is useless here, and as such brings confusion
> > >
> > > Finally, I think that there are two other special effect of interest
> > >
> > > * changing the \today date :
> > >    pdflatex "\year=1789 \month=7 \day=14 \input" BastilleDay.tex
> > >
> > > * overcoming some special characters in the root filename, like this
> > > to accept ~ in the name :
> > >   pdflatex "\relax{\catcode126=11 \toks0{\input" temp~1 "
> > > }\expandafter}\the\toks0 "
> > > a more complete example can be found in the run_tex function of the
> > > bash script texi2dvi
> > > http://git.savannah.gnu.org/cgit/texinfo.git/tree/util/texi2dvi
> > > Of course
> > >
> > >   V.



More information about the latexrefman mailing list.