[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
Thanks a lot, Aditya.

On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan  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
___
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
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread 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
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
It works nicely. You are a lifesaver. Thanks a lot.

On Mon, Jan 15, 2024 at 7:30 PM 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.
>
> /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
___
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
___


[NTG-context] Re: Linebreak in formual

2024-01-15 Thread 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
___