[l2h] package similar to overcite

Ross Moore ross@ics.mq.edu.au
Sun, 2 Jun 2002 10:38:37 +1000 (EST)


> 
> Hi, all
> 
> Suppose that a package defines a command to store something (for 
> instance, \leftdelimiter).
> 
> If the "perl version" of this package uses a variable like
> $LEFT_DELIMITER, what is the code in order to a redefinition of 
> \leftdelimiter by the user make $LEFT_DELIMITER change and agree with 
> user?

LaTeX2HTML recognises 2 LaTeX-like commands:

  \HTMLset{<variable-name>}{<value>}
and
  \HTMLsetenv{<variable-name>}{<value>}
 
e.g. 
  \HTMLsetenv{LEFT_DELIMITER}{[}
might do as you want.

The \HTMLsetenv command is evaluated in order with environments,
whereas \HTMLset evaluates in order with commands.
Otherwise the two are indentical in function, and within Perl
the variables are scoped according to however the variable itself
is used within the LaTeX2HTML subroutines that are active at the
time the command is evaluated; usually this will be 'global'.

Thus if you are wanting to switch between 1 value and another,
(according to LaTeX environments, say)
then you will need to use a command for each change.
It may take some trial and error to get it right.

Such things are best programmed as optional parameters to
environments, within the Perl coding for your package.


Hope this help,

	Ross

> thanks
> 
> []'s
> 
> Miguel.
> 
> -- 
> =======================================
> Miguel Vinicius Santini Frasson
> =======================================
> PhD student at Leiden University
> e-mail: frasson@math.leidenuniv.nl
>         mvsfrasson@bol.com.br
> http://mvsfrasson.vila.bol.com.br
> 
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html