Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Marckus Newsgroups: comp.text.tex Subject: Re: Amsmath problem Date: Sun, 23 Jun 2024 18:29:40 +0200 Lines: 56 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net C4NquGIptwOMzkDA5+xYcg6f8dHxr62qCoDRVboU4rZnrwmro= Cancel-Lock: sha1:a9TRjlzXKoPT9jHkYRXEW7xJ+Ns= sha256:fJBqOHnRhJRg/1zqE93J53El5l4O+QO88F+XHgZXbPU= User-Agent: Mozilla Thunderbird Content-Language: de-DE In-Reply-To: Bytes: 2075 Hi! If I compile your example I get the same error message too. > Bla bla $\mathrm{AuCl_4^−}$ and $\mathrm{TOA^+}$ Whilst disassembling your lines, I get an error code for the -: Unicode character − (U+2212) not set up for use with LaTeX. Does this help you? Cheers Marckus Am 23.06.2024 um 16:49 schrieb db: > 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. > > \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? >