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.

  • 5
    \textsc{o\textup{open}mp} should work.
    – egreg
    Commented Oct 10, 2011 at 22:04

2 Answers 2


\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.


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .