ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Building fomula
@ 2023-03-25 17:08 Willi Egger via ntg-context
  2023-03-25 17:28 ` Alexandre Christe via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger via ntg-context @ 2023-03-25 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

Good afternoon everybody,

I should place two faily simple formulae next to each other, they should be coupled by ‘or’. What I have now is, that the formulae indeed are next to each other and separated by ‘or’, but the result of the second formula is moved und this formula to the next line.
In the setup of  book there would be enough place, if I coud decrease the space left and right of the ‘or’.

How can I achieve this?

Cheers 

Willi

\starttext
  \startformulas
    \startformula[align=right]
      {\frac{47 \times 62}{44 \times 56}} \times {12}
    \stopformula
    \startformula[align=right,width=0.2\textwidth]
      or
    \stopformula
    \startformula[align=right]
      {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
    \stopformula
  
  \stopformulas
  \blank[small]
  rounded 14 kilo.
\stoptext


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

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

* Re: Building fomula
  2023-03-25 17:08 Building fomula Willi Egger via ntg-context
@ 2023-03-25 17:28 ` Alexandre Christe via ntg-context
  2023-03-25 20:34   ` Willi Egger via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Christe via ntg-context @ 2023-03-25 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alexandre Christe


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

Hi Willi,

A dead simple solution would be

\starttext
\startformula
    {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad
{{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo}
\stopformula

\stoptext


Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context <
ntg-context@ntg.nl> a écrit :

> Good afternoon everybody,
>
> I should place two faily simple formulae next to each other, they should
> be coupled by ‘or’. What I have now is, that the formulae indeed are next
> to each other and separated by ‘or’, but the result of the second formula
> is moved und this formula to the next line.
> In the setup of  book there would be enough place, if I coud decrease the
> space left and right of the ‘or’.
>
> How can I achieve this?
>
> Cheers
>
> Willi
>
> \starttext
>   \startformulas
>     \startformula[align=right]
>       {\frac{47 \times 62}{44 \times 56}} \times {12}
>     \stopformula
>     \startformula[align=right,width=0.2\textwidth]
>       or
>     \stopformula
>     \startformula[align=right]
>       {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
>     \stopformula
>
>   \stopformulas
>   \blank[small]
>   rounded 14 kilo.
> \stoptext
>
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

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

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

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

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

* Re: Building fomula
  2023-03-25 17:28 ` Alexandre Christe via ntg-context
@ 2023-03-25 20:34   ` Willi Egger via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger via ntg-context @ 2023-03-25 20:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

Hello Alexandre, thank you so much, this is precisely what I was looking for!


Cheers
 
Willi
> On 25 Mar 2023, at 18:28, Alexandre Christe via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Hi Willi,
> 
> A dead simple solution would be
> 
> \starttext
> \startformula
>     {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad {{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo}
> \stopformula
> 
> \stoptext
> 
> 
> Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context <ntg-context@ntg.nl> a écrit :
> Good afternoon everybody,
> 
> I should place two faily simple formulae next to each other, they should be coupled by ‘or’. What I have now is, that the formulae indeed are next to each other and separated by ‘or’, but the result of the second formula is moved und this formula to the next line.
> In the setup of  book there would be enough place, if I coud decrease the space left and right of the ‘or’.
> 
> How can I achieve this?
> 
> Cheers 
> 
> Willi
> 
> \starttext
>   \startformulas
>     \startformula[align=right]
>       {\frac{47 \times 62}{44 \times 56}} \times {12}
>     \stopformula
>     \startformula[align=right,width=0.2\textwidth]
>       or
>     \stopformula
>     \startformula[align=right]
>       {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
>     \stopformula
> 
>   \stopformulas
>   \blank[small]
>   rounded 14 kilo.
> \stoptext
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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

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

end of thread, other threads:[~2023-03-25 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-25 17:08 Building fomula Willi Egger via ntg-context
2023-03-25 17:28 ` Alexandre Christe via ntg-context
2023-03-25 20:34   ` Willi Egger via ntg-context

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).