[pstricks] weird margins with a0poster

maja zaloznik maja.zaloznik at gmail.com
Thu Sep 9 21:10:27 CEST 2010


Thanks for that Herbert!

Not only did I miss the inserted spaces, I also didn't think to \noindent
the pspicture. It is now more symmetrical and more aligned.

And I now I have realised that the remaining offset is due to the thickness
of the line... Which of course makes sense now that I get it :)

 \documentclass[]{article}

\usepackage{pstricks}

\usepackage{calc}

\begin{document}

\noindent\begin{pspicture}[showgrid=true](0,0)(\textwidth,4)

\psframe[linecolor=red](0,0)(\textwidth,4)

\rput[bl](0,0){%

\psframebox[framesep=0pt, linewidth=5pt]{%

\parbox{\textwidth-10pt}{%

text%

}}}%

\rput[bl](0,1){%

\psframebox[framesep=0pt, linewidth=5pt]{%

\parbox{\textwidth}{%

text%

}}}%

\rput[bl](0,2){%

\psframebox[framesep=0pt]{%

\parbox{\textwidth-1.5pt}{%

text%

}}}%

\rput[bl](0,3){%

\psframebox[framesep=0pt]{%

\parbox{\textwidth}{%

text%

}}}%

\end{pspicture}

\end{document}

Sorry for the spam!

Maja.





2010/9/9 Herbert Voss <Herbert.Voss at fu-berlin.de>

> Am 08.09.2010 21:15, schrieb maja zaloznik:
> > Hi!
> >
> > First of all, when I say weird, I simply mean "I don't understand" (as
> one
> > does colloquially).
> >
> > Here's my example:
> >
> >  \documentclass[portrait, a0b]{a0poster}
> >
> > \usepackage{pstricks}
> >
> >
> >  \begin{document}
> >
> > \psframebox{
> >
> > \begin{minipage}[c][10cm][c]{\textwidth}
> >
> > text
> >
> > \end{minipage}
> >
> > }
> >
> >
> >  \psframebox[framesep=0cm]{
> >
> > \begin{minipage}[c][10cm][c]{\textwidth}
> >
> > text
> >
> > \end{minipage}
> >
> > }
> >
> >
> >  \begin{pspicture}(0,0)(\textwidth,10cm)
> >
> > \psframe[linecolor=red](0,0)(\textwidth, 10cm )
> >
> > \end{pspicture}
> >
> >
> >  \end{document}
> >
> > Its a poster, so ideally one would want both margins to be equal? Which
> they
> > are not, but further more I'm not sure why a psframebox with 0 framesep
> is
> > still wider than a pspicture if they are both \textwidth.
>
> it is not a pstricks problem. You have to pay attention for
> inserted spaces from LaTeX:
>
> \documentclass[portrait, a0b]{a0poster}
> \usepackage{pstricks,calc}
>
> \begin{document}
>
> \psframebox{%  <=== !!!!
> \begin{minipage}[c][10cm][c]{\textwidth-2\pslinewidth}
>
> text
>
> \end{minipage}%  <=== !!!!
> }
>
> \psframebox[framesep=0cm]{%  <=== !!!!
> \begin{minipage}[c][10cm][c]{\textwidth-2\pslinewidth}
>
> text
>
> \end{minipage}%  <=== !!!!
> }
>
> \begin{pspicture}(0,0)(\textwidth,10cm)
>
> \psframe[linecolor=red](0,0)(\textwidth, 10cm )
>
> \end{pspicture}
>
> \end{document}
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100909/9fcfd920/attachment.html>


More information about the PSTricks mailing list