[OS X TeX] Linotype Palatino

Axel E. Retif axretif at igo.com.mx
Thu Jun 7 08:33:30 CEST 2007


On  6 Jun, 2007, at 23:15, Axel E. Retif wrote:

> On  6 Jun, 2007, at 22:57, Michael Kubovy wrote:
>
>> On Jun 6, 2007, at 10:37 PM, Robert Spence wrote:
>>
>>> Dear Michael,
>>>
>>> On 07 Jun 2007, at 01:32 , Michael Kubovy wrote:
>>>
>>>> I've never even tried XeLaTeX. I would appreciate a guide for  
>>>> the perplexed.
>>>
>>> [...]
>>>
>>> why not just try the following as the basis of your preamble:
>>>
>>> \documentclass{article}
>>> \usepackage{xunicode,fontspec}
>>> \defaultfontfeatures{Mapping=tex-text}
>>> \setmainfont{Palatino}
>>>
>>> [...]
>>
>> That works. Thanks. Now suppose I need to have headers, footers,  
>> and section headings in sans serif?
>
>
> I don't know how well they will work with fontspec, but packages  
> fancyhdr and titlesec come to mind.

It's so ridiculously simple that I can't resist... For the book  
class, for example, that has left and right marks:

\documentclass[12pt]{book}
\usepackage[cm-default]{fontspec}
\usepackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Palatino}
\setsansfont{Arial}
\usepackage{fancyhdr}
\pagestyle{fancy} \fancyhf{}
\fancyhead[RO,LE]{\sffamily\thepage}
\fancyhead[LO]{\sffamily\rightmark}
\fancyhead[RE]{\sffamily\leftmark}
\fancypagestyle{plain}{%
\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\sffamily\thepage}}
\usepackage[sf]{titlesec}

Best,

Axel

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list