ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Problem with: 0.222 222 222_3
@ 2025-03-25 13:50 Ursula Hermann
  2025-03-25 16:45 ` [NTG-context] " Wolfgang Schuster
  2025-03-25 17:03 ` Pablo Rodriguez via ntg-context
  0 siblings, 2 replies; 6+ messages in thread
From: Ursula Hermann @ 2025-03-25 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,
Me again,
I have a question to this formula. I want to use 0.222 222 222_3, but I get 0.222222222_3. And another question too: how can I say, that I want not so much place between formula lines?

\setuppapersize[A4]
\setupbodyfont[thermes, 8pt]
\starttext
\startformula
x_1 = 0.222 222 222_3
\stopformula
\stoptext

I want to have
\startformula
x_1= 0.222 222 222
x_1=0.222 222 222
\stopformula ,

but not
\startformula
a=b

a=b
\stopformula

Many thanks for your help and tips.

Uschi

[-- Attachment #1.2: Type: text/html, Size: 4325 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] 6+ messages in thread

* [NTG-context] Re: Problem with: 0.222 222 222_3
  2025-03-25 13:50 [NTG-context] Problem with: 0.222 222 222_3 Ursula Hermann
@ 2025-03-25 16:45 ` Wolfgang Schuster
  2025-03-25 17:03   ` Pablo Rodriguez via ntg-context
  2025-03-25 17:03 ` Pablo Rodriguez via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2025-03-25 16:45 UTC (permalink / raw)
  To: ntg-context

Am 25.03.2025 um 14:50 schrieb Ursula Hermann:
> Dear List,
> 
> Me again,
> 
> I have a question to this formula. I want to use 0.222 222 222_3, but I 
> get 0.222222222_3. And another question too: how can I say, that I want 
> not so much place between formula lines?
> 
> \setuppapersize[A4]
> \setupbodyfont[thermes, 8pt]
> \starttext
> \startformula
> x_1 = 0.222 222 222_3
> \stopformula
> 
> \stoptext
> 
> I want to have
> 
> \startformula
> x_1= 0.222 222 222
> x_1=0.222 222 222
> \stopformula ,
> 
> but not
> 
> \startformula
> a=b
> 
> a=b
> \stopformula
> 
> Many thanks for your help and tips.

1. Math mode has its own rules regarding spaces.

2. Use \digits to format the number.

3. Use \startalign or \startmathalignment to align multiple lines in a 
formula.

%%%% begin example
\setdigitmode{4}

\starttext

\startformula
\startmathalignment[align={1:right,2:left}]
\NC x_1 \EQ \digits{0.222,222,222}_3 \NR
\NC x_1 \EQ \digits{0.222,222,222}_3 \NR
\stopmathalignment
\stopformula

\stoptext
%%%% end example

For more information about math look into the mathincontext manual.

Wolfgang

___________________________________________________________________________________
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] 6+ messages in thread

* [NTG-context] Re: Problem with: 0.222 222 222_3
  2025-03-25 16:45 ` [NTG-context] " Wolfgang Schuster
@ 2025-03-25 17:03   ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2025-03-25 17:03 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 3/25/25 17:45, Wolfgang Schuster wrote:
> [...]
> 1. Math mode has its own rules regarding spaces.

Hi Wolfgang,

I thought "spaceinbetween" was a valid spacing option (at least, it
seems to work here).

Pablo
___________________________________________________________________________________
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] 6+ messages in thread

* [NTG-context] Re: Problem with: 0.222 222 222_3
  2025-03-25 13:50 [NTG-context] Problem with: 0.222 222 222_3 Ursula Hermann
  2025-03-25 16:45 ` [NTG-context] " Wolfgang Schuster
@ 2025-03-25 17:03 ` Pablo Rodriguez via ntg-context
  2025-03-25 21:31   ` Max Chernoff via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2025-03-25 17:03 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 3/25/25 14:50, Ursula Hermann wrote:
> I have a question to this formula. I want to use 0.222 222 222_3, but I
> get 0.222222222_3. And another question too: how can I say, that I want
> not so much place between formula lines?

Hi Ursula,

two comments on your code (once Wolfgang solved all issues):

> \setuppapersize[A4]

Portrait A4 is the default in ConTeXt (unless I have been missing
something for decades).

> \setupbodyfont[thermes, 8pt]

The font for Times is termes or times (using TeX Gyre Termes).

I hope it helps,

Pablo
___________________________________________________________________________________
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] 6+ messages in thread

* [NTG-context] Re: Problem with: 0.222 222 222_3
  2025-03-25 17:03 ` Pablo Rodriguez via ntg-context
@ 2025-03-25 21:31   ` Max Chernoff via ntg-context
  2025-03-26 15:40     ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Max Chernoff via ntg-context @ 2025-03-25 21:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez, Max Chernoff

Hi Pablo,

On Tue, 2025-03-25 at 18:03 +0100, Pablo Rodriguez via ntg-context
wrote:
> On 3/25/25 14:50, Ursula Hermann wrote:
> > \setuppapersize[A4]
>
> Portrait A4 is the default in ConTeXt (unless I have been missing
> something for decades).

If you're using the ConTeXt from TeX Live, the default paper size
depends on the system-wide paper size, which you can set with "tlmgr
paper [a4|letter]". See the files tex/context/texlive/cont-sys.mk{iv,xl}
for the implementation.

Thanks,
-- Max
___________________________________________________________________________________
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] 6+ messages in thread

* [NTG-context] Re: Problem with: 0.222 222 222_3
  2025-03-25 21:31   ` Max Chernoff via ntg-context
@ 2025-03-26 15:40     ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2025-03-26 15:40 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 3/25/25 22:31, Max Chernoff via ntg-context wrote:
> Hi Pablo,

Many thanks for your correction, Max.

I think it was over five years ago the last time I installed TeX Live
installed on my computer.

Before that, I quickly realized (wisely advised by this mailing-list
participants) that it was way better to use the pure ConTeXt
distribution than ConTeXt from TeX Live.

> On Tue, 2025-03-25 at 18:03 +0100, Pablo Rodriguez wrote:
>> On 3/25/25 14:50, Ursula Hermann wrote:
>>> \setuppapersize[A4]
>>
>> Portrait A4 is the default in ConTeXt (unless I have been missing
>> something for decades).
>
> If you're using the ConTeXt from TeX Live, the default paper size
> depends on the system-wide paper size, which you can set with "tlmgr
> paper [a4|letter]".

Ursula, I apologize for my wrong indication.

Pablo
___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2025-03-26 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 13:50 [NTG-context] Problem with: 0.222 222 222_3 Ursula Hermann
2025-03-25 16:45 ` [NTG-context] " Wolfgang Schuster
2025-03-25 17:03   ` Pablo Rodriguez via ntg-context
2025-03-25 17:03 ` Pablo Rodriguez via ntg-context
2025-03-25 21:31   ` Max Chernoff via ntg-context
2025-03-26 15:40     ` Pablo Rodriguez 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).