[OS X TeX] Unexpected quotation marks

Robert Spence spence at saar.de
Sun Jun 10 15:45:32 CEST 2007


On 10 Jun 2007, at 14:48 , Michael Kubovy wrote:
> However here the math face is still different from the text  
> (regardless if I use the two commented lines or the three  
> uncommented):
>
> %%!TEX TS-program = XeLaTeX-xdvipdfmx
> %%!TEX encoding = UTF-8 Unicode
>
> \documentclass[twocolumn,11pt]{article}
> %\usepackage[LY1]{fontenc} # from BV
> %\usepackage{mathpazo} # from BV
> \usepackage[T1]{fontenc} # from BV
> \usepackage{textcomp} # from BV
> \usepackage{mathpazo} # from BV
>
> \usepackage[cm-default]{fontspec}
> \defaultfontfeatures{Mapping=tex-text}
> \setmainfont{Palatino}
>
> \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}

You still need to modify fontspec.sty as Bruno suggested.  I got your  
example to typeset with numerals from Palatino in math mode (safely  
and, I hope, legally) by doing the following:

1) locate fontspec.sty (check the .log file of the latest XeLaTeX run  
to see which one is being used if you have more than one fontspec.sty  
on your system)
2) copy it to the current working directory
3) rename it to fontspecmodified.sty
4) change the corresponding line of the preamble from
\usepackage[cm-default]{fontspec}
to
\usepackage[cm-default]{fontspecmodified}
5) open fontspecmodified.sty and comment out the lines Bruno  
mentioned; in the version of fontspec.sty I have, that's lines 1104  
to 1134 inclusive:

%    \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

It should work.

One question: Why would the desire to use xelatexmk be a problem?  It  
should be possible to adapt it to your needs, I think.

hth
-- Rob Spence

------------------------- 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