[XeTeX] pstricks in xelatex

Ulrike Fischer news2 at nililand.de
Fri Jun 20 16:47:52 CEST 2008


Am Fri, 20 Jun 2008 15:08:17 +0100 schrieb Jonathan Kew:

> On 20 Jun 2008, at 2:24 pm, Ulrike Fischer wrote:
> 
>> Am Fri, 20 Jun 2008 13:31:12 +0100 schrieb Jonathan Kew:
>>
>>> On 20 Jun 2008, at 1:11 pm, HAF MED wrote:
>>>
>>>> I am using the laste update of MikTeX 2.7 (xdvipdfmx 0.7 svn 726)
>>>>
>>>> and pstricks don't work winth xelatex.
>>>>
>>>> Help me Please
>>>
>>> No-one can help unless you show us clearly exactly what is happening.
>>>
>>> Create a minimal test file and check that it works with LaTeX+dvips.
>>>
>>> Then run it with "xelatex -no-pdf" to create a .xdv file.
>>>
>>> Then process this with "xdvipdfmx -vv".
>>>
>>> Show us all the resulting messages, and then maybe someone can advise
>>> you.
>>
>> It's probably the same problem I reported some days ago: the lost
>> backslashes in the pathes. I still get them, the patch doesn't seem to
>> be included yet in the miktex distribution. The current xdvipdfmx
>> version is xdvipdfmx-0.7 svn 726.
> 
> Maybe so. But svn rev.720 was a patch intended to address this issue.  
> If it doesn't help, we need to re-examine it. I don't have the  
> facilities to build xetex on Windows here, so I cannot easily debug  
> it directly. Fully-detailed error reports from the latest version  
> would be the most helpful thing.

No problem. Here it goes:

Example:

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(0,0)(2,2)
\psline(0,0)(1,1)
\end{pspicture}
\end{document}

The pdf contains the page number but no picture.

The xetex-pstricks.con begins with

%% BEGIN: pstricks.con (for xdvipdfmx driver)
%%
%% Configuration file
for PSTricks 97
%%
%% Version 97 patch 2 (1997/04/28)
%%
%% For use with
xdvipdfmx


Screen output of xelatex --output-driver="xdvipdfmx -vv" test-xetex:

This is XeTeX, Version 3.1415926-2.2-0.999.1 (MiKTeX 2.7)
entering extended mode
(test-xetex.tex
LaTeX2e <2005/12/01>
Babel <v3.8j> and hyphenation patterns for ngerman, english, dumylang,
nohyphen
ation, german, french, loaded.
(C:\Programme\MiKTeX2.7\tex\latex\base\article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(C:\Programme\MiKTeX2.7\tex\latex\base\size10.clo))
(C:\Programme\MiKTeX2.7\tex\latex\pstricks\pstricks.sty
(C:\Programme\MiKTeX2.7\tex\generic\pstricks\pstricks.tex
`PSTricks' v1.23  <2008/05/23> (tvz)
(C:\UFlocaltexmf\tex\xelatex\xetex-pstricks\pstricks.con
(C:\UFlocaltexmf\tex\generic\pstricks\xetex-pstricks.con))
(C:\UFlocaltexmf\tex\xelatex\xetex-pstricks\pstricks.con
(C:\UFlocaltexmf\tex\generic\pstricks\xetex-pstricks.con)))
(C:\Programme\MiKTeX2.7\tex\latex\xcolor\xcolor.sty
(C:\Programme\MiKTeX2.7\tex\latex\00miktex\color.cfg)
(C:\Programme\MiKTeX2.7\tex\xelatex\xetex-def\xetex.def)))
(test-xetex.aux)
[1] (test-xetex.aux) )<FONTMAP:dvipdfm.map><FONTMAP:cid-x.map>No dvi
filename sp
ecified, reading standard input.
DVI Comment:  XeTeX output 2008.06.20:1634
stdin -> test-xetex.pdf
[1Error: /undefinedfilename in --run--
Operand stack:
   (C:DOKUME~1UlleLOKALE~1Tempmik123.tmp)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--
--nostringval--   fa
lse   1   %stopped_push   1889   1   3   %oparray_pop   1888   1   3
%oparray_
pop   1872   1   3   %oparray_pop   1755   1   3   %oparray_pop
--nostringval-
-   %errorexec_pop   .runexec2   --nostringval--   --nostringval--
--nostringv
al--   2   %stopped_push   --nostringval--   1889   1   3   %oparray_pop
--nos
tringval--
Dictionary stack:
   --dict:1155/1684(ro)(G)--   --dict:0/20(G)--   --dict:76/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 338
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1

** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH
-sPAPER
SIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3
-dAutoFilterGrayImages=false
-dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false
-dColorImageFilter=
/FlateEncode -dUseFlateCompression=true
-sOutputFile="C:/DOKUME~1/Ulle/LOKALE~1/
Temp/mik125.tmp" "C:/DOKUME~1/Ulle/LOKALE~1/Temp/mik124.tmp" -c quit<--
failed.
** WARNING ** Image format conversion for PSTricks failed.
** WARNING ** Interpreting special command pst: (ps:) failed.
** WARNING ** >> at page="1" position="(148.712, 660.325)" (in PDF)
** WARNING ** >> xxx "pst:  tx at Dict begin STP newpath 0.8 SLW 0  setgray
/Arrow
A { m"
<cmr10 at 9.96pt(TFM:cmr10[C:/Programme/MiKTeX2.7/fonts/tfm/public/cm/cmr10.tfm])
fontmap: cmr10 -> cmr10

pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at
font_id=<cmr10,0>.
>](cmr10[CMR10][built-in][Type1][2 glyphs][315 bytes])
Compression saved -5 bytes. Try "-V 5" for better compression
1642 bytes written

** WARNING ** 5 memory objects still allocated


Output written on test-xetex.pdf (1 page).
Transcript written on test-xetex.log.
Drücken Sie eine beliebige Taste . . .




-- 
Ulrike Fischer 



More information about the XeTeX mailing list