Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Since it's purely a font issue I did some research on fonts. I found out that \enablemode[lmmath] does the trick (https://www.contextgarden.net/Math_fonts is useful resource). Oh well, everything is fine again and I can keep contexing stuff :) Thank you!

 

-Eric
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Henri Menke
On 16/05/19 7:46 AM, Eric Scmidt wrote:
> Thank for your efforts to help me.  This time I used the exact code snippet 
> you 
> wrote, but the results for inline math is still not what I would like to have 
> since I do see a clear difference in the limits placement. Please see this 
> image 
> where I have tried to make more clear what I really want to achieve and what 
> the 
> code gives me:  https://i.imgur.com/AEfHxBh.png
> It might be a font issue, since examining the context and pdflatex output 
> files,  I see differences in fonts, alghough the actual glyphs look pretty 
> much 
> the same. I don't really know.

Yes, it is a different font.  If you want to use the same font in LaTeX as in
ConTeXt, you have to load the unicode-math package and use LuaLaTeX.

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document}

Cheers, Henri


> -Eric
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Thank for your efforts to help me.  This time I used the exact code snippet you wrote, but the results for inline math is still not what I would like to have since I do see a clear difference in the limits placement. Please see this image where I have tried to make more clear what I really want to achieve and what the code gives me:  https://i.imgur.com/AEfHxBh.png

 

It might be a font issue, since examining the context and pdflatex output files,  I see differences in fonts, alghough the actual glyphs look pretty much the same. I don't really know.

 

-Eric
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-12 Thread Henri Menke
To me the following two MWEs look pretty much the same:

\setupbodyfont[10pt] % same font size as LaTeX
\starttext
$\sum_{k=1}^{n} a_k$
\startformula
\sum\nolimits_{k=1}^{n} a_k
\stopformula
\stoptext


\documentclass{article}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document} 

I tried that with versions of ConTeXt from TeX Live 2016, 2017, 2018, and 2019,
as well as the latest beta, all with the same result.

You refer to ma-cb-en page 19, but which of the two equations, the first or the
second one?  Keep in mind that the first one uses

\sum_{n=1}_^{m}

where you are using

\sum\nolimits_{k=1}^{n}

Cheers, Henri

On 11/05/19 7:42 AM, Eric Scmidt wrote:
> Hello everyone!
> So, I have some inline math in my document,and it's looking too big or 
> "airy"; a 
> bit like when \nolimits is specified in display mode but smaller. The limits 
> are 
> placed next to the symbol when using for example pdflatex, and I prefer this 
> tight way for inline math. Is the "airier" way a (new) Context standard or a 
> bug, and if it is just a standard how can I achieve the tighter style 
> (could't 
> find any pointers anywhere)? At least the latest beta exhibits this behaviour 
> (for what it is worth, Context mark IV an excursion by Ton Otten, the version 
> produced by LuaTeX-1.06.0 , has the style I want on page 19, and no special 
> tricks are discussed). All help is greatly appreciated.
> \starttext
> $\sum_{k=1}^{n} a_k$
> \startformula
> \sum\nolimits_{k=1}^{n} a_k
> \stopformula
> \stoptext
> -Eric
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-11 Thread Eric Scmidt
Hello everyone!

 

So, I have some inline math in my document,and it's looking too big or "airy"; a bit like when \nolimits is specified in display mode but smaller. The limits are placed next to the symbol when using for example pdflatex, and I prefer this tight way for inline math. Is the "airier" way a (new) Context standard or a bug, and if it is just a standard how can I achieve the tighter style (could't find any pointers anywhere)? At least the latest beta exhibits this behaviour (for what it is worth, Context mark IV an excursion by Ton Otten, the version produced by LuaTeX-1.06.0 , has the style I want on page 19, and no special tricks are discussed). All help is greatly appreciated.

 

\starttext

$\sum_{k=1}^{n} a_k$

 

\startformula

\sum\nolimits_{k=1}^{n} a_k

\stopformula

\stoptext

 

-Eric
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___