[l2h] different expansion of environment

Ross Moore ross at ics.mq.edu.au
Thu Mar 5 07:18:30 CET 2009


On 05/03/2009, at 4:22 PM, Christian wrote:

> Am 04.03.2009 um 07:44 schrieb Ross Moore:
>
>> So you could do:
>>
>> %begin{latexonly}
>>  \newenvironment{intendleft}{\begin{addmargin}{3em}}{\end{addmargin}}
>> %end{latexonly}
>> \begin{htmlonly}
>>  \newenvironment{intendleft}{\begin{quotation}}{\end{quotation}}
>> \end{htmlonly}
>
> That worked, but if I would use "quotation" for the html expansion,
> the text gets set in <BLOCKQUOTE> .... </BLOCKQUOTE> as you mentioned.
> That would mean, styling the "normal" quotations via CSS would also
> change these parts. So I would prefer to apply an extra style or div
> or something else for the HTML output to control the left margin.

> Would be such a solution possible with latex2html?

  \begin[leftindent]{quotation}
   ...
   ...
  \end{quotation}

should result in tagging:

   <BLOCKQUOTE class="leftindent">
    ...
    ...
   </BLOCKQUOTE>

which allows you to attach CSS style rules to the class.
The \htmlsetstyle  command allows you to specify the CSS
rules from within the LaTeX source.

You'll need to specify   -html_version 4.0
as a command-line option, or set the corresponding variable
within an initialization file.


Read about these features in "The LaTeX Web Companion",
Chapter 3,  section 3.3.4 .
   (Addison-Wesley, 1999. 5th printing 2004)



>
> @ Algis
> "intendleft" (now "indentleft") is a just the name of a new created
> environment.
>
>>>
>>>
>>> Thanks
>>> Christian
>>
>> Hope his helps,
>>
>> 	Ross
>
> Thanks
> Christian


Hope his helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the latex2html mailing list