[XeTeX] xetex and pstricks-add

Peter Dyballa Peter_Dyballa at Web.DE
Mon Aug 18 13:10:19 CEST 2008

Am 17.08.2008 um 18:58 schrieb Ulrike Fischer:

> I get with the simpler example below a ghostscript error when I  
> compile
> it with xetex (and "Text" is not rotated),

You probably mean the text is not set orthogonal to the brace, or on  
the line that goes through the arrow head where the two arms of the  
brace unite ...

> with latex + dvips it
> compiles fine. So I would say the problem is more probably on the
> xetex/xdvipdfmx side (or in the driver files).
> \documentclass{article}
> \usepackage{pstricks-add}
> \begin{document}
> \begin{pspicture}(\linewidth,5)
> \psbrace(0,0.5)(\linewidth,0.5){\fbox{Text}}%
> \end{pspicture}
> \end{document}

This example is handled fine with XeTeX (Version  
3.1415926-2.2-0.999.6 (Web2C 7.5.6) from SVN), but LaTeX (pdfTeX,  
Version 3.141592-1.40.0-rc4 (Web2C 7.5.5) from an early TeX Live 2008  
beta) fails:

	! Undefined control sequence.
	<recently read> \c at lor@to at ps
	l.10     \psbrace
	! Undefined control sequence.
	\XC at usec@lor ...\expandafter \c at lor@to at ps #1#2\@@
	                                                  \else \expandafter  
	l.10     \psbrace
	! Undefined control sequence.
	<recently read> \c at lor@to at ps
	l.10     \psbrace
	! Undefined control sequence.
	\XC at usec@lor ...\expandafter \c at lor@to at ps #1#2\@@
	                                                  \else \expandafter  
	with a few repetitions

Obviously worth a bug report!

In XeTeX there might be also kind of a "generic" problem. The TeX  
Live 2008 beta I could copy has these files:

-rw-r--r-- 1 root 14845 19. Apr 02:34 2008/texmf-dist/tex/generic/ 
-rw-r--r-- 1 root   204 30. Jun 20:46 2008/texmf-dist/tex/xelatex/ 
-rw-r--r-- 1 root   204 30. Jun 20:46 2008/texmf-dist/tex/xetex/xetex- 

while XeTeX updates from SVN have:

-rw-r--r-- 1 pete  5547 29. Jul 18:54 texmf-local/tex/generic/xetex- 
-rw-r--r-- 1 pete   227 29. Jul 18:54 texmf-local/tex/xelatex/xetex- 
-rw-r--r-- 1 pete   227 29. Jul 18:54 texmf-local/tex/xetex/xetex- 

with the difference in the pstricks.con files. The "original" duo has  
(with marks from diff)

	< % wrapper to read the real file, which is placed in the tex/ 
generic tree
	< % but given a xetex-specific name to avoid confusing other programs
	< \input xetex-pstricks.con
	while the new set has:
	> % wrapper to read the real file, which is installed with pstricks
	> % in the tex/generic tree but has a driver-specific name
	> \input xdvipdfmx.con

which is listed as:

-rw-r--r-- 1 root  8610 24. Jun 19:31 2008/texmf-dist/tex/generic/ 

In TeX Live 2007 only this short file exists:

-rw-r--r-- 1 root  1543 13. Jan 2006  2007/texmf-dist/tex/generic/ 

(I would need to modify texmf.cnf in order not to load files from  
release independent texmf-local branch, i.e., I have no "clean"  
release working.)

The documentation of pstricks-add mentions that the version of  
xkeyval might be a problem. A version that supplies pst-xkey is  
needed. This seems to be satisfied in TL2007 (for TL2008 pst-xkey.tex  
is moved from 200x/texmf-dist/tex/latex/xkeyval to 200x/texmf-dist/ 

The sequence in which XeTeX loads files from TL2008 for me is:

texmf-dist/tex/latex/pstricks-add/pstricks-add.sty	2007/09/03 v. 0.11
texmf-dist/tex/generic/pstricks/latex/pstricks.sty	2008/01/24 v0.37
texmf-dist/tex/generic/pstricks/pstricks.tex		2008/06/26 v1.25
texmf-local/tex/xelatex/xetex-pstricks/pstricks.con	?
texmf-local/tex/generic/xetex-pstricks/xetex-pstricks.con	?
	“Using PSTricks configuration for XeTeX+xdvipdfmx“
texmf-dist/tex/latex/xcolor/xcolor.sty			2007/01/21 v2.11
texmf-local/tex/xelatex/graphics/color.cfg		2005/10/12 v1.3b
texmf-local/tex/xelatex/graphics/xetex.def		2006/08/10 v0.92
texmf-dist/tex/generic/pstricks-add/pstricks-add.tex	2008/06/30 v3.07
texmf-dist/tex/generic/pstricks/pst-plot.tex		v1.01, 2008/01/26
texmf-dist/tex/generic/multido/multido.tex		v1.41, 2004/05/18
texmf-dist/tex/generic/pstricks/pst-node.tex		v1.00, 2007/10/16
texmf-dist/tex/generic/pst-3d/pst-3d.tex		2005/09/03 1.00
texmf-dist/tex/generic/xkeyval/pst-xkey.tex		2005/11/25 v1.6
texmf-dist/tex/latex/xkeyval/xkeyval.sty		2006/11/18 v2.5f
texmf-dist/tex/generic/xkeyval/xkeyval.tex		2008/08/13 v2.6a

Mit friedvollen Grüßen


Musik hilft gegen Taliban, nicht Bomben.

More information about the XeTeX mailing list