[OS X TeX] emph and ``" on XeLaTeX

Herbert Schulz herbs at wideopenwest.com
Sun Jan 23 14:29:13 EST 2011


On Jan 23, 2011, at 1:17 PM, Marinos Koutsomichalis wrote:

> I' m on MacOs X using the latest tex working on AquaMacs
> 
> this is a sample
> 
> \documentclass[a4paper,11pt]{article}
> \usepackage{fontspec}
> \setromanfont{Lucida Grande}
> \defaultfontfeatures{Ligatures=TeX}
> %\usepackage{polyglossia}
> %\setdefaultlanguage{moderngreek}
> 
> 
> \title{Δημοσιεύσεις}
> \author{Μαρίνος Κουτσομιχάλης}
> \date{Ιανουάριος 2011}
> 
> 
> \begin{document}
> \maketitle
> 
> \section*{domestic appliances project #1}
> 
> eContact! electronic journal, Canadian Electracoustic Community, 2010.
> 
> The ``domestic appliances'' projects comprises of a \emph{series of installations} dedicated to \ldots
> 
> \end{document}

Howdy,

Try this:

\documentclass[a4paper,11pt]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
%\setromanfont{Lucida Grande}
\setromanfont{Hoefler Text}
%\usepackage{polyglossia}
%\setdefaultlanguage{moderngreek}


\title{Δημοσιεύσεις}
\author{Μαρίνος Κουτσομιχάλης}
\date{Ιανουάριος 2011}


\begin{document}
\maketitle

\section*{domestic appliances project \#1}

eContact! electronic journal, Canadian Electracoustic Community, 2010.

The ``domestic appliances'' projects comprises of a \emph{series of installations} dedicated to \ldots

\end{document}

The changes are:

1)Moved the \defaultfontfeatures command before the \setromanfont command so it's applied to that command. Fixes up the ``...'' problem.

2)Changed the font to one which has an italic version (Font Book shows that Lucida Grande only has Regular and Bold), Hoefler Text. Fixes up the \emph problem

3)Changed the #1 in the \section* command to \#1 since the # has special meaning in TeX so to use it as a character you need to use the command \#. Allows it to compile.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list