[pstricks] minipage[t] and pspicture

Hubert Lam hubert at lamfamily.info
Thu Nov 24 22:56:33 CET 2011


My question to follow (after answering one!): why does \begin{minipage}[m] work without raising boxes, given TeX wouldn't know that the box is 5 cm????

Thanks

> -----Original Message-----
> From: Hubert Lam
> Sent: Friday, November 25, 2011 8:55 AM
> To: 'Graphics with PSTricks'
> Subject: RE: [pstricks] minipage[t] and pspicture
> 
> I think it has to do with the box which the pspicture is surrounded with. TeX
> itself has no knowledge as to how high that box is (5 cm from your example).
> So by altering it to
> 
> \raisebox{-5cm+\baselineskip}{
>  \begin{pspicture}(0,0)(4,5)
> ...
>  \end{pspicture}
> }
> 
> It has solved the problem.
> 
> 
> 
> > -----Original Message-----
> > From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On
> > Behalf Of Hendrik Maryns
> > Sent: Friday, November 25, 2011 6:22 AM
> > To: Graphics with PSTricks
> > Subject: [pstricks] minipage[t] and pspicture
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Dear all,
> >
> > I don?t understand why the pspicture rags out above the line, even
> > though the minipage has [t].  [c] works as expected (or at least it
> > looks better), but there seems to be no difference between [t] and [b]
> >
> > TIA for your help.
> >
> > \documentclass{scrartcl}
> >
> > \usepackage{pstricks,calc}
> >
> > \begin{document}
> >
> > \noindent
> > \begin{minipage}[t]{\linewidth-4.1cm}
> >   Je wil de hoogte van een flatgebouw weten.  Het enige wat je hebt is
> > een stok \end{minipage} \begin{minipage}[t]{4cm}
> >   \begin{pspicture}(0,0)(4,5)
> >     \psframe(0,0)(4,5)
> >   \end{pspicture}
> > \end{minipage}
> > \end{document}
> >
> > H.
> > - --
> > Hendrik Maryns
> > http://www.tcl-sfs.uni-tuebingen.de/hendrik/
> > ===========
> > signature.asc?!?
> > ? http://en.wikipedia.org/wiki/PGP
> > ? http://mindprod.com/project/mailreadernewsreader.html
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2.0.18 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >
> >
> iEYEARECAAYFAk7OmVIACgkQBGFP0CTku6PNCACfUEIn/s58ZxkAG6Yd5yI+vf
> > dP
> > 6h0AoKJphj3pPz06CqY6hEnydIOdqRUj
> > =mvoY
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > PSTricks mailing list
> > PSTricks at tug.org
> > http://tug.org/mailman/listinfo/pstricks
> > archive: http://www.tug.org/pipermail/pstricks/





More information about the PSTricks mailing list