### Re: [NTG-context] mkiv digits/units zero padding not working

of optimization. What I like about this approach however is that one could read the two arguments from a CSV file, which would save a lot of typing (and to manually specify the padding). \def\mpm#1#2{ \doifsomethingelse{#2}{ \startxcell[align=left] \digits{#1} \stopxcell \startxcell

### [NTG-context] mkiv \digits{2.0=} zero padding feature request

Hi, As Wolfgang has figured out, zero padding in \digits only works for trailing (and omitted) zeroes when immediately preceded by the decimal separator. It would be nice if this would work even if there is a number preceding, so that \digits{3.1=}x\crlf \digits{3.==}x\crlf \digits{3.14}x

### Re: [NTG-context] mkiv digits/units zero padding not working

igit separator of >> the first and second number respectively and overall at the ± sign. I’m >> working in an xtable, where I have entries such as >> \startxcell \mpm{14.0==}{_1.5==} \stopxcell >> \startxcell \mpm{_0.034}{_0.013} \stopxcell >> and defined >&

### Re: [NTG-context] mkiv digits/units zero padding not working

at the ± sign. I’m working in an xtable, where I have entries such as \startxcell \mpm{14.0==}{_1.5==} \stopxcell \startxcell \mpm{_0.034}{_0.013} \stopxcell and defined \def\mpm#1#2{ \ifsecondargument \digits{#1}\,±\,\digits{#2}% \else \digits{#1}% \fi

### Re: [NTG-context] mkiv digits/units zero padding not working

such as \startxcell \mpm{14.0==}{_1.5==} \stopxcell \startxcell \mpm{_0.034}{_0.013} \stopxcell and defined \def\mpm#1#2{ \ifsecondargument \digits{#1}\,±\,\digits{#2}% \else \digits{#1}% \fi } Since I was hoping that I could exploit the zeropadding

### Re: [NTG-context] mkiv digits/units zero padding not working

Benjamin Buchmuller schrieb am 07.05.2020 um 17:31: Hi, I’m trying to get \digits{15.0=}±\digits{1.00} \digits{_8.12}±\digits{0.34} horizontally aligned as 15.0 ±1.00 8.12±0.34 But I get 15.0±1.00 8.12±0.34 instead. From the source (phys-dim.mkiv), I can see that “=“ should expand

### [NTG-context] mkiv digits/units zero padding not working

