[texhax] Small caps in XeLatex

Ramamoorthi Bhaskar bhaskar51 at gmail.com
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}
\setromanfont{Baskerville} }

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.

R. Bhaskar

26 Elmwood Ave
Cambridge, MA 02138

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
> --
> William Adams
> senior graphic designer
> Fry Communications
> Sphinx of black quartz, judge my vow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110228/4e40a69b/attachment-0001.html>

More information about the texhax mailing list