I have following formula \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break the line below Sigma. How can I achieve this because AFAIK it will work in LaTeX? -- Respect, Shiv Shankar Dayal
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.
/Mikael
On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal
I have following formula \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break the line below Sigma. How can I achieve this because AFAIK it will work in LaTeX?
-- Respect, Shiv Shankar Dayal ___________________________________________________________________________________ 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 ___________________________________________________________________________________
It works nicely. You are a lifesaver. Thanks a lot.
On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist
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.
/Mikael
On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal
wrote: I have following formula \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not
break the line below Sigma. How can I achieve this because AFAIK it will work in LaTeX?
-- Respect, Shiv Shankar Dayal
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________ 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
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
Thanks a lot, Aditya.
On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan
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
participants (3)
-
Aditya Mahajan
-
Mikael Sundqvist
-
Shiv Shankar Dayal