[XeTeX] pstricks with xelatex o Miktex
Akira Kakuto
kakuto at fuk.kindai.ac.jp
Wed Jun 4 03:07:13 CEST 2008
> > Is it possible to use pstricks with xelatex on miktex?
>
> You need to use the -shell-escape option of XeTeX. External
> programmes convert the PostScript code to something that can be used
> by the output driver.
Probably --shell-escape is not necessary for PSTricks in XeTeX.
XeTeX writes \special commands and the driver xdvipdfmx
outputs them with the help of Ghostscript.
The example
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(0,0)(2,2)
\psline(0,0)(1,1)
\end{pspicture}
\end{document}
worked with shell_escape = f as follows:
This is XeTeX, Version 3.1415926-2.2-0.999.0 (Web2C 7.5.6)
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8j> and hyphenation patterns for english, usenglishmax, ukenglish, ba
sque, bulgarian, coptic, welsh, czech, slovak, german, ngerman, danish, esperan
to, spanish, catalan, galician, estonian, farsi, finnish, french, irish, greek,
monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus, bahasa, ice
landic, italian, latin, mongolian, dutch, norsk, polish, portuguese, pinyin, ro
manian, russian, slovenian, samin, uppersorbian, serbian, swedish, turkish, ukr
ainian, dumylang, nohyphenation, loaded.
(c:/usr/local/share/texmf/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(c:/usr/local/share/texmf/tex/latex/base/size10.clo))
(c:/usr/local/share/texmf/tex/latex/pstricks/pstricks.sty
(c:/usr/local/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.15a <2006/12/22> (tvz)
(c:/usr/local/share/texmf/tex/xelatex/xetex-pstricks/pstricks.con
(c:/usr/local/share/texmf/tex/generic/xetex-pstricks/xetex-pstricks.con))
(c:/usr/local/share/texmf/tex/xelatex/xetex-pstricks/pstricks.con
(c:/usr/local/share/texmf/tex/generic/xetex-pstricks/xetex-pstricks.con)))
(c:/usr/local/share/texmf/tex/latex/xcolor/xcolor.sty
(c:/usr/local/share/texmf/tex/xelatex/graphics/color.cfg)
(c:/usr/local/share/texmf/tex/xelatex/graphics/xetex.def))) (./test.aux)
[1] (./test.aux) )
Output written on test.pdf (1 page).
Transcript written on test.log.
The Ghostscript option -dSAFER forbids to run
an absolute path file. Therefore the option cannot be used
for the Ghostscript command line in dvipdfmx.cfg.
Best regards,
Akira
More information about the XeTeX
mailing list