# [texhax] Small caps in XeLatex

Mon Feb 28 17:54:30 CET 2011

Thanks, William.

I was afraid of that, since I want to use Baskerville for the main text. But
your suggestion of Hoefler gave me the idea of a simple-minded
\newcommand{\Smc}[1]{\setmainfont[Mapping=tex-text]{Hoefler Text}\textsc{#1}

and now \Smc{string} produces string in small caps.  Thanks.

How do I find out which Mac OS X fonts support small caps, besides Hoefler.
Do I just have to know it!

Thanks again.

26 Elmwood Ave
Cambridge, MA 02138
617-501-2110

On Mon, Feb 28, 2011 at 11:26 AM, William Adams <will.adams at frycomm.com>wrote:

> On Feb 26, 2011, at 6:48 AM, R. Bhaskar wrote:
>
> > I use a bunch of font declarations with the \newfontfamily{<fontname>}
> command, where <fontname> is always a Mac OS X font.  How do I get \textsc
> to work? I have set the romanfont to be Baskerville, but any declared
> romanfont seems to make it impossible for the \textsc command to work.
>
> You have to use a font which includes the small caps feature, e.g., Hoefler
> Text:
>
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont[Mapping=tex-text]{Hoefler Text}
> \begin{document}
> Text set in \textsc{Hoefler Text}.
> \end{document}
>
> The Baskerville bundled w/ Mac OS X unfortunately doesn't have small caps.
>
> See the FontSpec documentation for full details.
>
> William
>
> --