bugtex4ht - Bugs: bug #220, loading tocloft package causes toc...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #220: loading tocloft package causes toc not to be generated in HTML

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Fri 11 Jul 2014 12:37:54 PM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 14 Jul 2014 02:02:34 AM EEST, comment #3:

thanks very much, installed in tex4ht + tex live.

Karl Berry <karl>
Project Administrator
Sun 13 Jul 2014 12:46:50 AM EEST, comment #2:

Hi Michal - I've never used tocloft, but it sounds sensible to me.

Do you mind contributing the work to TUG, i.e., copyright TUG instead of you personally? Not that it's a big deal either way.

Thanks,
Karl

Karl Berry <karl>
Project Administrator
Sun 13 Jul 2014 12:02:48 AM EEST, comment #1:

I provided more detailed answer in the linked question in TeX.sx. tocloft package tries to redefine internal LaTeX TOC mechanism, but this break tex4ht support for TOC. Because tex4ht uses its own mechanism for TOC configuration, I think best approach is to disable tocloft when tex4ht is used. I've created minimal tocloft.4ht file for this purpose. Patch for tex4ht literate sources is attached.

(file #173)

Michal Hoftich <michal_h21>
Project Member
Fri 11 Jul 2014 12:37:54 PM EEST, original submission:

Texlive 2014

This MWE does not generate a table of contents in the HTML file generated by htlatex

\documentclass{article}
\usepackage{tocloft} %comment this to see toc
\begin{document}
\tableofcontents
\section{sec1}
some text 1
\section{sec2}
some text 2
\end{document}

if tocloft is not used, then toc will show up in html.

command to compile is

htlatex foo.tex

Then view the file foo.html in same folder to see the missing toc.

Please see

http://tex.stackexchange.com/questions/190991/why-adding-tocloft-package-causes-tex4ht-not-to-generate-a-table-of-contents

Nasser M. Abbasi <nma123>

 

Attached Files
file #173:  tocloft.patch added by michal_h21 (898B - text/x-patch - Patch for tex4ht-4ht.tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Updated the item)
  • -unavailable- added by nma123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Jul 2014 02:07:25 AM EESTkarlOpen/ClosedOpen=>Closed
    Sun 13 Jul 2014 12:02:48 AM EESTmichal_h21Attached File-=>Added tocloft.patch, #173
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray