🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #998

Re: Double subscripts and \mathaccent's in TeX

#998
From: Kenneth A. Ribet
Date: Tue, 10 Oct 1989 17:34
46 lines
2346 bytes
In article <1989Oct9.214708.8873@agate.berkeley.edu> I wrote:

>Consider the expressions ${A_B}_C$ and ${\tilde A}_B$.  They pose
>no problems for TeX.  However, TeX refuses to process the expression
>    ${{\tilde A}_B}_C$,
>claiming that there is a ``double subscript.''  The only workaround
>for this that I know is to embed the $\tilde A$ in a \hbox.
>
>Presumably, this behavior is explained by the rules in Appendix G
>of the TeXbook; even so, I find it a bit illogical.

The solution to my difficulty was provided by Joe Weening
(weening@Gang-of-Four.Stanford.EDU):


>On p. 291 of the TeXbook, when describing the semantics of braces in
>math mode, it says "If the resulting math list is a single Acc atom,
>however (i.e., an accented quantity), that atom is appended."  This is
>probably done to make things like {\tilde A}_B come out right; he
>wants to make B a subscript of the Acc atom, not of an Ord atom that
>would otherwise result from the braces.  But it leads to the anomaly
>in your case, that

>	A_B_C		  fails because of a double subscript
>	{A_B}_C		  doesn't fail because {A_B} becomes an atom
>	{{\tilde A}_B}_C  fails because {\tilde A} is an Acc atom,
>			  and {{\tilde A}_B} is also an Acc atom, so
>			  the braces have no net effect

>But you can fix it by putting in a {} in various places:

>	{{}{\tilde A}_B}_C
>	{{{}\tilde A}_B}_C
>	{{\tilde A{}}_B}_C
>	{{\tilde A}{}_B}_C
>	{{\tilde A}_B{}}_C
>	{{\tilde A}_B}{}_C

I don't like the last alternative, because it makes the subscript $C$
at the same level on the page as the subscript $B$, but the first five
solutions seem fine.  Thanks, Joe.


-ken ribet, UC Berkeley Math Department

...ucbvax!math!ribet        ribet@math.berkeley.edu
Technical Details
Message-ID: <1989Oct10.173452.1864@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!usc!apple!agate!maalox!ribet
References: <1989Oct9.214708.8873@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!usc!apple!agate!maalox!ribet
From: ribet@maalox.berkeley.edu (Kenneth A. Ribet)
Newsgroups: comp.text
Subject: Re: Double subscripts and \mathaccent's in TeX
Message-ID: <1989Oct10.173452.1864@agate.berkeley.edu>
Date: 10 Oct 89 17:34:52 GMT
References: <1989Oct9.214708.8873@agate.berkeley.edu>
Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44)
Reply-To: ribet@maalox.UUCP (Kenneth A. Ribet)
Distribution: usa
Organization: Math Dept., UC Berkeley
Lines: 46