Hi, I’m trying to get \digits{15.0=}±\digits{1.00} \digits{_8.12}±\digits{0.34} horizontally aligned as 15.0 ±1.00 8.12±0.34 But I get 15.0±1.00 8.12±0.34 instead. From the source (phys-dim.mkiv), I can see that “=“ should expand to \hphantom{0}. (I think \zeropoint in the table

### [NTG-context] configure \digits errata

Hi, I made a mistake in my previous mail. I am looking for an alternativ to \setdigitmode \starttext \setdigitmode 3 \digits 1314000 \stoptext with an output points or thinmuskip Sorry for the noise, Damien Thiriet

### [NTG-context] configure \digits

Hi, According to the wiki and 2003 article Pasting Digits together, to get 1314000 typeset as 1\,314\,000, I should do \setdigits 3 \digits{1314000} unfortunatly, the \setdigits command looks obsolete (MkII command? Could not find in my ConTeXt help information server (http://localhost:8088/mtx

### Re: [NTG-context] Feature request: \digits command

On Wed, Jun 25 2008, Flavien Lambert wrote: > did not found a way to cut a number by group of three digits like the > numprint command, e.g. 100 becomes 1 000 000. With the digits > option 3, dots become thinmuskips. I would like to do something > similar but automatically for gro

### Re: [NTG-context] Persian digits in math formulas

Am 17.08.2013 um 09:57 schrieb Mingranina Gingranina mingran...@gmail.com: With the above code the digits are not changed to persian. For your information I have attached the source, log, and PDF files. The following example from Hans worked in my system: \usetypescriptfile[mathdigits

### Re: [NTG-context] Persian digits in math formulas

Wolfgang Schuster, Hello The above code works on my system too, but in text mode the digits are still in English. The DejaVu fonts are shipped with your context installation and you can use them with \setupbodyfont[dejavu], when you write \setupbodyfont[dejavusans] context uses Latin Modern

### [NTG-context] Persian digits in math formulas

Dear All, Hello, I am trying to use Persian digits in math formulas. My document reads: \font\4 = {name:dejavusans} at 10pt \font\5 = {name:dejavusans} at 7pt \font\6 = {name:dejavusans} at 5pt \textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6 \Umathcode`3=14`۳ \definefontfeature

### Re: [NTG-context] Persian digits in math formulas

On 8/15/2013 4:22 PM, Mingranina Gingranina wrote: Dear All, Hello, I am trying to use Persian digits in math formulas. My document reads: \font\4 = {name:dejavusans} at 10pt \font\5 = {name:dejavusans} at 7pt \font\6 = {name:dejavusans} at 5pt \textfont4=\4 \scriptfont4=\5

### Re: [NTG-context] Persian digits in math formulas

On 8/15/13, Hans Hagen pra...@wxs.nl wrote: On 8/15/2013 4:22 PM, Mingranina Gingranina wrote: Dear All, Hello, I am trying to use Persian digits in math formulas. My document reads: \font\4 = {name:dejavusans} at 10pt \font\5 = {name:dejavusans} at 7pt \font\6 = {name:dejavusans

### Re: [NTG-context] Persian digits in math formulas

On 2013–08–15 Mingranina Gingranina wrote: By the way, I couldn't find bidi-001.tex on ConTeXt Site, would you please let me know where can I get it? It's here: http://pragma-ade.com/context/latest/cont-tst.7z Marco

### Re: [NTG-context] Persian digits in math formulas

Am 15.08.2013 um 19:30 schrieb Mingranina Gingranina mingran...@gmail.com: By the way, I couldn't find bidi-001.tex on ConTeXt Site, would you please let me know where can I get it? The file is part of Hans test suite you can find on his homepage: - http://pragma-ade.com/download-1.htm -

### Re: [NTG-context] Persian digits in math formulas

On 8/15/2013 7:30 PM, Mingranina Gingranina wrote: On 8/15/13, Hans Hagen pra...@wxs.nl wrote: On 8/15/2013 4:22 PM, Mingranina Gingranina wrote: A math formula In Persian language is exactly the same as in English language except that the digits should be written in Persian. So what I

### Re: [NTG-context] Persian digits in math formulas

On 8/15/2013 7:30 PM, Mingranina Gingranina wrote: On 8/15/13, Hans Hagen pra...@wxs.nl wrote: On 8/15/2013 4:22 PM, Mingranina Gingranina wrote: A math formula In Persian language is exactly the same as in English language except that the digits should be written in Persian. So what I

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

On 5/21/2013 11:35 PM, Romain Diss wrote: We've already got \setdigitmode, \setdigitorder, and \setdigitspace; it might make sense to create a \setupdigits to consolidate these setups into one interface. Something like this: \setupdigits [mode=4, % --\setdigitmode{4}

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

work it represents but maybe one can consider to merge the digit part of the \digits and \unit code. The \unit command would then use the same code as the \digit one to format the digit part. Then, the \unit code would use a specific code to format the unit part. This would make it possible

### [NTG-context] \digits get \times instead of \cdot before exponent

Hi, is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com/general/manuals/units-mkiv.pdf pages 67? Thanks

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

Le lundi 20 mai 2013, Christian Prim a écrit : is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

On 5/21/2013 11:44 AM, Romain Diss wrote: Le lundi 20 mai 2013, Christian Prim a écrit : is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

, Romain Diss wrote: Le lundi 20 mai 2013, Christian Prim a écrit : is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/**general/magazines/mag-0003.pdfhttp://www.pragma-ade.com/general/magazines/mag-0003.pdfpage 2 (table at the bottom) instead of \times

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

On 5/21/2013 5:15 PM, Christian Prim wrote: Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern.__2\emwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that.

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

Now it's perfect! Will this be included in the next version of context? Christian 2013/5/21 Hans Hagen pra...@wxs.nl On 5/21/2013 5:15 PM, Christian Prim wrote: Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern._**_2\emwidth\cdot\kern.2\**emwidth} should not

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

Hi Hans, Christian Prim wrote: is it possible to change the behaviour of \digits to have \cdot [...] instead of \times [...]? Hans wrote: there are several ways we can deal with this: [...] or maybe a key/value in setuptimes .. not sure yet We've already got \setdigitmode, \setdigitorder

### Re: [NTG-context] \digits get \times instead of \cdot before exponent

We've already got \setdigitmode, \setdigitorder, and \setdigitspace; it might make sense to create a \setupdigits to consolidate these setups into one interface. Something like this: \setupdigits [mode=4, % --\setdigitmode{4} % (decimal period,

### [NTG-context] Reflections the interplay between units and digits

Morning all… I think that there are several issues in the interplay of the \units and \digits command that could be a bit better (Sorry Hans…all meant in the best possible way). digits_trial.pdf Description: Adobe PDF document So here is a complete example and the pdf I get, after some

### Re: [NTG-context] Digits-Module in tabulate does not work

a valid \digits argument but your code isn’t supported. You can now resort to math mode or write your own digits code. Sad, that this isn't supported. I think this is a very popular notation. I'm not that skilled until now to write my own code. Woud be nice, if someone, who also uses this, could give

### [NTG-context] Digits-Module in tabulate does not work

Hi, I'm using the digit-module and enjoy, that I get a nice output using the following: \starttext \digits{30e-3} \stoptext instead of \starttext $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ \stoptext But now I'm wondering why this module does not work in the tabulate-environment

### Re: [NTG-context] Digits-Module in tabulate does not work

Am 09.06.2011 um 22:24 schrieb yoraxe: Hi, I'm using the digit-module and enjoy, that I get a nice output using the following: \starttext \digits{30e-3} \stoptext instead of \starttext $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3}$ \stoptext But now I'm wondering why this module does

### Re: [NTG-context] Digits-Module in tabulate does not work

Am 09.06.2011 22:31, schrieb Wolfgang Schuster: Am 09.06.2011 um 22:24 schrieb yoraxe: Hi, I'm using the digit-module and enjoy, that I get a nice output using the following: \starttext \digits{30e-3} \stoptext instead of \starttext $30 \cdot 10^{-3}$ or $30 ⋅ 10^{-3

### Re: [NTG-context] Digits-Module in tabulate does not work

\NN (30$\pm$3)e-3 there's 'e-3' in the pdf-file again. The \NN somewhere between the digit only creates a big space (new column). Sorry for being so slow on the uptake. The \NN column expects a valid \digits argument but your code isn’t supported. You can now resort to math mode or write

### Re: [NTG-context] Cannot make \digits work with palatino

On Mon, 4 Jan 2010, Hans Hagen wrote: On 3-1-2010 18:38, Alexandre Patry wrote: Hi, when I use the \digits command with default fonts, everything work fine. However, when I set the fonts to palatino, the following documents print 1:234;56 instead of 1.234,56 8

### Re: [NTG-context] Cannot make \digits work with palatino

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/04/2010 06:39 PM, Aditya Mahajan wrote: It works if you change the definition of \dohandledigits to the following \def\dohandledigits {\mathcode`\,=003B \mathcode`\.=003A % were 013B and 013A

### [NTG-context] Cannot make \digits work with palatino

Hi, when I use the \digits command with default fonts, everything work fine. However, when I set the fonts to palatino, the following documents print 1:234;56 instead of 1.234,56 8- \usetypescript[palatino][ec] \definetypeface [palatino] [mm] [math] [euler

### Re: [NTG-context] Metapost label - Truncating digits after decimal point

On Sat, 28 Nov 2009, Curiouslearn wrote: Hi, Is it possible to truncate the digits after decimal point in Metapost when using textext()? Please see the minimal example below which produces 1.84375. Can I just keep the first digit and have it produce 1.8 ? Thanks. If you are using mkiv, you

### Re: [NTG-context] Metapost label - Truncating digits after decimal point

Thanks for this solution. Sounds small and clean. I need to learn Lua I guess. On Tue, Dec 15, 2009 at 5:34 AM, Aditya Mahajan adit...@umich.edu wrote: On Sat, 28 Nov 2009, Curiouslearn wrote: Hi, Is it possible to truncate the digits after decimal point in Metapost when using textext

### Re: [NTG-context] Metapost label - Truncating digits after decimal point

Curiouslearn wrote: Hi, Is it possible to truncate the digits after decimal point in Metapost when using textext()? Please see the minimal example below which produces 1.84375. Can I just keep the first digit and have it produce 1.8 ? Here is a helper macro for you: def trunc_digits(expr n

### Re: [NTG-context] Metapost label - Truncating digits after decimal point

Thanks so much, Taco. I will try out the code below. Good to know that Metapost has functions such as substring. On Sun, Nov 29, 2009 at 3:32 AM, Taco Hoekwater t...@elvenkind.com wrote: Curiouslearn wrote: Hi, Is it possible to truncate the digits after decimal point in Metapost when

### [NTG-context] Metapost label - Truncating digits after decimal point

Hi, Is it possible to truncate the digits after decimal point in Metapost when using textext()? Please see the minimal example below which produces 1.84375. Can I just keep the first digit and have it produce 1.8 ? Thanks. \setuppapersize[letter][letter] \setupcolors[state=start] \starttext

### Re: [NTG-context] Problem with \digits

Flavien Lambert wrote: Dear all, I tried to compile some of my old files with the latest minimals (MKIV) but encountered the error described below. Is there any way to use the digit macro with MKIV ? Regards, i'll send you a patched file

### Re: [NTG-context] Problem with \digits

Dear all, I tried to compile some of my old files with the latest minimals (MKIV) but encountered the error described below. Is there any way to use the digit macro with MKIV ? Regards, 2009/6/16 richard.steph...@converteam.com Hello, I am using mkiv beta (14-Jun-09) and the \digits command

### Re: [NTG-context] Problem with \digits

I am using mkiv beta (14-Jun-09) and the \digits command does not like the decimal point. Any suggestions? a lpeg grammar ? -- luigi I'm sorry, I don't understand. Does anybody else have this problem, or is it just me? Richard Converteam UK Ltd. Registration Number: 5571739

### Re: [NTG-context] Problem with \digits

On Thu, Jun 18, 2009 at 10:06 AM, richard.steph...@converteam.com wrote: I am using mkiv beta (14-Jun-09) and the \digits command does not like the decimal point. Any suggestions? a lpeg grammar ? -- luigi I'm sorry, I don't understand. lpeg is parsing expression gramma , a tool

### Re: [NTG-context] Problem with \digits

On Thu, Jun 18, 2009 at 10:06 AM, richard.steph...@converteam.com wrote: I am using mkiv beta (14-Jun-09) and the \digits command does not like the decimal point. Any suggestions? a lpeg grammar ? -- luigi I'm sorry, I don't understand. lpeg is parsing expression gramma , a tool

### [NTG-context] Problem with \digits

Hello, I am using mkiv beta (14-Jun-09) and the \digits command does not like the decimal point. Any suggestions? Test code and log file follow: Richard Test code \starttext \digits{1.6} \stoptext Log file This is LuaTeX, Version beta-0.40.5-2009061023 (Web2C 2009) \write18

### Re: [NTG-context] Problem with \digits

On Tue, Jun 16, 2009 at 4:46 PM, richard.steph...@converteam.com wrote: Hello, I am using mkiv beta (14-Jun-09) and the \digits command does not like the decimal point. Any suggestions? a lpeg grammar ? -- luigi

### [NTG-context] \digits

On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi, the \digits command cause a error message with the last beta in MkIV. % engine=luatex \starttext \digits{1.000} \stoptext ! \textfont 1 is undefined (character :). \mathematics #1-\relax

### Re: [NTG-context] \digits

Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi, the \digits command cause a error message with the last beta in MkIV. This took much more longer than it should. In supp-num.tex, there is this definition: \def

### Re: [NTG-context] \digits

Taco Hoekwater wrote: Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi, the \digits command cause a error message with the last beta in MkIV. This took much more longer than it should. In supp-num.tex

### Re: [NTG-context] MkIV \digits bug

Am 15.02.2009 um 17:04 schrieb Wolfgang Schuster: Hi, the \digits command cause a error message with the last beta in MkIV. % engine=luatex \starttext \digits{1.000} \stoptext ! \textfont 1 is undefined (character :). \mathematics #1-\relax \ifmmode #1\else $#1

### [NTG-context] MkIV \digits bug

Hi, the \digits command cause a error message with the last beta in MkIV. % engine=luatex \starttext \digits{1.000} \stoptext ! \textfont 1 is undefined (character :). \mathematics #1-\relax \ifmmode #1\else $#1$ \fi \doscandigit

### Re: [NTG-context] Feature request: \digits command

Dear all, I allow me to use this message for a related topic on the digits command. I took a look at the manual on the digits command but did not found a way to cut a number by group of three digits like the numprint command, e.g. 100 becomes 1 000 000. With the digits option 3, dots become

### Re: [NTG-context] Feature request: \digits command

On Thu, Jun 19, 2008 at 10:10 PM, Morgan Brassel [EMAIL PROTECTED] wrote: Hi everyone, The \digits command is really great when it comes to typeset numbers in different languages. However, I miss one functionality from the numprint package in latex: when you type for example $e-5$, you get 10

### Re: [NTG-context] Feature request: \digits command

Thank you, Wolfgang. I have already read the This Way on your link very carefully. In fact, I was looking for a solution to have \digits{e-5} printed as 10^5 \digits{2e-5} printed as 2 . 10^5 Is it possible to do that? to detect if there is a number before the 'e' in \digits? Regards, Morgan

### [NTG-context] Feature request: \digits command

Hi everyone, The \digits command is really great when it comes to typeset numbers in different languages. However, I miss one functionality from the numprint package in latex: when you type for example $e-5$, you get 10^{-5} (with no dot in front of it). Would it be possible to add an option

### [NTG-context] A new feature for \digits: \digits{e-1}

Hi everyone, In LaTeX, the numprint package provides the \numprint command, and is pretty useful when typing numbers. It is quite similar to the \digits ConTeXt command. However, the two commands differ when it comes to this example: \numprint{e-1} \digits e-1 In this case, the \numprint

### Re: [NTG-context] problem with \digits + one more...

Martin Kolaøík wrote: But I have found the next problem: \starttext \setupTABLE[column][1][aligncharacter=yes,alignmentcharacter={,},width=5cm,align=middle] \bTABLE \bTR \bTD 115,3\eTD \eTR \bTR \bTD 11,53\eTD \eTR \bTR \bTD 1153,\eTD \eTR \eTABLE \stoptext seems like

### Re: [NTG-context] problem with \digits

Martin Kolaøík wrote: Hi all, I used \digits and this is the result: = ! Missing $ inserted. inserted text $ to be read again _ \next ...savedigit \collecteddigits @\else \if #1_ \savedigit \collecteddigit

### RE: [NTG-context] problem with \digits + one more...

:24 AM To: [EMAIL PROTECTED]; mailing list for ConTeXt users Subject: Re: [NTG-context] problem with \digits Martin Kolaøík wrote: Hi all, I used \digits and this is the result: = ! Missing $ inserted. inserted text $ to be read again _ \next

### [NTG-context] problem with \digits

Hi all, I used \digits and this is the result: = ! Missing $ inserted. inserted text $ to be read again _ \next ...savedigit \collecteddigits @\else \if #1_ \savedigit \collecteddigit... \doCurrency

### Re: [NTG-context] Re: \digits

At 13:01 01/09/2003 +0200, you wrote: Hans Hagen [EMAIL PROTECTED] writes: \def\scandigits#1% [...] Not that tested -) Looks fine. Is there a way to increase the length of the dash in 123,-- Now it looks like a simple -, I'd like to be able to choose between -, -- and perhaps ---. you can

### Re: [NTG-context] \digits

At 19:59 29/08/2003 +0200, you wrote: Hello, while browsing the source, I came across the very nice \digits macro. But I have some comments: In my opinion some characters don't look right \starttext \digits 123.222,= % short, OK \digits 123.222,== % should be em dash (?) \digits

### [NTG-context] Re: \digits

Hans Hagen [EMAIL PROTECTED] writes: \def\scandigits#1% [...] Not that tested -) Looks fine. Is there a way to increase the length of the dash in 123,-- Now it looks like a simple -, I'd like to be able to choose between -, -- and perhaps ---. Patrick

### [NTG-context] \digits

Hello, while browsing the source, I came across the very nice \digits macro. But I have some comments: In my opinion some characters don't look right \starttext \digits 123.222,= % short, OK \digits 123.222,== % should be em dash (?) \digits +123.222,22% OK \digits -123.222,33