[pstricks] pstricks and dvi output in xelatex

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Aug 2 08:58:54 CEST 2010


Am 31.07.2010 03:31, schrieb George:

>> Am 30.07.2010 um 13:16 schrieb George:
>>
>>> I have some diagrams which do not render correctly in xelatex.
>>
>>
>> You should make public what does not work. Otherwise no improvements.
>>
> 
> Text placed on connection lines is misplaced. For example, try the following
> code both in latex and xelatex, checking the dvi and pdf output respectively,
> and see the difference in the placement of the text:

In the xdvipdfmx.cfg file there is a new definition
of pst at starbox. Put it into a \iffalse ...\fi and it
should work correctly

\iffalse  %% do not redefine \pst at starbox =========
\def\pst at starbox{%
\setbox\pst at hbox\hbox{{%
  \def\current at color{\current@@@@color}%
\dimen@\wd\pst at hbox\advance\dimen at 2\psframesep\wd\pst at hbox\dimen@%
\dimen@\ht\pst at hbox\advance\dimen@\psframesep\ht\pst at hbox\dimen@%
\dimen@\dp\pst at hbox\advance\dimen@\psframesep\dp\pst at hbox\dimen@%
\@ifundefined{LaTeXe}{\special{color push \current at color}%
    \rlap{\vrule width\wd\pst at hbox height\ht\pst at hbox depth\dp\pst at hbox}%
    \special{color pop}}%
  {\color at block{\wd\pst at hbox}{\ht\pst at hbox}{\dp\pst at hbox}}}%
\rlap{\hskip\psframesep\unhbox\pst at hbox}}}
\fi% ======= end ===========

Herbert


> %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> \documentclass [a4paper] {report}
> 
> \usepackage{pstricks}
> \usepackage{pst-node}
> 
> \begin{document}
> \begin{pspicture}(\textwidth, 10)
>        \pnode(0.5,1.1){bottomInstructionLine}
>        \pnode(0.5,8.5){topInstructionLine}
>        \ncline{->}{topInstructionLine}{bottomInstructionLine}
>        \ncput*[nrot=:D]{Instructions}
> \end{pspicture}
> \end{document}
> %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the PSTricks mailing list