[OS X TeX] List nesting in TeX4ht [Was:] Is there a Latex package for creating html slidy presentations?

Eitan Gurari gurari at cse.ohio-state.edu
Sat Oct 14 17:12:00 CEST 2006



 > There was an enumerated list right in the middle of one of the items  
 > of an itemized list.  The LaTeX source code (minimalized) was:
 > \begin{itemize}
 >   \item
 >     first portion of text
 >       \begin{enumerate}
 >        \item
 >          problematic interruption
 >       \end{enumerate}
 >     second portion of text
 > \end{itemize}
 > 
 > The generated HTML code (minimalized/simplified) was:
 > <ul>
 >   <li class="itemize">
 >     first portion of text
 >       <ol>
 >         <li class="enumerate">
 >           problematic interruption
 >         </li>
 >       </ol>
 > <p class="noindent">
 >    second portion of text
 > </p>
 >   </li>
 > </ul>

It might also be worthwhile to consider inserting an empty line after
the first \item:

  \begin{itemize}
     \item

       first portion of text
       ....
  \end{itemize}

The visual dvi/ps/pdf outcome is not affected, but structurally
the html file seems to be superior.

    <ul class="itemize1"> 
      <li class="itemize"> 
        <p class="noindent">first portion of text</p> 
        <ol class="enumerate1"> 
          <li class="enumerate">problematic interruption</li> 
        </ol> 
        <p class="noindent">second portion of text</p> 
      </li> 
    </ul> 

-eitan

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list