[OS X TeX] box in forms

Herb Schulz herbs at wideopenwest.com
Sat Jan 15 17:38:34 EST 2005


Howdy,

Try this:

\documentclass{article}

\newcommand{\boxit}[1]{{\setlength{\fboxsep}{10pt}\framebox{#1}}}
\newcommand{\pboxit}[1]{{\setlength{\fboxsep}{10pt}\framebox{\phantom{#1}}}}


\begin{document}

Test \boxit{5} text! \framebox{didn't effect normal frames} text \pboxit{5}
or \boxit{abcdefg} and then \pboxit{abcdefg} and change the case
\boxit{AbcdefG} and, finally, \pboxit{AbcdefG}! In math mode:
\(\pboxit{5}^{2}-\boxit{2}^{3}=\boxit{17}\) or
\[
\boxit{?}^{2}-\boxit{2}^{3}=\boxit{17}
\]

\end{document}

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

--------------------- 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 MacOSX-TeX mailing list