Code: Select all
\unhbox \voidb@x \kern \z@ \char `\discretionary {-}{}{}
Thanks for any advice,
nvx
Code: Select all
\unhbox \voidb@x \kern \z@ \char `\discretionary {-}{}{}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\protect
when you write it to the .toc file.Then you should post anvx wrote:Frankly, I cannot understand why this is happening, because other (sub)section headers containing hyphens are typeset as they should...
Stefan's suggestion was dead-on, but thanks anyway.cgnieder wrote:How do you insert the hyphen?
-
an active character and defined it in a fragile way.Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis