[NTG-context] Re: digits / units setup

2024-08-25 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 24.08.2024 um 20:59: Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm: According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though

[NTG-context] Re: digits / units setup

2024-08-24 Thread Henning Hraban Ramm
Next try: Apparently, \setupunit affects only \unit, for \digits you still need \setdigitmode (and \setdigitorder). Is this intentional? Also, \spaceddigits works only with decimal point input and doesn’t react to any of the above settings, while \unit and \digits expect me to insert a

[NTG-context] Re: digits / units setup

2024-08-24 Thread Henning Hraban Ramm
Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm: According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Seems to be a problem of my environment. In a

[NTG-context] digits / units setup

2024-08-24 Thread Henning Hraban Ramm
According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Hraban ___ If your

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
unwanted space. \digits {12,345.67} vs.\ $\digits {12,345.67}$ Below is a one page test document, derived from the code in phys-dim.mkxl. I think a simple fix would be to treat the comma as “ord” inside a number, but I don’t know if that is easy or not. I’d also like the space removed from around the

Re: [NTG-context] Hyphenation on digits

2021-11-03 Thread Jairo A. del Rio via ntg-context
Hi again. I've noticed \hyphenateddigits fails with alphabetical symbols, e.g. with hexadecimal numbers. Maybe there's a better solution, but something like --From phys-dim.lua actions = function(filler, digits) digits = gsub(digits,"(%d)","%1\\digitsbreak

Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Richard Mahoney
lates 11a---31b) -- break after either "---" {\it Ekottarāgama}, T125, 2: 549a10-15. -- break anywhere Best, Richard -Original Message- From: Hans Hagen Reply-To: mailing list for ConTeXt users To: mailing list for ConTeXt users , Henning Hraban Ramm Subject: Re: [NTG-

Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Hans Hagen
On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote: Am 28.01.2021 um 15:00 schrieb Hans Hagen : I'll add support for: \pi\ = \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105} A quick and dirty hack as we don't need some full blown mechanism for such a

Re: [NTG-context] Hyphenation on digits

2021-01-29 Thread Henning Hraban Ramm
> Am 28.01.2021 um 15:00 schrieb Hans Hagen : > >> > > I'll add support for: > > \pi\ = > \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105} > > A quick and dirty hack as we don't need some full blown mechanism for such a > rare case. Thank you! Might come

[NTG-context] Fwd: Re: Hyphenation on digits

2021-01-28 Thread Richard Mahoney
Rio" Subject: Re: [NTG-context] Hyphenation on digits Date: Friday, 29 January 2021 03:00 On 1/28/2021 12:50 PM, Jairo A. del Rio wrote: > Hi, list. > > I want to know if ConTeXt provides an option to automatically > hyphenate/break digits as if they were alphabetic character

Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Jairo A. del Rio
y > > hyphenate/break digits as if they were alphabetic characters. Example, > > in a narrow page I expect something like that (I've used (-) for an > > optional hyphen): > > > > *π = *3.141592653(-) > > 58979323846264(-) > > 33832795028841(-) &

Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Richard Mahoney
-buddhica.org/** *Indica et Buddhica *Littledene Bay Road Oxford NZ <https://indica-et-buddhica.org/> - Original message - From: Hans Hagen To: mailing list for ConTeXt users , "Jairo A. del Rio" Subject: Re: [NTG-context] Hyphenation on digits Date: Friday, 29 January 202

Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Hans Hagen
On 1/28/2021 12:50 PM, Jairo A. del Rio wrote: Hi, list. I want to know if ConTeXt provides an option to automatically hyphenate/break digits as if they were alphabetic characters. Example, in a narrow page I expect something like that (I've used (-) for an optional hyphen):

[NTG-context] Hyphenation on digits

2021-01-28 Thread Jairo A. del Rio
Hi, list. I want to know if ConTeXt provides an option to automatically hyphenate/break digits as if they were alphabetic characters. Example, in a narrow page I expect something like that (I've used (-) for an optional hyphen): *π = *3.141592653(-) 58979323846264(-) 338327950

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

2020-05-07 Thread Benjamin Buchmuller
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

2020-05-07 Thread Benjamin Buchmuller
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

2020-05-07 Thread Benjamin Buchmuller
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

2020-05-07 Thread Wolfgang Schuster
± 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 } Is there

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

2020-05-07 Thread Benjamin Buchmuller
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 of

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

2020-05-07 Thread Wolfgang Schuster
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

2020-05-07 Thread Benjamin Buchmuller
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 is

[NTG-context] configure \digits errata

2019-08-25 Thread Damien Thiriet
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&commas or thinmuskip&commas. Sorry for the noise, Damien

[NTG-context] configure \digits

2019-08-25 Thread Damien Thiriet
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

2018-04-29 Thread Peter Münster
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

2013-08-17 Thread Mingranina Gingranina
; \stoptext Dear 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[deja

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

2013-08-17 Thread Wolfgang Schuster
Am 17.08.2013 um 09:57 schrieb Mingranina Gingranina : > 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] \uset

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

2013-08-15 Thread Hans Hagen
On 8/15/2013 7:30 PM, Mingranina Gingranina wrote: On 8/15/13, Hans Hagen 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 want to do is

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

2013-08-15 Thread Hans Hagen
On 8/15/2013 7:30 PM, Mingranina Gingranina wrote: On 8/15/13, Hans Hagen 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 want to do is

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

2013-08-15 Thread Wolfgang Schuster
Am 15.08.2013 um 19:30 schrieb Mingranina Gingranina : > 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 - http://pragma-ade.c

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

2013-08-15 Thread Marco Patzer
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

2013-08-15 Thread Mingranina Gingranina
On 8/15/13, Hans Hagen 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 >> >&g

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

2013-08-15 Thread Hans Hagen
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

[NTG-context] Persian digits in math formulas

2013-08-15 Thread Mingranina Gingranina
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="1"4`۳ \definef

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

2013-05-22 Thread Romain Diss
etuplanguage to allow setting > >> language-specific defaults. Would anyone be interested in this? > > > > +1 again! > > needs a bit of thinking as when we start this route we get lots of new > keywords (with the danger of introducing inconsistencies) so first we > ne

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

2013-05-22 Thread Hans Hagen
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

2013-05-21 Thread Romain Diss
> 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 per

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

2013-05-21 Thread Sietse Brouwer
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

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

2013-05-21 Thread Christian Prim
Now it's perfect! Will this be included in the next version of context? Christian 2013/5/21 Hans Hagen > 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 >> >> t

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

2013-05-21 Thread Hans Hagen
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. \def\digitstimessymbol{\mathor

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

2013-05-21 Thread Christian Prim
ain 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<http://www.pragma-ade.com/general/magazines/mag-0003.pdf>p

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

2013-05-21 Thread Hans Hagen
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

2013-05-21 Thread Romain Diss
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.pr

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

2013-05-21 Thread Christian Prim
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 6&7? Th

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

2011-08-26 Thread Ian Lawrence
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 and exponents

2011-08-10 Thread Ian Lawrence
A complete example: \starttext {\em digit exponent powers - don't work} \digits{20^-12} \digits 123.222,00^10 \digits 123.222,00e10 \stoptext On 10 Aug 2011, at 08:57, Ian Lawrence wrote: > Morning all, > > I am trying to get together something for expressing physics

[NTG-context] Digits and exponents

2011-08-10 Thread Ian Lawrence
Morning all, I am trying to get together something for expressing physics appropriately and precisely. The \units and \lunits command and I are becoming better acquainted, but now I ma having grief with with the \digits{}. In particular, exponents don't seem to function as documented i

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

2011-06-12 Thread yoraxe
t; >> 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 your own digits code. Sad, that this isn't supported. I think this is a very popular notation. I'm n

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

2011-06-09 Thread Wolfgang Schuster
m has to be in $$. If I type > > \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

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

2011-06-09 Thread yoraxe
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} >> \

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

2011-06-09 Thread 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}

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

2011-06-09 Thread 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 not work in the tabulate-enviro

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

2010-01-04 Thread Alexandre Patry
-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 >\expandafter\handletoken

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

2010-01-04 Thread Aditya Mahajan
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 &qu

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

2010-01-04 Thread Hans Hagen
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<- \use

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

2010-01-03 Thread Alexandre Patry
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 [palatin

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

2009-12-15 Thread Curiouslearn
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 wrote: > On Sat, 28 Nov 2009, Curiouslearn wrote: > >> Hi, >> >> Is it possible to truncate the digits after decimal point in Metapost >>

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

2009-12-15 Thread Aditya Mahajan
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

2009-11-29 Thread Curiouslearn
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 wrote: > Curiouslearn wrote: >> >> Hi, >> >> Is it possible to truncate the digits after decimal poin

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

2009-11-29 Thread Taco Hoekwater
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

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

2009-11-28 Thread Curiouslearn
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

2009-09-08 Thread Hans Hagen
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

2009-09-07 Thread Flavien Lambert
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 > > Hello, > > I am using mkiv beta (14-Jun-09) and the \digits command does not like t

Re: [NTG-context] Problem with \digits

2009-06-18 Thread luigi scarso
On Thu, Jun 18, 2009 at 10:06 AM, 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

Re: [NTG-context] Problem with \digits

2009-06-18 Thread luigi scarso
On Thu, Jun 18, 2009 at 10:06 AM, 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

Re: [NTG-context] Problem with \digits

2009-06-18 Thread richard . stephens
>> 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

Re: [NTG-context] Problem with \digits

2009-06-16 Thread luigi scarso
On Tue, Jun 16, 2009 at 4:46 PM, 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] Problem with \digits

2009-06-16 Thread richard . stephens
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] \digits

2009-02-24 Thread Hans Hagen
Taco Hoekwater wrote: Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster 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\dohandledigits

Re: [NTG-context] \digits

2009-02-24 Thread Taco Hoekwater
Wolfgang Schuster wrote: On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster 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\dohandledigits {\mathcode`\,="

[NTG-context] \digits

2009-02-24 Thread Wolfgang Schuster
On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster 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 :). > \math

Re: [NTG-context] MkIV \digits bug

2009-02-19 Thread Wolfgang Schuster
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

[NTG-context] MkIV \digits bug

2009-02-15 Thread 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$ \fi \doscandi

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

2008-06-25 Thread Flavien Lambert
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, d

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

2008-06-20 Thread Hans Hagen
Wolfgang Schuster wrote: > On Fri, Jun 20, 2008 at 4:10 PM, Morgan Brassel <[EMAIL PROTECTED]> wrote: >> 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-

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

2008-06-20 Thread Morgan Brassel
Great, thank you! Maybe this should become the default for the \digits command? Or at least turned on via an option to \digits? I guess this is the wanted behavior for many users, so this should be made accessible easily... But maybe I'm wrong! Best regards, Morgan Wolfgang Schuster a

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

2008-06-20 Thread Wolfgang Schuster
On Fri, Jun 20, 2008 at 4:10 PM, Morgan Brassel <[EMAIL PROTECTED]> wrote: > 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

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

2008-06-20 Thread Morgan Brassel
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 \digi

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

2008-06-20 Thread Wolfgang Schuster
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 f

[NTG-context] Feature request: \digits command

2008-06-19 Thread Morgan Brassel
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}

2008-03-16 Thread Morgan Brassel
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...

2005-03-18 Thread Hans Hagen
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 so

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

2005-03-17 Thread Martin Kolaøík
: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. > > $ > >

Re: [NTG-context] problem with \digits

2005-03-17 Thread Hans Hagen
Martin Kolaøík wrote: Hi all, I used \digits and this is the result: = ! Missing $ inserted. $ _ \next ...savedigit \collecteddigits @\else \if #1_ \savedigit \collecteddigit... \doCurrency ...{\thinspace

[NTG-context] problem with \digits

2005-03-16 Thread Martin Kolaøík
Hi all, I used \digits and this is the result: = ! Missing $ inserted. $ _ \next ...savedigit \collecteddigits @\else \if #1_ \savedigit \collecteddigit... \doCurrency ...{\thinspace CHF}]\BF \digits #1

Re: [NTG-context] Re: \digits

2003-09-04 Thread Hans Hagen
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 "--

[NTG-context] Re: \digits

2003-09-01 Thread Patrick Gundlach
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

Re: [NTG-context] \digits

2003-09-01 Thread Hans Hagen
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 (?) \d

Re: [NTG-context] \digits

2003-08-31 Thread Hans Hagen
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 (?) \d

[NTG-context] \digits

2003-08-29 Thread Patrick Gundlach
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.2