TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is related to How to create a newcommand for fontsize?. I would like to change the fontsize within \ul of the soul package. For example:


\ul{{\mycfs{6} Size 6 font} Normal size font}

This error message occurs: ! Package soul Error: Reconstruction failed.

How can this be fixed?

share|improve this question
Have a look at the correction and additional answers to the other topic. – Stefan Kottwitz Aug 23 '10 at 19:00

I would change the definition of \mycfs so that it no longer has an argument:


\newcommand\mycfs{\fontsize{\mysize}{\the\dimexpr \mysize*1.2\relax}\selectfont}


\ul{\mycfs Size 6 font} Normal size font
share|improve this answer

\mbox could already fix it for you:


\ul{\mbox{\mycfs{6}Size 6 font} Normal size font}



alt text

share|improve this answer
The trouble with mbox is that is will not line break properly and out out of the margin. – user942 Aug 23 '10 at 21:16
What is the goal? Underlining long passages or several lines seems strange to me. – Stefan Kottwitz Aug 23 '10 at 21:22
underlining urls – user942 Aug 23 '10 at 21:23
As underlining is typographically questionable style it's rarely used in texts, even modern webpages try to avoid that. It's a relic of the time of early browsers. So, it's not well supported. Perhaps have a look at tex.ac.uk/cgi-bin/texfaq2html?label=underline - maybe you might find a better emphasizing of URLs than underlining? Bold, colored, or typewriter font? – Stefan Kottwitz Aug 23 '10 at 21:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.