When I use
\newcommand{\F1}{$\mathrm{F}_1$}
I get the Missing \begin{document}. error and missing $ inserted if I move it inside the document.
How do I define a macro so that \F1 would expand to $\mathrm{F}_1$?
I can do
\DeclareMathOperator{\F1}{F_1}
but then I have to use it as $\F1$ instead of just \F1.
\newcommand\F[1]{$\mathrm{F}_#1$}. That will define a small macro\Fthat looks at the next 'token' at puts it as the subscript. (Keep in mind that one-letter macros are generally bad to make) – Sean Allred Feb 20 '14 at 18:13\H0,\H1, ... looks pretty close to\F1, doesn't it? – Heiko Oberdiek Feb 20 '14 at 18:14