At 9:14 AM +0200 15/5/98, Lutz Prechelt wrote:
>> 1. Styles/classes that have a corresponding .perl file.
>> => do *not* search these styles in $TEXINPUTS (or by kpsewhich), but
>> include the .perl file in LaTeX2HTML and include the style in
>> images.tex
>>
>> 2. Styles/classes that can be ignored for LaTeX2HTML
>> => Just skip this style/class for the main script, but include it into
>> images.tex (is that correct, or must we differentiate two cases
>> here?)
>
>>From a software engineering standpoint I may suggest that
>it would be wiser to treat case 2 just like case 1 by using
>an empty .perl file.
>This is clearer and more flexible as one can then add another style
>without changing the l2h source code.
Thanks for the comment Lutz.
Indeed LaTeX2HTML cannot differentiate cases 1. and 2. for the simple reason
that users may define their own styles/classes.
LaTeX2HTML can thus not know in advance what to include or exclude,
unless the user provides this information using the $DO_INCLUDE or
$DONT_INCLUDE
variables.
Yes, an empty .perl file is one way to suppress the warning message that might
result otherwise, during the LaTeX2HTML processing.
There are other ways of achieving this, via the .latex2html-init file.
Currently files ending in .sty , .cls or .clo are *not* included,
unless the user specifically requests this, using $DO_INCLUDE say.
Of course the calls to use these styles/classes/options *are* included
in images.tex .
In fact this was not the issue that I raised.
That concerned paths to search for \input and \include files,
and even to find the main document itself.
It was specifically about whether to use the $TEXINPUTS variable,
or the existing TEXINPUTS environment variable,
accessible within Perl as $ENV{'TEXINPUTS'} .
For LaTeX2HTML v98.1p5 the strategy is now to use the value of $TEXINPUTS ,
passed as a string on the command-line of the call to texexpand .
Previous uses of $ENV{'TEXINPUTS'} and kpsewhich have been disabled.
(The code is still there, but commented-out or within a non-accessible branch.)
This may not be the most efficient way to pass the information,
but it was the simplest to implement with minimal code changes.
If problems arise, we can review this strategy.
All the best,
Ross Moore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore email: [EMAIL PROTECTED]
Mathematics Department phone: +612 9850 8955
Macquarie University fax: +612 9850 8114
Sydney, NSW 2109 office: E7A-419
Australia WWW: http://www-math.mpce.mq.edu.au/~ross/
***************************
for the best in (La)TeX-nical typesetting and Web page production
join the TeX Users Group (TUG) --- browse at http://www.tug.org
<[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~