[pstricks] problem with xelatex

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Sep 8 15:06:05 CEST 2015


> Look at this picture. I use windows 7 and texlive 2015.

> With the first document compiled with latex + dvi + ps + pdf the exit is
> correct.


Use it this way, There seems to be a problem with the origin of
the coordinate system and xelatex

\documentclass[french,11pt]{book}
\usepackage{fontspec}      % avec xelatex (encodage en utf8 obligatoire)
\usepackage{libertine}
\usepackage{geometry}
\geometry{a4paper,nohead,nofoot,left=1.5cm,right=1.5cm,top=1.5cm,bottom=1.5cm}

\usepackage{pstricks-add}
\usepackage[french]{babel}
\frenchbsetup{StandardLists=true,AutoSpacePunctuation=false,FrenchFootnotes=false}
\DecimalMathComma % ou bien \usepackage{icomma}

\pagestyle{empty}

\begin{document}

\psset{dimen=middle}
\psset{xunit=4cm,yunit=0.25cm,labelFontSize=\scriptstyle,comma}
\begin{pspicture}(0,-2)(2.2,40)
\psset{linewidth=1pt}%
\psaxes[yAxis=false,Ox=48.8,Dx=0.2]{->}(0,0)(2.2,0)
\psset{fillstyle=solid,fillcolor=lightgray}%
\psframe(0.2,0)(0.4,1)\uput{0}[u]{0}(0.3,1){1}
\psframe(0.4,0)(0.6,2)\uput{0}[u](0.5,2){2}
\psframe(0.6,0)(0.8,5)\uput[u](0.7,5){5}
%\psframe(49.6,0)(49.8,5)\uput[u](49.7,5){5}
%\psframe(49.8,0)(50,26)\uput[u](49.9,26){26}
%\psframe(50,0)(50.2,36)\uput[u](50.1,36){36}
%\psframe(50.2,0)(50.4,19)\uput[u](50.3,19){19}
%\psframe(50.4,0)(50.6,6)\uput[u](50.5,6){6}
\uput[u](51,0){$x$}
\end{pspicture}

\end{document}


Herbert



More information about the PSTricks mailing list