ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Linebreak in formual
@ 2024-01-15 13:38 Shiv Shankar Dayal
  2024-01-15 13:56 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 5+ messages in thread
From: Shiv Shankar Dayal @ 2024-01-15 13:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 217 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 442 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Linebreak in formual
  2024-01-15 13:38 [NTG-context] Linebreak in formual Shiv Shankar Dayal
@ 2024-01-15 13:56 ` Mikael Sundqvist
  2024-01-15 14:02   ` Shiv Shankar Dayal
  2024-01-15 15:08   ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Mikael Sundqvist @ 2024-01-15 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
<shivshankar.dayal@gmail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Linebreak in formual
  2024-01-15 13:56 ` [NTG-context] " Mikael Sundqvist
@ 2024-01-15 14:02   ` Shiv Shankar Dayal
  2024-01-15 15:08   ` Aditya Mahajan
  1 sibling, 0 replies; 5+ messages in thread
From: Shiv Shankar Dayal @ 2024-01-15 14:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1837 bytes --]

It works nicely. You are a lifesaver. Thanks a lot.

On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist <mickep@gmail.com> 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.
>
> /Mikael
>
> On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal
> <shivshankar.dayal@gmail.com> 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

[-- Attachment #1.2: Type: text/html, Size: 3364 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Linebreak in formual
  2024-01-15 13:56 ` [NTG-context] " Mikael Sundqvist
  2024-01-15 14:02   ` Shiv Shankar Dayal
@ 2024-01-15 15:08   ` Aditya Mahajan
  2024-01-15 15:38     ` Shiv Shankar Dayal
  1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2024-01-15 15:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Linebreak in formual
  2024-01-15 15:08   ` Aditya Mahajan
@ 2024-01-15 15:38     ` Shiv Shankar Dayal
  0 siblings, 0 replies; 5+ messages in thread
From: Shiv Shankar Dayal @ 2024-01-15 15:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1185 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2149 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-15 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 13:38 [NTG-context] Linebreak in formual Shiv Shankar Dayal
2024-01-15 13:56 ` [NTG-context] " Mikael Sundqvist
2024-01-15 14:02   ` Shiv Shankar Dayal
2024-01-15 15:08   ` Aditya Mahajan
2024-01-15 15:38     ` Shiv Shankar Dayal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).