bugtex4ht - Bugs: bug #177, TeX capacity exceeded with index...

Show feedback again

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

bug #177: TeX capacity exceeded with index and label

Submitted by:  Frank Loemker <floemker>
Submitted on:  Thu Dec 20 11:42:10 2012  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: CV Radhakrishnan <cvr>
Open/Closed: Closed

Sun Jan 20 11:52:14 2013, comment #4:

"\section{The command line parameters} \index{parameters}" is the
workaround which I currently use. It works mostly ok, but has different

1. The generated anchor is not completely correct. It is on the line
after the section title, but it should be on the title itself.

2. The source now needs to contain the index value two times. Before
I used the macro
to prevent this.

3. The original tex sources do not compile out of the box. Not a problem
for me, but not what one would like to have ideally for a general
tex to html converter.

Frank Loemker <floemker>
Sun Jan 20 04:38:16 2013, comment #3:

Does your coding has any extra merit over the following?

\section{The command line parameters}

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Sat Jan 19 22:40:47 2013, comment #2:

Unfortunately that workaround does not work correctly. There is then for
every occurrence of the section argument an own index entry, which is not
what one wants.

Consider the following slightly extended example


\usepackage{makeidx} \makeindex



\section{The command line parameters\protect\index{parameters}}




Here the index entry of "parameters" contains in addition to the correct
"2" for the section start a wrong "1" for the table of content.

I compiled this example with:

htlatex test.tex
tex '\def\filename{{test}{idx}{4dx}{ind}} \input idxmake.4ht'
makeindex test.4dx
htlatex test.tex

Frank Loemker <floemker>
Sat Jan 19 17:03:25 2013, comment #1:

\section{The command line parameters \protect\index{parameters}} will solve the problem.

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Thu Dec 20 11:42:10 2012, original submission:

Compiling the following code with "htlatex test.tex" results in a
"TeX capacity exceeded". Compiling with latex and pdflatex in contrast
works fine.


\usepackage{makeidx} \makeindex


\section{The command line parameters \index{parameters}}



The error message is
! TeX capacity exceeded, sorry [input stack size=5000].
\:nbsp ->\leavevmode
\special {t4ht@+\string &{35}x00A0{59}}x
l.9 \label{commandline}

Moving the \index{} outside of the \section{} argument or removing
the \label{} allows to compile the code.

I am using texlive-tex4ht-2011-13.5.1 under texlive-2011-13.5.1
on an openSUSE 12.2 system. tex4h.sty prints "version 2008-10-27-17:23".

Frank Loemker <floemker>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cvr (Posted a comment)
  • -unavailable- added by floemker (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):



    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Jan 19 17:04:01 2013cvrOpen/ClosedOpen=>Closed
    Sat Jan 19 17:03:25 2013cvrStatusNone=>Fixed
      Assigned toNone=>cvr
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray