[OS X TeX] A Wintel mate to TeXShop
Joseph C. Slater
joseph.slater at wright.edu
Fri Sep 23 12:05:57 EDT 2005
On Sep 23, 2005, at 10:43 AM, Aditya Dushyant Trivedi wrote:
>> From: Alain Schremmer <Schremmer.Alain at verizon.net>
>>
>
> <snip>
> 3) Your preamble contains \usepackage{pdfsync}. This for obvious
> reasons not for Windows. You have two options:
> i) Comment it out when working on windows.
> ii) Create an empty package called pdfsync on windows so that
> LaTeX does not complain and you dont forget uncommenting it when
> copying it over on Mac.
>
<snip>
or the best option, in the preamble:
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi
\ifpdf
\usepackage{pdfsync}
\else
\usepackage{srcltx}
\fi
And you get synchronization in both. It would be nice if the two
systems merged and automated this selection internally.
Joe
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list