Re: [NTG-context] Unusual error in Math mode

2013-04-02 Thread Hans Hagen

On 3/31/2013 5:27 PM, Aditya Mahajan wrote:

On Sun, 31 Mar 2013, Devendra Ghate wrote:


Hello Everyone,

\starttext
 $ E [ w ] = 1 $
\stoptext

produces

Eaw]=1

using my context (current version: 2013.03.29 01:03).


I can confirm this. The bug does not depend on the font used, so it
appears to be something wrong with the mappings. But I don't have time
to debug this right now.


fixed .. was side effect of addition of configurable upright greek symbols

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-02 Thread Wolfgang

Hello Philipp,
many thanks for your help!
Wolfgang

Am 02.04.2013 00:54, schrieb Philipp Gesang:

Hi Wolfgang!

···date: 2013-04-02, Tuesday···from: WolfgangZ···


Hello,
I have a problem with a using a register in my local installation
(MKIV). The minimal example works on contextgarden.

The example:
\defineregister[Erf][Erflist]


 \defineregister[Erf]

It doesn’t appear to be documented anywhere (even the source ...)
but in mkiv \defineregister is an ordinary command handler so no
fancy plurals anymore. Now the second arg expects an assignment:

 \defineregister[Erf][style=slanted,pagestyle=bold]

Regards
Philipp



\starttext
\chapter{F53667}
Hello world!
\Erf{Bla} Fool
\page
\placeregister[Erf]
\stoptext


The error I get:
mtx-context | run 1: luatex
--fmt=D:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=test1
 --lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f
b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line
--c:currentrun=1 --c
:fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1
--c:maxnofrun
s=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622)
  \write18 enabled.
(D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.03.29 01:03 MKIV  fmt: 2013.4.2  int: english/english

system   'cont-new.mkiv' loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname 'test1', input 'test1', result 'test1'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts
/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
structuresectioning  chapter @ level 2 : 0.1 - F53667
backend  xmp  using file
'D:/context/tex/texmf-context/tex/context/bas
e/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
! Missing number, treated as zero.
log
system   tex  error on line 8 in file test1.tex: Missing
number, treat
ed as zero ...


to be read again



\strc_registers_place ...\registerparameter \c!n 
   \plusone
\startcolumns [\c...
\syst_helpers_double_empty_one_spaced ...1[{#2}][]

to be read again
\stoptext
l.8 \stoptext

?


Any help is welcome.
Best regards
Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unusual error in Math mode

2013-04-02 Thread Devendra Ghate
On Tue, Apr 02, 2013 at 09:25:02AM +0200, Hans Hagen wrote:
 On 3/31/2013 5:27 PM, Aditya Mahajan wrote:
 On Sun, 31 Mar 2013, Devendra Ghate wrote:
 
 Hello Everyone,
 
 \starttext
  $ E [ w ] = 1 $
 \stoptext
 
 produces
 
 Eaw]=1
 
 using my context (current version: 2013.03.29 01:03).
 
 I can confirm this. The bug does not depend on the font used, so it
 appears to be something wrong with the mappings. But I don't have time
 to debug this right now.
 
 fixed .. was side effect of addition of configurable upright greek symbols

Thank you Hans.

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Visualcounter: style parameter not working as expected

2013-04-02 Thread Hans Hagen

On 4/2/2013 1:30 AM, Aditya Mahajan wrote:

On Tue, 2 Apr 2013, Romain Diss wrote:


I'm actually using the visualcounter module for a presentation and I
can't
modify the style of the page number inside the countdown counter. The
documentation let me think the 'style' parameter should do the job but it
doesn't seem to work.

Do I miss something or is this a bug?


This is a bug. Thanks for the report. I have fixed it on the github dev
branch, and will upload a new version soon.

In case anyone is interested, this is what was happening:

Context parses the parameter of `\useMPgraphic` to determine the MP
instance. The code was using

 \useMPgraphic{\visualcounterparameter\c!mp}

`\useMPgraphic` does not expand its arguments, so the proper MP instance
was not initialized. Changed the above line to

 \expanded{\useMPgraphic{\visualcounterparameter\c!mp}}

and now style and color parameters work.


even if it would expand, then we still can have an issue when the 
definer uses a macro as that one doesn't get expanded either, like:


\starttext

\def\xxx{x}

\startuseMPgraphic   {\xxx 1} draw  fullcircle scaled 1cm ; 
\stopuseMPgraphic
\startuniqueMPgraphic{\xxx 1} draw  fullcircle scaled 1cm ; 
\stopuniqueMPgraphic


\def\xxx{xx}

\useMPgraphic{x1}
\uniqueMPgraphic{x1}

\stoptext

this is seldom an issue, but for convenience I patched the definers and 
resolvers so that the first argument gets expanded (next upload)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-02 Thread Hans Hagen

On 4/2/2013 10:08 AM, Wolfgang wrote:

Hello Philipp,
many thanks for your help!
Wolfgang


I've added \mult_check_for_parent so at least there is less change for a 
crash but a complete auto parent define is never going to work so it's 
reported as error:


system  error: invalid parent Erfs for Erf, Erfs defined too (best 
check it)



Am 02.04.2013 00:54, schrieb Philipp Gesang:

Hi Wolfgang!

···date: 2013-04-02, Tuesday···from: WolfgangZ···


Hello,
I have a problem with a using a register in my local installation
(MKIV). The minimal example works on contextgarden.

The example:
\defineregister[Erf][Erflist]


 \defineregister[Erf]

It doesn’t appear to be documented anywhere (even the source ...)
but in mkiv \defineregister is an ordinary command handler so no
fancy plurals anymore. Now the second arg expects an assignment:

 \defineregister[Erf][style=slanted,pagestyle=bold]

Regards
Philipp



\starttext
\chapter{F53667}
Hello world!
\Erf{Bla} Fool
\page
\placeregister[Erf]
\stoptext


The error I get:
mtx-context | run 1: luatex
--fmt=D:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=test1

--lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f

b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line
--c:currentrun=1 --c
:fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1
--c:maxnofrun
s=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622)
  \write18 enabled.
(D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.03.29 01:03 MKIV  fmt: 2013.4.2  int: english/english

system   'cont-new.mkiv' loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname 'test1', input 'test1', result 'test1'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}

fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts

/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
structuresectioning  chapter @ level 2 : 0.1 - F53667
backend  xmp  using file
'D:/context/tex/texmf-context/tex/context/bas
e/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
! Missing number, treated as zero.
log
system   tex  error on line 8 in file test1.tex: Missing
number, treat
ed as zero ...


to be read again



\strc_registers_place ...\registerparameter \c!n 
   \plusone
\startcolumns [\c...
\syst_helpers_double_empty_one_spaced ...1[{#2}][]

to be read again
\stoptext
l.8 \stoptext

?


Any help is welcome.
Best regards
Wolfgang

___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___





___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




___

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, 

Re: [NTG-context] new manual

2013-04-02 Thread Willi Egger
Hi,

I just downloaded this beautiful manual. Great pleasure to look at, nice design 
and it contains oh so much information although it is not finished!

Thank you very much Hans

Willi
On Mar 27, 2013, at 1:38 PM, Hans Hagen wrote:

 Hi,
 
 I uploaded a work-in-progress manual:
 
 http://www.pragma-ade.com/general/manuals/fonts-mkiv.pdf
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___