Amsmath problem

Liste des GroupesRevenir à ct tex 
Sujet : Amsmath problem
De : dieterhansbritz (at) *nospam* gmail.com (db)
Groupes : comp.text.tex
Date : 23. Jun 2024, 15:49:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v59cld$crhi$1@dont-email.me>
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
I wrote this mini-example:

\documentclass[12pt,fleqn,A4,danish]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[text={14cm,20cm},centering]{geometry}
\begin{document}
\title{Amsmath problem}
\author{}
\date{}
\maketitle
Bla bla $\mathrm{AuCl_4^−}$ and $\mathrm{TOA^+}$

\end{document}

and get this result:

...
! Missing { inserted.
<to be read again>
                   \begingroup
l.10 bla bla $\mathrm{AuCl_4^−}
                                 $ and $\mathrm{TOA^+}$
?

On a suggestion of a friend I tried  ${\mathrm{AuCl_4^−}}$

with the same result. I also tried his suggestion
to use mhchem, i.e.

\ce{[AuCl4]^-}

and this didn't work either (yes, I did add
\usepackage{mhchem} )

This is supposed to work, and does on my
friend's machine. Could this be a defective
texlive, or am I really doing something
wrong?

--
db

Date Sujet#  Auteur
23 Jun 24 * Amsmath problem4db
23 Jun 24 +- Re: Amsmath problem1Marckus
23 Jun 24 +- Re: Amsmath problem1Denis Bitouzé
25 Jun 24 `- Re: Amsmath problem1Mauro Orlandini

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal