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

\makeatletter
\def\mybox(#1,#2){%
\setlength{\unitlength}{1pt}%
\begin{picture}(\strip at pt\linewidth,#1)%
\put(0,0){\framebox(\strip at pt\linewidth,#1)[tl]{#2}}%
\end{picture}
}
\makeatother

\begin{document}
\mybox(72,Zn)
\end{document}



> >\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 
Massachusetts
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 
<http://www.amazon.com/exec/obidos/tg/detail/-/0691009430/qid=1057311870/sr=1-1/ref=sr_1_1/002-8882889-4632849?v=glance&s=books>Amazon.com.
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