Re: [NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Hans Hagen via ntg-context
On 2/16/2023 10:16 AM, Denis Maier via ntg-context wrote: Hi, I’m getting unexpected results for \xmlpos With the example below, I was expecting to get the following positions: 1 2 3 4 However the result is: 2 4 6 8, i.e. each time it’s exactly the double. What am I missing? that there

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
On 2/16/2023 8:07 PM, Alex Leray via ntg-context wrote: Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI]

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section

Re: [NTG-context] Math issue

2023-02-16 Thread Aditya Mahajan via ntg-context
On Thu, 16 Feb 2023, 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

Re: [NTG-context] Math issue

2023-02-16 Thread Hans Hagen via ntg-context
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

[NTG-context] Math issue

2023-02-16 Thread Willi Egger via ntg-context
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

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
Hi, I'm getting unexpected results for \xmlpos With the example below, I was expecting to get the following positions: 1 2 3 4 However the result is: 2 4 6 8, i.e. each time it's exactly the double. What am I missing? Background: I need to define column alignment based on the value of the