ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with \digits
@ 2009-06-16 14:46 richard.stephens
  2009-06-16 14:53 ` luigi scarso
  2009-09-07 17:19 ` Flavien Lambert
  0 siblings, 2 replies; 9+ messages in thread
From: richard.stephens @ 2009-06-16 14:46 UTC (permalink / raw)
  To: ntg-context


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 enabled.
(testdigits.tex
color           : system all is global activated
color           : system gray is global activated
color           : mpcmyk color space is supported
color           : mpspot color space is supported
color           : system rgb is global activated
color           : system all is global activated

ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.16  int: english/english

system          : cont-new loaded
(C:/Tools/context/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(C:/Tools/context/texmf-context/tex/context/base/cont-new.mkiv)
(C:/Tools/context/texmf-context/tex/context/base/cont-mtx.tex))
system          : cont-fil loaded
(C:/Tools/context/texmf-context/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system          : cont-sys.rme loaded
(C:/Tools/context/texmf-context/tex/context/user/cont-sys.rme
(C:/Tools/context/texmf-context/tex/context/base/type-tmf.tex)
(C:/Tools/context/texmf-context/tex/context/base/type-siz.tex
(C:/Tools/context/texmf-context/tex/context/base/type-siz.mkiv))
(C:/Tools/context/texmf-context/tex/context/base/type-otf.tex
(C:/Tools/context/texmf-context/tex/context/base/type-otf.mkiv)))
system          : testdigits.top loaded
(testdigits.top)
fonts           : preloading latin modern fonts
bodyfont        : 12pt rm is loaded
language        : language en is active
systems         : begin file testdigits at line 1
! \textfont1 is undefined (character 58).
\mathematics #1->\relax \ifmmode #1\else $#1$
                                             \fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
                                                  \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
                                                  }\fi \chardef \skipdigit
0...
\scandigits #1->\if #1.\digitsep 1
                                  \else \if #1,\digitsep 2\else \if
#1@\digi...
\dodohandletokenstwo *#1->\dododohandletokens {#1}
                                                  \dohandletokens
<argument> 1.
             6
...
l.2 \digits{1.6}

?



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
  2009-06-16 14:46 Problem with \digits richard.stephens
@ 2009-06-16 14:53 ` luigi scarso
  2009-09-07 17:19 ` Flavien Lambert
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2009-06-16 14:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 229 bytes --]

On Tue, Jun 16, 2009 at 4:46 PM, <richard.stephens@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

[-- Attachment #1.2: Type: text/html, Size: 539 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
  2009-06-16 14:46 Problem with \digits richard.stephens
  2009-06-16 14:53 ` luigi scarso
@ 2009-09-07 17:19 ` Flavien Lambert
  2009-09-08 11:02   ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Flavien Lambert @ 2009-09-07 17:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4014 bytes --]

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.stephens@converteam.com>

>
> 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 enabled.
> (testdigits.tex
> color           : system all is global activated
> color           : system gray is global activated
> color           : mpcmyk color space is supported
> color           : mpspot color space is supported
> color           : system rgb is global activated
> color           : system all is global activated
>
> ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.16  int: english/english
>
> system          : cont-new loaded
> (C:/Tools/context/texmf-context/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (C:/Tools/context/texmf-context/tex/context/base/cont-new.mkiv)
> (C:/Tools/context/texmf-context/tex/context/base/cont-mtx.tex))
> system          : cont-fil loaded
> (C:/Tools/context/texmf-context/tex/context/base/cont-fil.tex
> loading         : ConTeXt File Synonyms
> )
> system          : cont-sys.rme loaded
> (C:/Tools/context/texmf-context/tex/context/user/cont-sys.rme
> (C:/Tools/context/texmf-context/tex/context/base/type-tmf.tex)
> (C:/Tools/context/texmf-context/tex/context/base/type-siz.tex
> (C:/Tools/context/texmf-context/tex/context/base/type-siz.mkiv))
> (C:/Tools/context/texmf-context/tex/context/base/type-otf.tex
> (C:/Tools/context/texmf-context/tex/context/base/type-otf.mkiv)))
> system          : testdigits.top loaded
> (testdigits.top)
> fonts           : preloading latin modern fonts
> bodyfont        : 12pt rm is loaded
> language        : language en is active
> systems         : begin file testdigits at line 1
> ! \textfont1 is undefined (character 58).
> \mathematics #1->\relax \ifmmode #1\else $#1$
>                                             \fi
> \doscandigit ...\digitoutputmode ,\else .\fi \fi }
>                                                  \egroup
> \digitsep ...x \digitsepbox \hbox {\doscandigit #1
>                                                  }\fi \chardef \skipdigit
> 0...
> \scandigits #1->\if #1.\digitsep 1
>                                  \else \if #1,\digitsep 2\else \if
> #1@\digi...
> \dodohandletokenstwo *#1->\dododohandletokens {#1}
>                                                  \dohandletokens
> <argument> 1.
>             6
> ...
> l.2 \digits{1.6}
>
> ?
>
>
>
> Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd.
> Registration Number: 2416188
> Registered in England and Wales.
> Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.
>
> CONFIDENTIALITY : This e-mail and any attachments are confidential and may
> be privileged. If you are not a named recipient, please notify the sender
> immediately and do not disclose the contents to another person, use it for
> any purpose or store or copy the information in any medium.
>
> Please consider the environment before printing this e-mail
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>



