Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #36: dynamic software linking table corrupted


comp / comp.text.tex / Amsmath problem

SubjectAuthor
* Amsmath problemdb
+- Re: Amsmath problemMarckus
+- Re: Amsmath problemDenis Bitouzé
`- Re: Amsmath problemMauro Orlandini

1
Subject: Amsmath problem
From: db
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Sun, 23 Jun 2024 14:49 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.text.tex
Subject: Amsmath problem
Date: Sun, 23 Jun 2024 14:49:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <v59cld$crhi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jun 2024 16:49:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0e9439e6ef4bb4d98b621c64b593641a";
logging-data="421426"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o3q08wTy6JR6qqxo2rwCh3gC2I4zcTc0="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:84XBM+1mwaJQN3ZPx7mNqXALk4c=
View all headers

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

Subject: Re: Amsmath problem
From: Marckus
Newsgroups: comp.text.tex
Date: Sun, 23 Jun 2024 16:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news@marckus-kraft.de (Marckus)
Newsgroups: comp.text.tex
Subject: Re: Amsmath problem
Date: Sun, 23 Jun 2024 18:29:40 +0200
Lines: 56
Message-ID: <ldr0rlF71g4U1@mid.individual.net>
References: <v59cld$crhi$1@dont-email.me>
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: <v59cld$crhi$1@dont-email.me>
View all headers

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

Subject: Re: Amsmath problem
From: Denis Bitouzé
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Sun, 23 Jun 2024 18:55 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbitouze@wanadoo.fr (Denis Bitouzé)
Newsgroups: comp.text.tex
Subject: Re: Amsmath problem
Date: Sun, 23 Jun 2024 20:55:23 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <87le2vmquc.fsf@example.com>
References: <v59cld$crhi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jun 2024 20:55:23 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="08961a11caf4fed1d71cd7dd50d9e701";
logging-data="501573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lttpKpRnGNVTwZogDGtdRw9AOdPjHZBw="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:zqcUxMAWdRjBMuSLaFj1e3rOp8k=
sha1:surPPtqH2zhynQnGeA+LWbfP5U0=
X-Url: https://mt2e.univ-littoral.fr/Members/denis-bitouze/pub/latex
X-Archive: encrypt
View all headers

Le 23/06/24 à 14h49, db a écrit :

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

The following, relying on `chemformula`, works nicely with an up to
date TeX Live 2024:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{chemformula}
\begin{document}
Bla bla \ch{AuCl4^−} and \ch{TOA^+}.
\end{document}
--8<---------------cut here---------------end--------------->8---
--
Denis

Subject: Re: Amsmath problem
From: Mauro Orlandini
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Tue, 25 Jun 2024 06:41 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: orlandini@tesre.bo.cnr.it (Mauro Orlandini)
Newsgroups: comp.text.tex
Subject: Re: Amsmath problem
Date: Tue, 25 Jun 2024 06:41:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v5dor2$1eg1r$1@dont-email.me>
References: <v59cld$crhi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jun 2024 08:41:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="58792e43c90f5fe3704b9eda8dd1b500";
logging-data="1523771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OR91lUETUgZ2wiAwzJ/Mv"
User-Agent: Pan/0.154 (Izium; 517acf44)
Cancel-Lock: sha1:EE5mubS89LlDngbup3wBKkfnV8A=
View all headers

Il Sun, 23 Jun 2024 14:49:17 -0000 (UTC), db ha scritto:

> \maketitle Bla bla $\mathrm{AuCl_4^−}$ and $\mathrm{TOA^+}$

The problems comes from the minus sign on the first chemical formula. You
did not use the keyboard minus sign but the slash symbol.

Your minus sign: −
Keyboard minus sign: -

If you substitute it, then it will work.

Ciao, Mauro

1

rocksolid light 0.9.8
clearnet tor