I have the following problem. In my document, I defined a new command to save a few chars
\renewcommand{\r}{r_\mathrm{max}}
Additionally, since it is Swedish, it makes use of the special char å, which is actually given by \aa in LaTeX
.
However, my newly defined command somehow seems to destroy the command \aa. I get the message that a missing $ was inserted and than the \aa somehow seems to get replaced by the r_max.
I assume the problem is that \r is already that circle above, and that's why it gets messed up. Unfortunately, my thesis is already done (except for the Swedish abstract), and I used \r quite often, so I would prefer to not change it everywhere. Is there a solution for my problem?
Here is a complete non-working example:
\documentclass[11pt]{amsart}
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % ... or a4paper or a5paper or ...
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\renewcommand{\r}{r_\mathrm{max}}
\usepackage[latin1]{inputenc}
\usepackage[swedish,english]{babel}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle
asdasds $\r$ \aa
\end{document}

\show\aashows that\aais defined as\r awhich is causing the problem. I'm not sure how you can maintain your use of\rhowever. – Scott H. Jun 26 '13 at 18:59\aawas the same as\r a. Is there some similar transiteration for\l? If so, I'd like to know what it is. – Steven B. Segletes Jun 26 '13 at 19:00r_{max}and get the same result as if you had typedr_\mathrm{max}(that could be helpful if you also need to typeset other variable names with roman subscripts). – Jake Jun 26 '13 at 19:13\r), I suggest not using such shorthands:\rmaxwould be a better choice from a semantic point of view (and is not much more difficult to type). – egreg Jun 26 '13 at 19:22\rinto the\rmaxofegregfor example. – Jun 26 '13 at 19:46\renewcommand,\ref,\rightetc. – Scott H. Jun 26 '13 at 19:53\rnot immediately followed by a letter which would signal a control sequence... – Jun 26 '13 at 19:56