Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
With the help of Wolfgang (thanks) the solution is (tested)

\setupformulas[prefix=yes,prefixsegments=chapter:section,way=bysection]



On Mon, Mar 1, 2010 at 10:40 PM, gummybears  wrote:

> To all interested
>
> I found a simpler solution, not knowing how prefixsegments really work, but
> mainly understand
> from this example, is
>
> \setupformulas[prefixsegments=chapter:section]
>
> instead of using
>
> \setupformulas[prefixsegments=1:100]
>
> Both setups gives the same numbering scheme of the formula numbers.
> Both setups also don't reset the formula number after a new section, it
> just
> keeps numbering the formulas
>
> I know I saw a code snippet which does some sort of reset, I think
> prefixreset or reset, but
> I cannot find it anymore.
>
>
___
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] MK-II to MK-IV

2010-03-01 Thread Hans Hagen

On 1-3-2010 22:40, gummybears wrote:

To all interested

I found a simpler solution, not knowing how prefixsegments really work, but
mainly understand
from this example, is

\setupformulas[prefixsegments=chapter:section]

instead of using

\setupformulas[prefixsegments=1:100]

Both setups gives the same numbering scheme of the formula numbers.
Both setups also don't reset the formula number after a new section, it just
keeps numbering the formulas

I know I saw a code snippet which does some sort of reset, I think
prefixreset or reset, but
I cannot find it anymore.


i hope to stabelize the code this year (i have a few more options in mind)

although functionality of mkii is also present in mkiv, some 
configuration is different (as it is more flexible); also, some obscure 
features have been removed.


we carry a lot more info around (also userdate) and all is accessible 
during the run (there will be more accessors)


the new structure setup is rather undocumented but you can see some in 
strc-def.mkiv


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
-
___
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] MK-II to MK-IV

2010-03-01 Thread Wolfgang Schuster

Am 01.03.10 22:40, schrieb gummybears:

To all interested

I found a simpler solution, not knowing how prefixsegments really 
work, but mainly understand

from this example, is

\setupformulas[prefixsegments=chapter:section]

instead of using

\setupformulas[prefixsegments=1:100]

interesting

Both setups gives the same numbering scheme of the formula numbers.
Both setups also don't reset the formula number after a new section, 
it just

keeps numbering the formulas

I know I saw a code snippet which does some sort of reset, I think 
prefixreset or reset, but

I cannot find it anymore.


way=by... still works, you mean \definestructureresetset but this seems 
not to be used here


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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
To all interested

I found a simpler solution, not knowing how prefixsegments really work, but
mainly understand
from this example, is

\setupformulas[prefixsegments=chapter:section]

instead of using

\setupformulas[prefixsegments=1:100]

Both setups gives the same numbering scheme of the formula numbers.
Both setups also don't reset the formula number after a new section, it just
keeps numbering the formulas

I know I saw a code snippet which does some sort of reset, I think
prefixreset or reset, but
I cannot find it anymore.
___
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] MK-II to MK-IV

2010-03-01 Thread gummybears
Wolfgang, works for me too. Thanks for your time.
___
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] MK-II to MK-IV

2010-03-01 Thread Saptarshi Guha
Thanks Wolfgang, this worked for me.

On Mon, Mar 1, 2010 at 12:47 PM, Wolfgang Schuster
 wrote:
> Am 01.03.10 18:32, schrieb gummybears:
>>
>> At saptarshi
>>
>> With MK-II the formula numbers came out (1.1.1), (1.1.2), numbered by
>> section.
>>
>> Chapter 1, section 1, formula 1 -> (1.1.1)
>> Chapter 1, section 1, formula 2 -> (1.1.2)
>>
>> The above is what I want.
>>
>> Now in MK-IV they come out numbered like
>> Chapter 1, section 1, formula 1 -> (1.1)
>> Chapter 1, section 1, formula 2 -> (1.2)
>>
>> This is not numbered by section but by chapter, as you confirmed.
>>
>> The problem still persists.
>
> \setupformulas[numbercolor=blue,numberstyle=bold,prefixsegments=1:100,way=bysection]
>
> 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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread Wolfgang Schuster

Am 01.03.10 18:32, schrieb gummybears:

At saptarshi

With MK-II the formula numbers came out (1.1.1), (1.1.2), numbered by 
section.


Chapter 1, section 1, formula 1 -> (1.1.1)
Chapter 1, section 1, formula 2 -> (1.1.2)

The above is what I want.

Now in MK-IV they come out numbered like
Chapter 1, section 1, formula 1 -> (1.1)
Chapter 1, section 1, formula 2 -> (1.2)

This is not numbered by section but by chapter, as you confirmed.

The problem still persists.

\setupformulas[numbercolor=blue,numberstyle=bold,prefixsegments=1:100,way=bysection]

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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
At saptarshi

With MK-II the formula numbers came out (1.1.1), (1.1.2), numbered by
section.

Chapter 1, section 1, formula 1 -> (1.1.1)
Chapter 1, section 1, formula 2 -> (1.1.2)

The above is what I want.

Now in MK-IV they come out numbered like
Chapter 1, section 1, formula 1 -> (1.1)
Chapter 1, section 1, formula 2 -> (1.2)

This is not numbered by section but by chapter, as you confirmed.

The problem still persists.


On Mon, Mar 1, 2010 at 6:17 PM, gummybears  wrote:

> At Wolfgang
>
> Tried
> \definestructureprefixset[section][section-3][]
> \setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]
> alas it doesn't work.
>
> What version of Context are you using ?
>
> Thanks
>
>
>
>
>
>
___
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] MK-II to MK-IV

2010-03-01 Thread Wolfgang Schuster

Am 01.03.10 18:17, schrieb gummybears:

At Wolfgang

Tried
\definestructureprefixset[section][section-3][]
\setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]
alas it doesn't work.

What version of Context are you using ?

MTXrun | current version: 2010.02.26 10:57

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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread Saptarshi Guha
Hello,
I checked out context minimals and ran context on your sample file(OS
X Leopard), it worked. The formula is numbered 1.1.

context jh.tex
MTXrun | run 1: luatex
--fmt="/Users/yanger/mystuff/context/tex/texmf-cache/luatex-cache/context/6260f85025788ae8cf4a5735589294e1/formats/cont-en"
--lua="/Users/yanger/mystuff/context/tex/texmf-cache/luatex-cache/context/6260f85025788ae8cf4a5735589294e1/formats/cont-en.lui"
--backend=pdf "./jh.tex"
This is LuaTeX, Version beta-0.50.0-2009122422
 \write18 enabled.
(jh.tex

ConTeXt  ver: 2010.02.24 11:12 MKIV  fmt: 2010.2.24  int: english/english





On Mon, Mar 1, 2010 at 3:39 AM, gummybears  wrote:
> Hi,
>
> In reply to Hans, I am using the latest beta (ConTeXt version 2010.02.25
> 19:46.
> mkiv, LuaTeX version 50, LuaTeX revision 0, (LuaTeX date stamp 2009122521))
>
> As Hans requested a small test file,
>
> \setupnumbering[way=bysection] % <--- this used to work, but does not
> \setupformulas[numbercolor=blue,numberstyle=bold]
> \starttext
> \chapter{Math formulae numbering}
> \section{Does not work}
> Numbering formulae by section
> \placeformula
> \startformula
> a^2 + b^2 = c^2
> \stopformula
> \section{More ...}
> \stoptext
>
> Also tried the solution from Contextgarden
> (http://wiki.contextgarden.net/Math/Display) by using
> \setupnumber[formula][way=bysection] instead of
> \setupnumbering[way=bysection]
> But alas, this does not work either
>
>
>
> On Sun, Feb 28, 2010 at 3:47 AM, gummybears  wrote:
>>
>> Hi,
>> A couple of years ago, I decided to switch from LaTex to ConText. Now
>> I have compiled a lot of documents (Physics syllabi's) which compiles fine
>> in MK-II.
>>
>> I thought I would try to make a switch to MK-IV, mainly because I
>> want to include 3D PRC figures in my documents.
>>
>> I made some test cases to test MK-IV in order to get a handle on the
>> differences between MK-II and MK-IV
>>
>> Some of my observations are
>> *) Numbered formulas, numbered by section, don't seem to work
>> *) I am getting a lot of warnings of identifiers, apparently used more
>> than once, which they are not
>> LuaTeX warning (ext4): destination with the same identifier
>> (name{km1_chapter1_sec1}) has been already used, duplicate ignored
>>
>> Question
>> Are these observations correct, someone else can confirm them ?
>> Question
>> If so, is there a fix, patch, or change in ConText commands/options I am
>> not aware of ?
>>
>> TIA
>
>
> ___
> 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] MK-II to MK-IV

2010-03-01 Thread gummybears
At Wolfgang

Tried
\definestructureprefixset[section][section-3][]
\setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]
alas it doesn't work.

What version of Context are you using ?

Thanks
___
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] MK-II to MK-IV

2010-03-01 Thread Wolfgang Schuster

Am 01.03.10 09:39, schrieb gummybears:

Hi,

In reply to Hans, I am using the latest beta (ConTeXt version 
2010.02.25 19:46.
mkiv, LuaTeX version 50, LuaTeX revision 0, (LuaTeX date stamp 
2009122521))


As Hans requested a small test file,

\setupnumbering[way=bysection] % <--- this used to work, but does not
\setupformulas[numbercolor=blue,numberstyle=bold]

\definestructureprefixset[section][section-3][]
\setupformulas[numbercolor=blue,numberstyle=bold,prefixset=section]

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
___


Re: [NTG-context] MK-II to MK-IV

2010-03-01 Thread gummybears
Hi,

In reply to Hans, I am using the latest beta (ConTeXt version 2010.02.25
19:46.
mkiv, LuaTeX version 50, LuaTeX revision 0, (LuaTeX date stamp 2009122521))

As Hans requested a small test file,

\setupnumbering[way=bysection] % <--- this used to work, but does not
\setupformulas[numbercolor=blue,numberstyle=bold]
\starttext
\chapter{Math formulae numbering}
\section{Does not work}
Numbering formulae by section
\placeformula
\startformula
a^2 + b^2 = c^2
\stopformula
\section{More ...}
\stoptext

Also tried the solution from Contextgarden (
http://wiki.contextgarden.net/Math/Display) by using
\setupnumber[formula][way=bysection] instead of \setupnumbering[way=bysection]

But alas, this does not work either



On Sun, Feb 28, 2010 at 3:47 AM, gummybears  wrote:

> Hi,
> A couple of years ago, I decided to switch from LaTex to ConText. Now
> I have compiled a lot of documents (Physics syllabi's) which compiles fine
> in MK-II.
>
> I thought I would try to make a switch to MK-IV, mainly because I
> want to include 3D PRC figures in my documents.
>
> I made some test cases to test MK-IV in order to get a handle on the
> differences between MK-II and MK-IV
>
> Some of my observations are
> *) Numbered formulas, numbered by section, don't seem to work
> *) I am getting a lot of warnings of identifiers, apparently used more than
> once, which they are not
> LuaTeX warning (ext4): destination with the same identifier
> (name{km1_chapter1_sec1}) has been already used, duplicate ignored
>
> Question
> Are these observations correct, someone else can confirm them ?
> Question
> If so, is there a fix, patch, or change in ConText commands/options I am
> not aware of ?
>
> TIA
>
___
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] MK-II to MK-IV

2010-02-28 Thread Hans Hagen

On 28-2-2010 3:47, gummybears wrote:

Hi,
A couple of years ago, I decided to switch from LaTex to ConText. Now
I have compiled a lot of documents (Physics syllabi's) which compiles fine
in MK-II.

I thought I would try to make a switch to MK-IV, mainly because I
want to include 3D PRC figures in my documents.

I made some test cases to test MK-IV in order to get a handle on the
differences between MK-II and MK-IV

Some of my observations are
*) Numbered formulas, numbered by section, don't seem to work
*) I am getting a lot of warnings of identifiers, apparently used more than
once, which they are not
LuaTeX warning (ext4): destination with the same identifier
(name{km1_chapter1_sec1}) has been already used, duplicate ignored

Question
Are these observations correct, someone else can confirm them ?
Question
If so, is there a fix, patch, or change in ConText commands/options I am not
aware of ?


i auppose that you use the latest version

when running into such a problem, just make a small example that shows 
the problem and post is


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
-
___
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
___


[NTG-context] MK-II to MK-IV

2010-02-27 Thread gummybears
Hi,
A couple of years ago, I decided to switch from LaTex to ConText. Now
I have compiled a lot of documents (Physics syllabi's) which compiles fine
in MK-II.

I thought I would try to make a switch to MK-IV, mainly because I
want to include 3D PRC figures in my documents.

I made some test cases to test MK-IV in order to get a handle on the
differences between MK-II and MK-IV

Some of my observations are
*) Numbered formulas, numbered by section, don't seem to work
*) I am getting a lot of warnings of identifiers, apparently used more than
once, which they are not
LuaTeX warning (ext4): destination with the same identifier
(name{km1_chapter1_sec1}) has been already used, duplicate ignored

Question
Are these observations correct, someone else can confirm them ?
Question
If so, is there a fix, patch, or change in ConText commands/options I am not
aware of ?

TIA
___
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
___