[texhax] \newcommand

Herbert Gintis hgintis at comcast.net
Thu Sep 25 19:56:27 CEST 2003

None of the suggestions worked for me. I don't know what is the matter with 
the code. BUT this does work:

\begin{picture}(\strip at pt\linewidth,#1)%
\put(0,0){\framebox(\strip at pt\linewidth,#1)[tl]{#2}}%


> >\newcommand{\mybox}[2]{%
> >  \setlength{\unitlength}{1pt}
> >  \makeatletter
> >  \begin{picture}(\strip at pt\linewidth,#1)
> >    \put(0,0){\framebox(\strip at pt\linewidth,#1)[tl]{#2}}
> >  \end{picture}
> >  \makeatother}
>If the entire thing is enclosed in \makeatletter...\makeatother (or
>equivalently put in a style file), then the \makeatletter...\makeatother
>inside the command (lines 3 and 7 above) is not necessary, correct?
>     Phil Parker
>URL http://www.math.twsu.edu/Faculty/Parker/
>Random quote:
>   Don't be humble; you're not that great.---Golda Meir
>TeX FAQ: http://faq.tug.org/
>TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
>Mailing list archives: http://tug.org/pipermail/texhax/
>More links: http://tug.org/begin.html
>Automated subscription management: http://tug.org/mailman/listinfo/texhax
>Human mailing list managers: postmaster at tug.org

Herbert Gintis
Emeritus Professor of Economics, University of 
External Faculty, Santa Fe Institute, Santa Fe, NM
15 Forbes Avenue, Northampton, MA 01060
413-586-7756  (Home Office) 206-984-9873 (Fax)
Recent papers are posted on my <http://www-unix.oit.umass.edu/~gintis>web site.
Get Game Theory Evolving (Princeton, 2000) at 
New Email Address is hgintis at comcast.net
There is no sorrow so great that does not find
its background in joy.
                                                 Niels Bohr (1938)


More information about the texhax mailing list