Article View: comp.text.tex
Article #1517problem with \newcommand
From: Richard Frost
Date: Tue, 10 Apr 1990 00:20
Date: Tue, 10 Apr 1990 00:20
25 lines
1340 bytes
1340 bytes
hi!
I'm having a hard time declaring my own command (re: LaTeX page 55)
to generate a certain sequence of text. What I'd like to have
is a macro that works in math mode (math, displaymath, equation, eqnarray ...)
and generates an "r" with a tiny subscript. Why ?? Because
$r_{1}^{2}$
is ugly! The 1 and the 2 are the same size and in the same horizontal
position. Now I've tried the following, but perhaps someone has a
better approach:
\newcommand{\r1}{r_{\tiny 1}}
The problem with my idea is that it doesn't work. First thing I found is
that LaTeX blows up if I put it in the preamble. Next shock was that
if I put it after \begin{document}, LaTeX output a "1" where the command
was located but otherwise ignored the declaration.
What's going on here?
thanks...
--
* ** * * *** * * * ** * is **** * it ** * * random ** ? * *********
Richard Frost Mathematical Sciences, SDSU CA 92182
Internet: frost@sdsu.edu
Technical Details
Message-ID:
<1990Apr10.002043.877@sdsu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdsu!frostShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdsu!frost From: frost@sdsu.edu (Richard Frost) Newsgroups: comp.text.tex Subject: problem with \newcommand Message-ID: <1990Apr10.002043.877@sdsu.edu> Date: 10 Apr 90 00:20:43 GMT Reply-To: frost@sdsu.UUCP (Richard Frost) Distribution: usa Organization: San Diego State University Math/Sciences Dept. Lines: 25