[OS X TeX] box in forms

Alain Schremmer Schremmer.Alain at verizon.net
Sun Jan 16 01:51:32 CET 2005


I tried it and I am overwhelmed. At the risk of appearing ungrateful, 
though, I think that, at least for the time being, I prefer the other 
solution because it does not depend on \newcommand which I am afraid of 
while the other solution is completely local and context-free.

Still, I am going to have to learn newcommand sooner or later and I a 
putting this in my file of things to study.

Grateful regards
--schremmer

Herb Schulz wrote:

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