Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote: On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this: \definelabel[X][text=] \startTEXpage[offset=1cm] (\X

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote: This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-01-19 Thread Rik Kabel via ntg-context
This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage %% The above example fails to compile when there is no tuc

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-16 Thread musa furber via ntg-context
[arfootnote] [before=\setlatin, alternative=text, ] \setupnote [arfootnote] [headstyle={\switchtobodyfont[amiri]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-15 Thread Hans Hagen via ntg-context
). \setupnote [arfootnote] [   headstyle={\switchtobodyfont[kitab]},   textcommand=\footnotenotenumbercommand,   alternative=text,   ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣

[NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-14 Thread musa furber via ntg-context
]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣)`. Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Rik Kabel via ntg-context
ble glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright]     \startTEXpage[offset=2em]      abc\XX[xx]\par      \ref[number][xx] ·      \convertnumber{r}{1} ·      \convertnumber{R}{\ref[number][xx]}     \stopTEXpage In this case I

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Hans Hagen via ntg-context
ond \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numer

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,bef

[NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
Hello list, The following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definela

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
Has to be \defineheadalternative: \defineheadalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={, Section}] \se

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 15:53 schrieb Jan Pohanka : > >> \definesectionalternative[mysection][renderingsetup=mysection] >> >> \startsetups[mysection] >> \vbox\bgroup >> \headsetupspacing >> \strut\headnumbercontent\par >> \begstrut\headtextcontent\endstrut >> \egroup >> \stopsetups >>

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={}{Section] \setuphead[section][alternative=mys

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 14:36 schrieb Jan Pohanka : > >>> \convertnumber does not work on command parameter. What am I doing wrong? I >>> know that I can use conversion key in setuphead, but I need slightly more >>> complicated command. >> >> Use \setup

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more complicated command. Use \setuphead[section][conversion=I], you can't use \convertnumber because the first argument is the formatted (s

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 14:22 schrieb Jan Pohanka : > Hi, > > just another newbie question > > \setuphead[section] > [command=\MyCommand] > > \define[2]\MyCommand% > {\convertnumber{I}{#1} --- #2} > > \convertnumber does not work on command parameter. What a

[NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
Hi, just another newbie question \setuphead[section] [command=\MyCommand] \define[2]\MyCommand% {\convertnumber{I}{#1} --- #2} \convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more