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
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 ")
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-conte
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
> 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
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
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(-)
>
-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
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):
*π
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(-)
33832795028841
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
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
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
>&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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}
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
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
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
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
, 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
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.
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
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
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,
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
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
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
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
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
\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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
77 matches
Mail list logo