-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 4962 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
  2009-09-07 17:19 ` Flavien Lambert
@ 2009-09-08 11:02   ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-08 11:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
  2009-06-18  8:06 ` richard.stephens
  2009-06-18  8:24   ` luigi scarso
@ 2009-06-18  8:26   ` luigi scarso
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2009-06-18  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 689 bytes --]

On Thu, Jun 18, 2009 at 10:06 AM, <richard.stephens@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" like regular expressions  but
more powerful
(see ttp://www.inf.puc-rio.br/~roberto/lpeg/)
and is included in context mkiv (so it works only with  luatex ) ;
see l-lpeg.lua  .
For an example see l-number.lua  (I hope , I have an old mkiv release) .



Does anybody else have this problem, or is it just me?
>
Can you post a little snippet of your problem ?

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1324 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
  2009-06-18  8:06 ` richard.stephens
@ 2009-06-18  8:24   ` luigi scarso
  2009-06-18  8:26   ` luigi scarso
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2009-06-18  8:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 689 bytes --]

On Thu, Jun 18, 2009 at 10:06 AM, <richard.stephens@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" like regular expressions  but
more powerful
(see ttp://www.inf.puc-rio.br/~roberto/lpeg/)
and is included in context mkiv (so it works only with  luatex ) ;
see l-lpeg.lua  .
For an example see l-number.lua  (I hope , I have an old mkiv release) .



Does anybody else have this problem, or is it just me?
>
Can you post a little snippet of your problem ?

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1324 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with \digits
       [not found] <mailman.0.1245232802.29561.ntg-context@ntg.nl>
@ 2009-06-18  8:06 ` richard.stephens
  2009-06-18  8:24   ` luigi scarso
  2009-06-18  8:26   ` luigi scarso
  0 siblings, 2 replies; 9+ messages in thread
From: richard.stephens @ 2009-06-18  8:06 UTC (permalink / raw)
  To: ntg-context

>> 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 and Converteam Ltd. Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: problem with \digits
  2005-03-16 19:40 ` problem with \digits Martin Kolaøík
@ 2005-03-17  9:24   ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2005-03-17  9:24 UTC (permalink / raw)


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...
> 
> \doCurrency ...{\thinspace CHF}]\BF \digits #1\AF
>                                                   \relax
> 
> =====
> 
> Is this known problem? Something with catcodes, I think,

it works ok here; can you make a test file?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 9+ messages in thread

* problem with \digits
  2005-03-16 19:01 Re: Palatino? -> bitmap fonts??? Willi Egger
@ 2005-03-16 19:40 ` Martin Kolaøík
  2005-03-17  9:24   ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Kolaøík @ 2005-03-16 19:40 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 482 bytes --]

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 ...{\thinspace CHF}]\BF \digits #1\AF
                                                  \relax

=====

Is this known problem? Something with catcodes, I think,

have a nice day,

Martin

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2107 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-09-08 11:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16 14:46 Problem with \digits richard.stephens
2009-06-16 14:53 ` luigi scarso
2009-09-07 17:19 ` Flavien Lambert
2009-09-08 11:02   ` Hans Hagen
     [not found] <mailman.0.1245232802.29561.ntg-context@ntg.nl>
2009-06-18  8:06 ` richard.stephens
2009-06-18  8:24   ` luigi scarso
2009-06-18  8:26   ` luigi scarso
  -- strict thread matches above, loose matches on Subject: below --
2005-03-16 19:01 Re: Palatino? -> bitmap fonts??? Willi Egger
2005-03-16 19:40 ` problem with \digits Martin Kolaøík
2005-03-17  9:24   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).