[pstricks] PSTricks Digest, Vol 142, Issue 8

Germain Boyer germain.boyer at ac-toulouse.fr
Wed Nov 26 19:45:09 CET 2014


Hello

OK miktex portable and (texlive 2014 + gs 9.10) give the same exit.

The problem is with xelatex and landscape.

With the first document, the exit is correct but with the second the grid  
and the xaxe stop at x=14.5.

%---------------------------------------------------------------------------------------------------------------------------------------------
document 01
%---------------------------------------------------------------------------------------------------------------------------------------------
\documentclass[a4paper,french,10pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

%\usepackage{xltxtra}

\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

\usepackage{pdflscape}

\usepackage{graphics}

\usepackage{pstricks-add}

\renewcommand*{\pshlabel}[1]{$#1$}
\renewcommand*{\psvlabel}[1]{\vspace*{-0.5mm} $#1$}

\usepackage{geometry}

\geometry{xetex}
\geometry{nohead,nofoot,left=1cm,right=1cm,top=1cm,bottom=1cm}

\usepackage{fourier}
\usepackage[scaled=0.875]{helvet}
\renewcommand{\ttdefault}{lmtt}

\usepackage[french]{babel}

%---------------------------------------------------------------------------------------------------------------------------------------------

\begin{document}

\psset{unit=1cm , linewidth=0.25mm , tickwidth=1pt , ticksize=-1mm 1mm,  
labelsep=1mm , arrowinset=0}
\begin{pspicture}(-5,-3)(20,7)
\psset{gridcolor=gray , gridwidth=0.15mm , gridlabels=0pt , subgriddiv=1}
\psgrid(-5,-3)(20,7)
\psaxes[linewidth=1pt]{->}(0,0)(-5,-3)(20,7)
\uput[225](0,0){O}
\end{pspicture}

\newpage

\begin{landscape}
\psset{unit=1cm , linewidth=0.25mm , tickwidth=1pt , ticksize=-1mm 1mm,  
labelsep=1mm , arrowinset=0}
\begin{pspicture}(-5,-3)(20,7)
\psset{gridcolor=gray , gridwidth=0.15mm , gridlabels=0pt , subgriddiv=1}
\psgrid(-5,-3)(20,7)
\psaxes[linewidth=1pt]{->}(0,0)(-5,-3)(20,7)
\uput[225](0,0){O}
\end{pspicture}
\end{landscape}

\newpage

\rotatebox{-90}{%
\psset{unit=1cm , linewidth=0.25mm , tickwidth=1pt , ticksize=-1mm 1mm,  
labelsep=1mm , arrowinset=0}
\begin{pspicture}(-5,-3)(20,7)
\psset{gridcolor=gray , gridwidth=0.15mm , gridlabels=0pt , subgriddiv=1}
\psgrid(-5,-3)(20,7)
\psaxes[linewidth=1pt]{->}(0,0)(-5,-3)(20,7)
\uput[225](0,0){O}
\end{pspicture}
}

\end{document}



%---------------------------------------------------------------------------------------------------------------------------------------------
document 02
%---------------------------------------------------------------------------------------------------------------------------------------------
\documentclass[a4paper,french,10pt,landscape]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

%\usepackage{xltxtra}

\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

\usepackage{pdflscape}

\usepackage{graphics}

\usepackage{pstricks-add}

\renewcommand*{\pshlabel}[1]{$#1$}
\renewcommand*{\psvlabel}[1]{\vspace*{-0.5mm} $#1$}

\usepackage{geometry}

\geometry{xetex}
\geometry{nohead,nofoot,left=1cm,right=1cm,top=1cm,bottom=1cm}

\usepackage{fourier}
\usepackage[scaled=0.875]{helvet}
\renewcommand{\ttdefault}{lmtt}

\usepackage[french]{babel}

%---------------------------------------------------------------------------------------------------------------------------------------------

\begin{document}

\psset{unit=1cm , linewidth=0.25mm , tickwidth=1pt , ticksize=-1mm 1mm,  
labelsep=1mm , arrowinset=0}
\begin{pspicture}(-5,-3)(20,7)
\psset{gridcolor=gray , gridwidth=0.15mm , gridlabels=0pt , subgriddiv=1}
\psgrid(-5,-3)(20,7)
\psaxes[linewidth=1pt]{->}(0,0)(-5,-3)(20,7)
\uput[225](0,0){O}
\end{pspicture}

\newpage

\begin{landscape}
\rotatebox{-90}{%
\psset{unit=1cm , linewidth=0.25mm , tickwidth=1pt , ticksize=-1mm 1mm,  
labelsep=1mm , arrowinset=0}
\begin{pspicture}(-5,-3)(20,7)
\psset{gridcolor=gray , gridwidth=0.15mm , gridlabels=0pt , subgriddiv=1}
\psgrid(-5,-3)(20,7)
\psaxes[linewidth=1pt]{->}(0,0)(-5,-3)(20,7)
\uput[225](0,0){O}
\end{pspicture}
}
\end{landscape}

\end{document}

%---------------------------------------------------------------------------------------------------------------------------------------------

thanks for the answers.

best regards.

Germain


More information about the PSTricks mailing list