TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

How can I "protect" an argument of a command from the effect of the command?

The link is interrupted by \spacedallcaps





share|improve this question
\textbf{\textnormal{normal} boldface}; please, make the title of this question to reflect the exact topic you're discussing. – egreg Oct 10 '12 at 16:54
In general? You need to know what a command does to be able to counteract what it does or to know you can't do anything. Every command is different... – clemens Oct 10 '12 at 17:05
In general, setting it first in a box would remove any formatting from impacting it. However, depending on the use, it might also not fit well with the rest of the text, removing any inter-word shrink/stretch. – Werner Oct 10 '12 at 17:08
@Werner \unhbox should avoid this issue, no? – Stephan Lehmke Oct 10 '12 at 20:11
Why not \href{http://it.wikipedia.org/wiki/Pagina_principale}{\spacedallcaps{test}}? – clemens Oct 13 '12 at 11:31
up vote 2 down vote accepted

If you want only test in spaced capital letters, obviously


is the answer.

But if you want to make a chapter title into a link (classicthesis uses \spacedallcaps in that case, if I remember correctly), then you have to resort to a hack:



The problem is not to show the link address to \MakeUppercase that would turn it in uppercase too.

However I don't recommend turning a chapter title into a link; better putting the link just at the start of the chapter text.

share|improve this answer

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.