[OS X TeX] Unexpected quotation marks
Bruno Voisin
bvoisin at mac.com
Sat Jun 9 19:53:27 EDT 2007
Le 9 juin 07 à 23:27, Michael Kubovy a écrit :
> That would be nice (these are closer than the numeral of Georgia
> and the math numerals, but still noticeably different):
(1) Go to ~/Library/TeXShop/Engines/Inactive/XeTeX/, and move XeTeX-
xdvipdfmx.engine and XeLaTeX-xdvipdfmx.engine to ~/Library/TeXShop/
Engines/.
(2) Change the first line of your document to:
%%!TEX TS-program = XeLaTeX-xdvipdfmx
(3) Add the lines:
\usepackage[LY1]{fontenc}
\usepackage{mathpazo}
or:
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathpazo}
before loading fontspec.
The point of using the alternative XDVI-to-PDF converter xdvipdfmx
instead of XeTeX's default XDVI-to-PDF converter xdv2pdf is that the
former understands virtual fonts, while the latter doesn't. The
former will work with mathpazo, the latter won't.
Using the mathpazo package guarantees virtual fonts built on Palatino
+ Symbol are used for maths. The Computer Modern fonts still seem to
be used for numbers in maths. I think this is caused by some lines at
the end of fontspec.sty, which makes Computer Modern be used (called
legacymaths) for some math elements (like numbers) unless the Lucida
fonts are loaded:
\ifzf at math@lucida\else
\DeclareMathSymbol{0}{\mathalpha}{legacymaths}{`0}
\DeclareMathSymbol{1}{\mathalpha}{legacymaths}{`1}
\DeclareMathSymbol{2}{\mathalpha}{legacymaths}{`2}
\DeclareMathSymbol{3}{\mathalpha}{legacymaths}{`3}
\DeclareMathSymbol{4}{\mathalpha}{legacymaths}{`4}
\DeclareMathSymbol{5}{\mathalpha}{legacymaths}{`5}
\DeclareMathSymbol{6}{\mathalpha}{legacymaths}{`6}
\DeclareMathSymbol{7}{\mathalpha}{legacymaths}{`7}
\DeclareMathSymbol{8}{\mathalpha}{legacymaths}{`8}
\DeclareMathSymbol{9}{\mathalpha}{legacymaths}{`9}
\DeclareMathSymbol{\Gamma}{\mathalpha}{legacymaths}{0}
\DeclareMathSymbol{\Delta}{\mathalpha}{legacymaths}{1}
\DeclareMathSymbol{\Theta}{\mathalpha}{legacymaths}{2}
\DeclareMathSymbol{\Lambda}{\mathalpha}{legacymaths}{3}
\DeclareMathSymbol{\Xi}{\mathalpha}{legacymaths}{4}
\DeclareMathSymbol{\Pi}{\mathalpha}{legacymaths}{5}
\DeclareMathSymbol{\Sigma}{\mathalpha}{legacymaths}{6}
\DeclareMathSymbol{\Upsilon}{\mathalpha}{legacymaths}{7}
\DeclareMathSymbol{\Phi}{\mathalpha}{legacymaths}{8}
\DeclareMathSymbol{\Psi}{\mathalpha}{legacymaths}{9}
\DeclareMathSymbol{\Omega}{\mathalpha}{legacymaths}{10}
\DeclareMathSymbol{+}{\mathbin}{legacymaths}{43}
\DeclareMathSymbol{=}{\mathrel}{legacymaths}{61}
\DeclareMathDelimiter{(}{\mathopen} {legacymaths}{40}
{largesymbols}{0}
\DeclareMathDelimiter{)}{\mathclose}{legacymaths}{41}
{largesymbols}{1}
\DeclareMathDelimiter{[}{\mathopen} {legacymaths}{91}
{largesymbols}{2}
\DeclareMathDelimiter{]}{\mathclose}{legacymaths}{93}
{largesymbols}{3}
\DeclareMathDelimiter{/}{\mathord}{legacymaths}{47}
{largesymbols}{14}
\DeclareMathSymbol{\mathdollar}{\mathord}{legacymaths}{36}
\fi
What you need is a switch to disactivate these lines, but I don't
have the time to look into this right now. I'm cc'ing the fontspec
author, Will Robertson.
Below is your modified example.
Bruno Voisin
%%!TEX TS-program = XeLaTeX-xdvipdfmx
> %%!TEX encoding = UTF-8 Unicode
>
> \documentclass[twocolumn,11pt]{article}
\usepackage[LY1]{fontenc}
\usepackage{mathpazo}
> \usepackage[cm-default]{fontspec}
> \defaultfontfeatures{Mapping=tex-text}
> \setmainfont{Palatino}
> \usepackage{graphicx}
> \usepackage[hang,small,sc]{caption}
> \usepackage{amssymb}
> \usepackage{amsmath}
> \usepackage{fancyhdr}
> \usepackage{xspace}
> \usepackage{tabularx}
> \usepackage[left=.5in, right = .5in, top=.6in, bottom = .6in]
> {geometry}
> \usepackage{subfigure}
> \usepackage{sectsty}
> \allsectionsfont{\sffamily\mdseries\upshape}
> \pagestyle{fancy}
> \usepackage[pdftitle={Gestalt
> Detection},colorlinks=true,linkcolor=blue]{hyperref}
> \usepackage{apacite}
>
> \title{Article}
> \author{Author}
> \date{}
>
> \begin{document}
> \maketitle
>
> Text:
>
> \textit{p}(\textbf{a})/\textit{p}(\textbf{b}) = log{1234567890}
>
> Math:
> \[\frac{p(\mathbf{a})}{p(\mathbf{b})} = \log{1234567890}\]
>
> \end{document}
------------------------- 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