Re: two (maybe unrelated) questions

David Carlisle <[email protected]> Mon, 17 Feb 2025 14:49:26 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <CAEW6iOj98GQx_C4O-=MCp+L0wYNnuzB_WVBSWshSpyQgqSnvNQ@mail.gmail.com>
You are presumably using latex since you mention amsmath, note (although it
doesn't affect the output here) that $$ has never been supported syntax in
latex.

You should not ignore error messages

! Extra }, or forgotten $.
l.14 $${A}^{kk_{ed}}}
                     _{{jjj}^{qq}}$$
?

because you have more } than {

If you delete the spurious } in the last equation that one produces the
expected output, the third formula does not produce the output that you
show, the kk is attached to the base and appears above the subscript jj

[image: image.png]
\documentclass{article}

\usepackage{amsmath}

\begin{document}

$${A}^{kk_{ed}}$$

$${A}_{{jjj}^{qq}}$$

$${AA}_{jj}^{kk}$$

$${A}^{kk_{ed}}_{{jjj}^{qq}}$$

\end{document}



On Mon, 17 Feb 2025 at 14:41, Pisipojakene <
[email protected]> wrote:

> Hello,
>
> (A) Please, consider the following four attempts of super- and subindexing:
>
> $${A}^{kk_{ed}}$$
>
> $${A}_{{jjj}^{qq}}$$
>
> $${AA}_{jj}^{kk}$$
>
> $${A}^{kk_{ed}}}_{{jjj}^{qq}}$$
>
> In the first two cases I get exactly the results I expect using
> the amsmath library, but in the third case, the alignment of the the
> superscript index is not aligned to the referred part (that is, AA), as it
> is the case with the subscript index, but appears aligned to the latter.
>
> In the fourth case, no rendering occurs whatsoever.
> I am aware of the package “subsupscripts”, but it does not bring me
> further either.
>
> Can you please help me?
>
> Connected to the above and just a wild guess: does it matter what font I
> use when writing math snippets? What would be the most versatile font for
> the MacTeX 2024 version?
>
> Thank you so much,
> Pisipojakene
>
>
>
2025-02-17 PreciseScreenshot 015.png (image/png, 26.2 KB) - not displayed
image.png (image/png, 15.5 KB) - not displayed