[OS X TeX] box in forms
Alain Schremmer
Schremmer.Alain at verizon.net
Fri Jan 14 18:01:16 CET 2005
After playing with the suggestions from Hochhaus, Hegewald and
Gerhardt, whom I all thank, I am using Hochhaus' because it does exactly
what I needed: it works in text as well as in math and lets one specify
the height, necessary with an empty box:
The President of the United States in
\framebox[10mm]{\parbox[l][3mm][t]{7mm}{}}
The President of the United States in
\framebox[10mm]{\parbox[l][3mm][t]{7.5mm}{1998}}
$\frac{\framebox[4mm]{\parbox[l][2mm][c]{1.5mm}{}}^{2}-13}{\framebox[4mm]{\parbox[l][2mm][c]{1.5mm}{}}-2}$
$\frac{\framebox[4mm]{\parbox[l][2mm][c]{1.5mm}{5}}^{2}-13}{\framebox[4mm]{\parbox[l][2mm][c]{1.5mm}{5}}-2}$
There is one thing, though. The last argument before the entry in the
box, 7mm/7.5mm/1.5mm, moves the entry inside the box and is easily
adjustable by trial and errror but I didn't understand "the rule". In
Companion 2ed, page 863, parbox doesn't even have that argument!!!
Grateful regards to all.
--schremmer
Stephan Hochhaus wrote:
>
> Am 12.01.2005 um 06:42 schrieb Alain Schremmer:
>
>> \framebox[\height + 10mm]{}
>>
>> after the example on page 861 of Companion 2ed but I could not figure
>> how to increase the height of the box. It seems \height refers to the
>> height of the text and \height + 10mm is then the width of the box.
>
> A horizontal box is always as high as the line it is used in. You
> could nest some boxes like that:
>
> \framebox[5cm]{\parbox[l][2ex][t]{0mm}{}} %2ex controls the height of
> the box
>
> Good luck :-)
>
> Stephan
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
>
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list