[pstricks] minipage[t] and pspicture

Hendrik Maryns hamaryns at googlemail.com
Sat Nov 26 17:45:22 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good day,

Thanks Herbert,

Op -10-01-37 20:59, Herbert Voss schreef:
> Am 24.11.2011 20:21, schrieb Hendrik Maryns:
> 
>> 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]
> 
> this has nothing to do with PSTricks, it will be the same problem
> with an ordinary \fbox. The pspicture environment is a box and for
> TeX like a single character. If you want to align both at the top
> create a virtual line for both with \vspace{0pt}:

Can you explain this?  Seems like I still do not understand TeX?s
boxing mechanism well enough.  I indeed suspected that pstricks wasn?t
the culprit.  What does the \vspace do that makes it change behavior?

TIA, H.

> \documentclass{scrartcl}
> 
> \usepackage{pstricks,calc}
> 
> \begin{document}
> 
> \noindent \begin{minipage}[t]{\linewidth-4.1cm}\vspace{0pt} Je wil
> de hoogte van een flatgebouw weten.  Het enige wat je hebt is een
> stok \end{minipage} \begin{minipage}[t]{4cm}\vspace{0pt} 
> \begin{pspicture}(0,0)(4,5) \psframe(0,0)(4,5) \end{pspicture} 
> \end{minipage} \end{document}
> 
> Herbert
> 


- -- 
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/

iEYEARECAAYFAk7RF6IACgkQBGFP0CTku6MfjACghqQFMcddkLK55QBYx4eOeh4R
wwkAn2qLvEBHxsVPp3hZWkCO09q/17dD
=qGNz
-----END PGP SIGNATURE-----


More information about the PSTricks mailing list