[pstricks] minipage[t] and pspicture

Hubert Lam hubert at lamfamily.info
Thu Nov 24 22:55:30 CET 2011


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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps.pdf
Type: application/pdf
Size: 6328 bytes
Desc: ps.pdf
URL: <http://tug.org/pipermail/pstricks/attachments/20111124/a401769c/attachment.pdf>


More information about the PSTricks mailing list