[texhax] tabularx and titletoc/titlesec: harmful interaction?

Susan Dittmar Susan.Dittmar at gmx.de
Tue Jul 17 19:46:44 CEST 2012

Hi folks,

I just reallized that, if my guess at what's happening is correct, this has
nothing to do with titletoc and titlesec. I just tested, and the behaviour
stays the same if I use the original \section and \subsection commands.
Here's a new (and more minimal) example.

Thanks for any hints how to solve the problem,




	\advance\value{mysecdepth} by 1 % local assignment
		\immediate\write16{mysection: counter mysecdepth has value 0! This can't happen!}%
		\immediate\write16{mysection: No more hierarchy levels!}%


\begin{mysection}{first section}
	text of first section
	\begin{mysection}{first subsection of first section}
	text of first subsection of first section

\begin{mysection}{second section}
	text of second section

\begin{mysection}{third section}
	text of third section

	This is a tabularx \\
	just to show my problem.\\

\begin{mysection}{fourth section}
	text of fourth section, which falsely was chosen to
	be first subsection of section tree


More information about the texhax mailing list