Re: [NTG-context] thousand separator space

2022-11-23 Thread Jan Willem Flamma via ntg-context

Thank you both.

On 22-11-2022 08:58, Henning Hraban Ramm via ntg-context wrote:

Am 21.11.22 um 23:08 schrieb Max Chernoff via ntg-context:


The TeXbook recommends that you wrap the comma in curly braces

    $x = 1{,}000$
    but there's probably a ConTeXt \setupxxx command that would have 
the same

effect.


Use \digits:
https://wiki.contextgarden.net/Command/digits

Hraban

___ 

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
___


[NTG-context] thousand separator space

2022-11-21 Thread Jan Willem Flamma via ntg-context

Dear list,

Two silly short questions.

Why is there an additional space after the thousand separator in math mode?
And what can I do to get rid of the additional space?

\starttext
1,000

\blank

$1,000$

\stoptext

Kind regards,
Jan Willem Flamma
___
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] Line up itemize list with answer block

2022-08-23 Thread Jan Willem Flamma via ntg-context


Dear list members,

How can I ensure that the itemize list in the answers line up with the 
counter?

Or, put simply: I want '1.1' and 'a) Answer 1' to line up.

Regards,
Jan Willem Flamma

PDF result:
https://live.contextgarden.net/cgi-bin/result.cgi?id=VtEh2Y


MWE:

\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]

\defineenumeration
    [question]
    [text=Question,
 after={\blank[2*big]},
 inbetween={\blank[nowhite]},
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]

\defineenumeration
    [answer]
    [counter=answer,
 text=,
 width=,
 before={\blank[nowhite]},
 after={\blank[nowhite]},
 indenting=no,
 titledistance=1cm,
 location=inmargin,
 alternative=left,
 headstyle=,
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]

\starttext

\startchapter[title={Chapter}]

\beginquestion
\startquestion
\startitemize[a,packed][stopper=,right=)]
\item Question 1
\item Question 2
\stopitemize
\stopquestion
\endquestion
\beginanswer
\startanswer
\startitemize[a,packed][stopper=,right=)]
\item Answer 1
\item Answer 2
\stopitemize

\stopanswer
\endanswer


\startsection[title={Questions}]
\useblocks[question]
\stopsection

\blank[big]

\startsection[title={Answers}]
\useblocks[answer]
\stopsection

\stopchapter

\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
___