[tex4ht] tex4ht + hyperref + mwbk + secnumdepth issue

Deimantas Galcius deimi at vtex.lt
Tue Jun 17 07:09:38 CEST 2014


Hi Sylwester,

try this way:

  \documentclass{mwbk}
     \usepackage[tex4ht]{hyperref}
     \setcounter{secnumdepth}{0}
*\makeatletter**
**  \def\section at flags{0100}**
**  \makeatother*
     \begin{document}
       \section{bug}
     \end{document}

-- 
Deimantas

On 6/16/2014 2:39 PM, Sylwester Arabas wrote:
> Dear All,
>
> Having a problem compiling a large "mwbk" document with tex4ht using hyperref, I've managed to track down the problem to the following short code:
>
>     \documentclass{mwbk}
>     \usepackage[tex4ht]{hyperref}
>     \setcounter{secnumdepth}{0}
>     \begin{document}
>       \section{bug}
>     \end{document}
>
> When trying to compile using htlatex, it gives the following error:
>
>     ...
>     No file bug.aux.
>     ! LaTeX Error: Something's wrong--perhaps a missing \item.
>     See the LaTeX manual or LaTeX Companion for explanation.
>     Type  H <return>  for immediate help.
>      ...
>     l.5   \section{bug}
>
>
> Changing mwbk into book helps. Removing hyperref inclusion helps. Removing setcounter helps as well. Compiling with "pdflatex" instead of htlatex helps.
>
> Any help very welcome!
> Thanks,
> Sylwester
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20140617/9de06537/attachment.html>


More information about the tex4ht mailing list