[texhax] Known height text area or complex border
Konstantin Karapetyan
kotya.karapetyan at gmail.com
Wed Jan 11 12:16:20 CET 2006
Hi everybody!
I need to draw a complex border around the document caption on the
title page. I make this border with
{
\centering
\psset{unit=1cm}
\begin{pspicture}(-7.5,5)(7.5,-12)
\showgrid
\psframe[linewidth=1mm](-7.5,0)(7.5,-5)
\psframe[linewidth=0.2mm](-7.54,0.04)(7.54,-5.04)
\psframe[linewidth=0.2mm](-7.38,-0.12)(7.38,-4.88)
CAPTION GOES HERE
\end{pspicture}
}
However putting the caption with \rput{\parbox} makes it not always
centered, depending on how long the caption is. So finetuning is
constantly required. Since I am trying to compose a document template,
this is very inconvenient.
The solution which would satisfy me would be to make a minipage, which
would fit into my fixed-size border, and within this minipage the text
would always be centered with, say, \vfill. However the \minipage
command doesn't permit specification of height, only width. Any
alternative?
A very different approach: is it possible to specify a complex border
for \framebox? In this case I would have a non-fixed size border but
fixed white spacings around the text in the border.
Thanks in advance,
Konstantin.
More information about the texhax
mailing list