I'm trying to use TikZ's external library with XeTeX, for example, and I'm running into some issues. Having set
external/system call={xelatex \tikzexternalcheckshellescape
-halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}
(EDIT: as an answer points out I had accidentaly used ``...''
instead of "..."
here) while using the default mode=convert with system call
XeTeX just dies with the following error
! Package tikz Error: Sorry, the system call 'xelatex -halt-on-error -interaction=batchmode -jobname ``xetexpics
/externalTest-figure0'' ``\def\tikzexternalrealjob{externalTest}\input{externalTest}''' did NOT result in a usab
le output file 'xetexpics/externalTest-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you
have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18'
or something like that. Or maybe the command simply failed? Error messages can be found in 'xetexpics/externalT
est-figure0.log'. If you continue now, I'll try to typeset the picture.
(EDIT: This was due to only restructed write18 being enabled, see comment)
without producing the log file. Changing to mode=list and make
it produces an incorrect makefile where all tabs have been replaced by ^^I
and without properly escaped backslashes. Fixing these errors and running make seems to indicate success, but the generated images are empty. The only warning or error I can seem to find in the log is
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
Has anyone had any success with using external with XeTeX, and does anyone have any suggestions on how to make it work?
I'm using XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2012/dev/Arch Linux)
, pgf 2008/01/15 v2.10
and tikz 2010/10/13 v2.10
according to the log.
\expanded
is normal and surely has nothing to do with the problem..pdf
s to.ps
and view them ingv
? Perhaps the picture's dimensions are set incorrectly by tikz - and as far as I know, pdf will ALWAYS remove picture parts outside of the bounding box whereas.ps
files will display them. If the bounding box turns out to be wrong, you have found a bug in tikz (probably a bug of the pgf basic layer externalization).convert with system call
. Converting the pdf to a ps withpdf2ps
still produces an empty document.This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2011.7.30)
), but at least the produced figure worked perfectly. Maybe I really need to upgrade to a more recent texlive ;) . Anyway, perhaps the pgf support for xetex is broken on your system. On mine, the figures.log
file contains something likePackage pgfsys Info: Driver file for pgf: pgfsys-xetex.def ... (...systemlayer/pgfsys-xetex.def pgfsys-xetex.def 2010/02/16 (rcs-revision 1.3)