Thanks a lot, Aditya.

On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan <adityam@umich.edu> wrote:
On Mon, 15 Jan 2024, Mikael Sundqvist wrote:

> Hi,
>
> you can try something like
>
> \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1}
>
> but it will not be too pretty with such a large sub-index to the sum.

There is also

\sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack}

which imitates the \substack command from latex.

OT but it is better to use one of \mod, \pmod, \bmod, rather than explicit \mtext{mod }.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________


--
Respect,
Shiv Shankar Dayal