Re: [NTG-context] Math Formula Alignment

2023-02-18 Thread Mikael Sundqvist via ntg-context
Hi,

On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context
 wrote:
>
> Hi Hans, hi all,
>
> the alignment of formulas seems broken:
>
> \setuppapersize[A5]
> \starttext
> \setuplayout[textwidth=8cm]
> \setupformulas[align=left]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=middle]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=right]
> \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=left]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=middle]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \setupformulas[align=right]
> \placeformula \startformula c^2 = a^2 + b^2 \stopformula
> \stoptext
>
> All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX
>
> Greetings Lutz

Indeed, but align=flushleft and align=flushright seems to work.

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

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


[NTG-context] Math Formula Alignment

2023-02-18 Thread Lutz Haseloff via ntg-context


 
 
   
   
Hi Hans, hi all,

   
 

   
the alignment of formulas seems broken:

   
 

   
\setuppapersize[A5]
\starttext
\setuplayout[textwidth=8cm]
\setupformulas[align=left]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=left]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=middle]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\setupformulas[align=right]
\placeformula \startformula c^2 = a^2 + b^2 \stopformula
\stoptext

   
 

   
All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX

   
 

   
Greetings Lutz

   
 

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

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


Re: [NTG-context] Math issue

2023-02-18 Thread Willi Egger via ntg-context
Hello Hans and Anditya,

thank you both for your answers. — Reconstructing now the math…

Kind regards

Willi

> On 16 Feb 2023, at 18:12, Aditya Mahajan via ntg-context  
> wrote:
> 
> On 2/16/2023 6:05 PM, Willi Egger via ntg-context wrote:
>> Hi math gurus,
>> I should typeset a couple of simple math formulae. However I do not get the 
>> desired result. I attach my output as pdf.
>> 1. Why is the \times 12 in the denominator although the fraction is grouped? 
>> — I tried also the grouping with bracis, which gives the same result.
>> 2. Why is the result after the equalsign in the denominator?
>> \starttext
>> \startformulas
>>  \startformula
>>\bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
>>  \stopformula
>>  \startformula
>>{{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo
>>  \stopformula
>> \stopformulas
>> \stoptext
>> Thank you for hinting me how to this correctly.
> 
> \frac{...}{...} .. forget about \over
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___