[OS X TeX] textsc in chapter heading
Herbert Schulz
herbs at wideopenwest.com
Mon Mar 12 19:47:52 CET 2012
On Mar 12, 2012, at 1:21 PM, Alain Schremmer wrote:
>
> On Mar 12, 2012, at 12:24 PM, Herbert Schulz wrote:
>
>>
>> On Mar 12, 2012, at 10:08 AM, Alain Schremmer wrote:
>>
>>> It seems that the protection of \textsc in
>>>
>>> \chapter{The Basis Of \protect \textsc{Arithmetic}}
>>>
>>> does not work.
>>>
>>> Of course
>>>
>>> \chapter[The Basis of ARITHMETIC]{The Basis of A{\huge RITHMETIC}}
>>>
>>> is good enough for me.
>>>
>>> But is there a "clean" way?
>>>
>>> I think I once asked a similar question but was not able to find anything about it in either my mail or the archive. I also googled but to no avail.
>>>
>>> Hopeful regards
>>> --schremmer
>>
>>
>> Howdy,
>>
>> I don't see why you have to \protect anything in that argument. It seems to work with or without the \protect just fine and also with \tableofcontents. What kind of problem are you having?
>
> \textsc doesn't have any effect within the chapter title.
>
>> Can you give a minimal but compilable example of where it goes wrong.
>
> \documentclass[11pt]{book}
> \begin{document}
> \tableofcontents
> \chapter{The Basis of \textsc{Arithmetic}}
> Some \textsc{Text}
> \newpage
> Some more \textsc{Text}
> \end{document}
>
> Observe that \textsc works on "Some \textsc{Text}" but neither on "\textsc{Basis}" in the chapter title nor in the toc but that it does work in the running heading (page 4)
>
> Same results with
>
> \chapter[The Basis of \textsc{Arithmetic}]{The Basis of \textsc{Arithmetic}}
>
>
> Regards
> --schremmer
Howdy,
That's because Computer Modern doesn't have Small Caps in Bold so \protect does nothing.
Try using
\usepackage[T1]{fontenc}
in the preamble which will use the CMSuper fonts which shouldn't change the look of the document (much? Some metrics could be a bit different so check.).
\documentclass[11pt]{book}
\usepackage[T1]{fontenc}
\begin{document}
\tableofcontents
\chapter{The Basis of \textsc{Arithmetic}}
Some \textsc{Text}
\newpage
Some more \textsc{Text}
\end{document}
Many fonts fake bold small caps, or even fake regular small caps, which I find a bit unattractive. I tend to use bold sanserif for that kind of emphasis.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the macostex-archives
mailing list