[OS X TeX] Textmate and XeLaTeX weirdness

Musa Furber musaf_spamtrap at runbox.com
Sat Jan 20 22:05:32 CET 2007


On 20 Jan 2007, at 18:31, Nathan Paxton wrote:

> 	Hi all,
>
> 	I sort of recall this being discussed, but I can't find it in the  
> archives.
>
> 	I have a document (preamble below) that I want to compile in  
> PDFLaTeX.  In TeXShop, this occurs quite nicely.  In TextMate,  
> however, it compiles in XeLaTeXk.  Any ideas what could be behind  
> this?
>
> -N
> Here's the preamble:
> %!TEX TS-program = pdflatex
>
> \documentclass[letterpaper,english,11pt]{article}
> \usepackage{pdfsync}
>
>
> \usepackage{fontenc}
> \usepackage[latin1]{inputenc}
> \usepackage{palatino, eulervm}
> \usepackage{babel}
>
> %\usepackage{fontspec,xunicode}
[...]

This snippet from the Textmate bundle explains why:

"""
# Set up TeX compiler, fallback to xelatex if document indicates it,
if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
	then DEF_TEX=xelatex
"""

You can get around this simply placing the xetex stuff in .sty file.

Maybe someone can convince them to adopt the TeXshop way with the  
header lines.

Regards,
Musa

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