[XeTeX] How to make some pdf with xetex from commandline?
Ulrike Fischer
news3 at nililand.de
Sun Nov 29 11:08:34 CET 2009
Am Sat, 28 Nov 2009 15:06:38 +0000 schrieb Kārlis Repsons:
> Maybe its really just simple, but, for example, $ xelatex main.tex outputs
> lots of text including:
>
> "
> ! Package pdftex.def Error: Option `pdftex' requires pdfTeX,
> (pdftex.def) but pdfTeX features are missing.
> (pdftex.def) Loading of this driver file is aborted.
> "
>
> Its on default install, I've updated $PATH to include texlive/2009/bin/x86_64-
> linux (absolute path of course!)... Couldn't figure out any soon... Isn't
> pdftex part of texlive file tree?
pdftex.def is a file loaded by the graphicx package. As you can
guess from the name it is meant for pdftex not xetex.
Your document probably use something like
\usepackage[pdftex]{graphicx}.
Change this to \usepackage{graphicx}.
If you have other packages with driver options in your document,
change them too.
You should be aware that xetex is in some points rather different to
pdftex (e.g. pdftex reads files in 8-bit pieces, while xetex is
unicode orientated). You will have to adapt your documents (e.g.
remove inputenc).
--
Ulrike Fischer
More information about the XeTeX
mailing list