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 - 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 ___
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 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 #...@\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. ___ 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 ___
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 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 ___
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 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 ___ 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 ___
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 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 ___ 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 ___
[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 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 #...@\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 ___
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 ___ 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 ___
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 some setting got lost when going low level english: \long\def\doTBLcharalign#1#2% column data {\edef\alignmentclass{#1}% \edef\alignmentcharacter{\tbltblalignmentcharacter}% \ifcase\TBLpass\or \setfirstpasscharacteralign\checkalignment{#2}% {\strut#2\unskip}% \fi % force hsize, so always a second \setsecondpasscharacteralign \checkalignment{#2}% {\strut#2\unskip}% \ignorespaces} \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 % \starttabulate[|cg{.}|cg{,}|cg{,}|] % \NC period \NC comma \NC comma \NC\NR % \NG 100.000,00 \NG 100.000,00 \NG 100,00 \NC\NR % \NG 10.000,00 \NG 10.000,00 \NG 1000,00 \NC\NR % \NG 100,00 \NG 100,00 \NG 10,00 \NC\NR % \NG 100,00 \NG 100,00 \NG 10,00 \NC\NR % \NG 10\\ \NG 10\\ \NG 0,00\NC\NR % \NG 10 \NG 10 \NG 0,00\NC\NR % \NG 10 \NG 10 \NG 0,00\NC\NR % \stoptabulate \stoptext - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
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... \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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[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 ...{\thinspace CHF}]\BF \digits #1\AF \relax = Is this known problem? Something with catcodes, I think, have a nice day, Martin smime.p7s Description: S/MIME cryptographic signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context