[XeTeX] Re: [OS X TeX] Apple-logo

Bruno Voisin bvoisin at mac.com
Mon May 2 14:27:58 CEST 2005


Le 2 mai 05 à 13:47, Thøger Juul Thorsen a écrit :

> Is it possible to write the Apple-logo as a glyph in LaTeX, i.e.  
> does any package contain the glyph?

Given the logo is part of some OS X fonts such as Apple Symbols or  
Monaco, it is possible to use this glyph in LaTeX with XeTeX. Will  
Robertson's fontspec package makes its easy. Otherwise you may just  
do the hard work yourself, as in (to be processed by XeLaTeX):


\documentclass{article}

\DeclareFontFamily{U}{applsym}{}
\DeclareFontShape{U}{applsym}{m}{n}{<-> "Apple\space Symbols"}{}
\DeclareTextFontCommand{\applesymbol}
   {\normalfont\fontencoding{U}\fontfamily{applsym}\selectfont}

\DeclareRobustCommand{\applelogo}        {\applesymbol{\XeTeXglyph1110}}
\DeclareRobustCommand{\applebiglogo}     {\applesymbol{\XeTeXglyph1109}}
\DeclareRobustCommand{\appleemptylogo}   {\applesymbol{\XeTeXglyph1108}}
\DeclareRobustCommand{\applestrippedlogo}{\applesymbol{\XeTeXglyph1107}}

\begin{document}

\begin{center}

\applelogo \quad
\applebiglogo \quad
\appleemptylogo \quad
\applestrippedlogo \quad

\end{center}

\end{document}


Hope this helps,

Bruno Voisin



More information about the XeTeX mailing list