[XeTeX] [OS X TeX] Unexpected quotation marks

Michael Kubovy kubovy at virginia.edu
Sun Jun 10 20:52:17 CEST 2007


Hi all,

On Jun 10, 2007, at 1:59 PM, Peter Dyballa wrote:

>
> Am 10.06.2007 um 19:14 schrieb Michael Kubovy:
>
>> \usepackage{graphicx}
>
> Make it
>
> 	\usepackage[dvipdfm]{graphicx}
>
> There is no sense in letting graphicx and tikz work in different
> modes. (Graphicx seems to be able to detect whether XeTeX is
> compiling the source, but it cannot know whether xdv2pdf or xdvipdfm
> will create the PDF file.)

This:
*********************
%%!TEX TS-program = XeLaTeX-xdvipdfmx
%%!TEX encoding = UTF-8 Unicode

\documentclass[twocolumn,11pt]{article}
\usepackage[LY1]{fontenc}
\usepackage{mathpazo}

\usepackage[cm-default]{fontspecmodified}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Palatino}
\usepackage[dvipdfm]{graphicx}
\usepackage{pgf}
\usepackage{tikz}

\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}
*********************
now works correctly (i.e., i. same font for math and text; ii.  
compatible with TikZ). Thanks to all the generous people who helped  
an uneducated soul.

All I need (with the proper contextual allowances made) is to know  
how to modify XeLaTeX-xdvipdfmx so that it will do the xelatexmk trick.
*********************
xelatex.engine:
*********************
#!/bin/bash
export BIBINPUTS=${BIBINPUTS}:`kpsewhich --show-path=bib | sed -e "s/ 
\!\!//g"`
~/Library/TeXShop/bin/latexmk -pdf -r "$HOME/Library/TeXShop/bin/ 
xelatexmkrc" "$1"
*********************
XeLaTeX-xdvipdfmx.engine:
*********************
#!/bin/tcsh

set path= ($path /usr/texbin /usr/local/bin)
xelatex -output-driver="xdvipdfmx -q -E" "$1"
*********************
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/




More information about the XeTeX mailing list