[OS X TeX] Quoting in XeLaTeX
Herbert Schulz
herbs at wideopenwest.com
Wed Apr 11 12:18:33 EDT 2007
On Apr 11, 2007, at 11:01 AM, Luis Sequeira wrote:
> How should one produce proper quotation marks in XeLaTeX?
> Apparently, the regular LaTeX way, i.e.
>
> ``something in quotes''
>
> (opening with two backquotes and close with two forward quotes)
> works if no specific font is indicated, but as soon as one selects
> a font the above
> just places the same back- and forward quote characters, yielding
> an ugly output...
>
> A minimal example:
>
> %%%%%%%
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
>
> \documentclass{book}
>
>
> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}
>
> \defaultfontfeatures{Mapping=tex-text}
>
> \font\txt="Verdana" at 10pt
>
>
> \begin{document}
> \txt
> ``something in quotes''
> \end{document}
> %%%%%%%%
>
>
> Luis Sequeira
>
Howdy,
Use \setmainfont rather than \font\txt and, later \txt and it all
works properly.
**************************
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{book}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Verdana}
\begin{document}
``something in quotes''
\end{document}
**************************
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
------------------------- 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 MacOSX-TeX
mailing list