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 disable smallcaps within \textsc{}?

I would like to be able to disable/toggle smallcaps on a local level so that something like \textsc{o\textrm{open}mp} looks like \textsc{o}open\textsc{mp}. The reason for not doing the latter is to try to make use of the glossaries package with the smallcaps option for abbreviations. This automatically does the outer \textsc{} wrapping.

share|improve this question
\textsc{o\textup{open}mp} should work. – egreg Oct 10 '11 at 22:04
up vote 14 down vote accepted

\textsc acts on the "shape" attribute; so changing again this attribute is what's needed: \textup exactly switches to "upright shape" (or Roman).


will print "a" and "c" in small caps and "b" in the normal font.

share|improve this answer

As mentioned by egreg, you can use \textup instead of textsc.

One way to do this is to redefine the meaning of \textrm. I'd recommend limiting it to within the scope where you want to apply this:

{% Group here so that this is only in effect locally in this group.
These should be the same:\par

These should be different:\par
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.