Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

small caps numbers?

469 views
Skip to first unread message

nut

unread,
Apr 6, 2010, 6:26:54 PM4/6/10
to
How do I get small caps numbers in a \textsc environment? That is, in
the snippet

\documentclass{article}
\begin{document}
\textsc{Hello 123}
\end{document}

'Hello' is typeset in small caps, but '123' is in roman. I would like
to get '123' in small caps, too. I could not find any info in Kopka
and Daly or the LaTeX Companion.

Thanks.

Bob Tennent

unread,
Apr 6, 2010, 11:14:45 PM4/6/10
to

\textsc{Hello}~\oldstylenums{123}

or, if you like Palatino:

\usepackage[osf]{mathpazo}

Bob T.

Joseph Wright

unread,
Apr 7, 2010, 1:56:06 AM4/7/10
to

Um, "old style" numbers are lower case: lining numbers are upper case.
--
Joseph Wright

Ulrike Fischer

unread,
Apr 7, 2010, 3:02:51 AM4/7/10
to
Am Tue, 6 Apr 2010 15:26:54 -0700 (PDT) schrieb nut:

> How do I get small caps numbers in a \textsc environment? That is, in
> the snippet
>
> \documentclass{article}
> \begin{document}
> \textsc{Hello 123}
> \end{document}
>
> 'Hello' is typeset in small caps, but '123' is in roman. I would like
> to get '123' in small caps, too.

The numbers are from the same font as the characters, so they are
"in small caps". If you want smaller numbers, use a smaller
fontsize:

\documentclass{article}
\usepackage{graphicx}


\begin{document}
\textsc{Hello 123

Hello{\small 123}
Hello{\footnotesize 123}
Hello{\fontsize{7.5}{8.5}\selectfont 123}
Hello\scalebox{0.75}{123}}
\end{document}

--
Ulrike Fischer

Bob Tennent

unread,
Apr 7, 2010, 4:24:31 AM4/7/10
to
On Tue, 6 Apr 2010 22:56:06 -0700 (PDT), Joseph Wright wrote:
> On Apr 7, 4:14 am, Bob Tennent <B...@cs.queensu.ca> wrote:
>> On Tue, 6 Apr 2010 15:26:54 -0700 (PDT), nut wrote:
>>
>>  > How do I get small caps numbers in a \textsc environment? That is, in
>>  > the snippet
>>  >
>>  > \documentclass{article}
>>  > \begin{document}
>>  > \textsc{Hello 123}
>>  > \end{document}
>>  >
>>  > 'Hello' is typeset in small caps, but '123' is in roman. I would like
>>  > to get '123' in small caps, too. I could not find any info in Kopka
>>  > and Daly or the LaTeX Companion.
>>
>> \textsc{Hello}~\oldstylenums{123}
>>
>> or, if you like Palatino:
>>
>> \usepackage[osf]{mathpazo}
>>
>
> Um, "old style" numbers are lower case: lining numbers are upper case.

That was my interpretation of what the OP wanted. Often old style
numbers are in the same font as small caps.

Bob T.

0 new messages