[l2h] Tricky \newcommand?
Ross Moore
ross@ics.mq.edu.au
Sat, 24 Aug 2002 19:51:32 +1000 (EST)
> Hi,
>
> I do
>
> \newcommand{\licchksec}{\input{mosektoolslicchk.tex}}
No; this cannot work with LaTeX2HTML.
>
> and then later in my document
>
> \licchksec
>
> It seems that
>
> latex2html
>
> never does the input. Although pdflatex does. Is that ok. Or am I doing something wrong.
That is part of the design of how LaTeX2HTML handles jobs.
It needs to know *at the very beginning* (i.e. before any macros are even
looked at) precisely which files are to be input into a job.
The \input and \include commands are handled by the early call to texexpand ,
which also handles the {htmlonly} and {latexonly} environments to create
a single large text-string which will subsequently be scanned and refined
to give the final HTML pages.
You cannot later add more material from an extra file by expanding a macro.
(The exception proving this rule is to add a .bbl bibliography. :^)
Hope this helps,
Ross Moore
> Erling
>
>
> *************************************************************************
> MOSEK ApS
> C/O Symbion Science Park
> Fruebjergvej 3, Boks 16
> DK-2100 Copenhagen O
> Denmark
>
> Phone (work): +45 3917 9907
> Mobile-phone: +45 2362 9520
> Fax: +45 3917 9823
> Email to phone: 23629520@sms.tdm.dk
> Email: e.d.andersen@mosek.com
> Homepage: http://erling.andersen.name
> http://www.mosek.com/homepages/e.d.andersen/
>
> *************************************************************************
>
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html