[pstricks] Page Orientation and Origin Location

Jacques L'helgoualc'h lhh+no_spam at free.fr
Wed Jun 22 09:36:11 CEST 2005


Herbert Voss wrote:
> Rich Shepard wrote:
> > [...] In the example immediately above, the
> >PSTricks environment is offset 1cm down and to the left of the box corner.
> 
> no, the box is _always_ on the baseline and it holds only the place.

Hmmm, pspicture  accepts an optional  parameter, which can help  (or add
more confusion). Try

\documentclass[a4paper,12pt]{article}
\usepackage[margin=1cm,showframe]{geometry}
\usepackage{pst-all}
\begin{document}
\psset{unit=1cm}% default value
\noindent
Left
\hrulefill
\fbox{\begin{pspicture}(-1,-1)(1,2)
  \psgrid
\end{pspicture}}%
\hrulefill
\fbox{\begin{pspicture}[](-1,-1)(1,2)
  \psgrid
\end{pspicture}}%
\hrulefill
\fbox{\begin{pspicture}[0](-1,-1)(1,2)
  \psgrid
\end{pspicture}}%
\hrulefill
\fbox{\begin{pspicture}[.42](-1,-1)(1,2)
  \psgrid
\end{pspicture}}%
\hrulefill
\fbox{\begin{pspicture}[1](-1,-1)(1,2)
  \psgrid
\end{pspicture}}%
\hrulefill
right.
\end{document}

-- 
Jacques L'helgoualc'h




More information about the PSTricks mailing list