Tag Info

New answers tagged

4

If you want to suppress the number, or alternatively include it in the underlining you may try this. If your section titles are short enough then, using souls \ul (which may have problems depending on the encountered material) is too much, a simple \underline or home-made box+rule would work. \documentclass[a4paper]{article} \usepackage{color} ...


5

I won't recommend it, as it hard to read: see http://practicaltypography.com/underlining.html You can do this by: \documentclass{article} \usepackage{soul,xcolor} \setul{1ex}{0.8ex} \setulcolor{red} \begin{document} \tableofcontents \section[\ul{Foobar}]{Foobar} \end{document} EDIT: Maybe this helps, but I didn't get it managed to work with soul, nor to ...


7

Heiko has given a full description of how to solve the problem so I'll restrict to commenting on the sub-question My understanding is that \unskip is kind of like \ignorepreviousspace. Is this correct? Basically no, that understanding is not correct. \unskip and \ignorespaces work at completely different levels (and % before a linebreak works at ...


16

\uline parses its argument to divide the text into words. A parsed word is put into a box to measure its width and overlay it with the markings (line, double line, wave, ...). Therefore \unskip goes at start of a new word to the begin of a box. There is no space to remove. Thus it is without effect. Putting \unskip after \uline{...} is better because it ...



Top 50 recent answers are included