[comp.text.tex] problem with \newcommand

frost@sdsu.edu (Richard Frost) (04/10/90)

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

frost@sdsu.edu (Richard Frost) (04/10/90)

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

Ken Yap has pointed out that the newcommand must be completely alphabetic:

	\newcommand{\ts}[2]{#1_{\tiny #2}}

This was very helpful.  Now about those warning messages concerning
\tiny in mathmode (naughty!).  I've tried \scriptscriptstyle as described
in Lamport's book, but it doesn't seem to be defined in article.sty, book.sty,
report.sty, and especially ucthesis.sty.

Anybody have a def for a small font size (6 or 7pt) that will work in
math mode?

thanks!
-- 

* **   * * *** * * * **  * is **** * it ** *  * random ** ? *  *********
Richard Frost	Mathematical Sciences, SDSU CA 92182
Internet:  frost@sdsu.edu