Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 8:34:52 PM IST Wolfgang Schuster wrote:
> Provide a complete minimal example to increase your chances for an answer.
> 
> Wolfgang

I was inspecting this just now and figured out that in one of the 
\defineenumeration I was inheriting another enumeration block which had the 
width parameter set.

So I rewrote the definition without inheriting anything. Now, 
alternative=leftmargin works just as expected. No problems.

My apologies to all for the oversight.

kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread Wolfgang Schuster via ntg-context

kauśika via ntg-context schrieb am 20.11.2021 um 14:28:

On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:

Dear list,

I have the following enumeration block.

\defineenumeration[verse]
\setupenumeration[verse]
   [alternative=leftmargin,
text=,
width=fit,
distance=1em,
way=bysection]

I actually want to (flush) left align the enumeration's number inside the
left margin and give it a blue color. But even if I have
\setupmargindata[inleftmargin][color=bblue4,align=flushleft]
there is no alignment, no color.

However, if I do
\setupenumeration[verse]
   [alternative=leftmargin,
text=,
width=\leftmarginwidth,
headcolor=bblue4,
distance=0em,
way=bysection]
I am able to get the desired effect.

Is this the 'correct' way to do it? I mean to ask, am I doing something
wrong with \setupmargindata or is this expected behaviour.

Thanks,
kauśika

Also
\setupenumeration[verse]
   [alternative=left,
text=,
headcommand=\inleftmargin,
distance=0em,
way=bysection]
along with
\setupmargindata[inleftmargin][color=bblue4,align=flushleft]
achieves the required effect.

So then am I using alternative=leftmargin incorrectly?


Provide a complete minimal example to increase your chances for an answer.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
> Dear list,
> 
> I have the following enumeration block.
> 
> \defineenumeration[verse]
> \setupenumeration[verse]
>   [alternative=leftmargin,
>text=,
>width=fit,
>distance=1em,
>way=bysection]
> 
> I actually want to (flush) left align the enumeration's number inside the
> left margin and give it a blue color. But even if I have
>\setupmargindata[inleftmargin][color=bblue4,align=flushleft]
> there is no alignment, no color.
> 
> However, if I do
> \setupenumeration[verse]
>   [alternative=leftmargin,
>text=,
>width=\leftmarginwidth,
>headcolor=bblue4,
>distance=0em,
>way=bysection]
> I am able to get the desired effect.
> 
> Is this the 'correct' way to do it? I mean to ask, am I doing something
> wrong with \setupmargindata or is this expected behaviour.
> 
> Thanks,
> kauśika

Also 
\setupenumeration[verse]
  [alternative=left,
   text=,
   headcommand=\inleftmargin,
   distance=0em,
   way=bysection]
along with
   \setupmargindata[inleftmargin][color=bblue4,align=flushleft]
achieves the required effect. 

So then am I using alternative=leftmargin incorrectly?

Thanks,
kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-06 Thread Florian Leupold

> On 06.09.16, at 02:55, Aditya Mahajan  wrote:
> 
> On Mon, 5 Sep 2016, Florian Leupold wrote:
> 
>> One problem, however, persists: The theorem environment gets misplaced when 
>> a figure is placed to its left:
>> 
>> \setupexternalfigures[location=default]
>> \setupenumerations[
>>  alternative=left,
>>  text=Theorem,
>>  title=no,
>>  stopper={:},
>>  distance=0ex,
>>  width=fit,
>>  right={~},
>>  style=normal,
>>  hang=fit]
> 
> I am not sure what visual layout you want, but how about using:
> 
> \setupenumerations[
>alternative=serried,
>text=Theorem,
>title=no,
>stopper={:},
>distance=0ex,
>width=fit,
>right={~},
>style=normal,
>  ]
> \defineenumeration[theorem]
> 
> Aditya
> 
> ___
> 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
> ___

Dear Aditya,

thanks, that is indeed what I wanted to achieve. I don’t know why I got hung up 
with “alternative=left”.

Best,
Florian


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-05 Thread Florian Leupold
> On 04.09.16, at 21:54, Otared Kavian  wrote:
> 
> Hi Florian,
> 
> The following setup works fine here, I wonder whether this is what you want:
> 
> \defineenumeration[theorem]
>   [text={Theorem},
>   style=slanted,
>   title=yes,
>   alternative=hanging,
> % hang=2,
>   width=fit,
>   right={~},
>   way=bychapter,
> % way=bysection,
>   prefix=yes,
> % prefixsegments={chapter:section},
>   prefixsegments={chapter},
>   ]
> 
> Another more versatile solution is to define an enumeration like the 
> \proclaim definition of plain TeX, as follows:
> 
> \defineenumeration[proclaim]
>   [text=,
>   style=slanted,
>   title=yes,
>   titleleft=,
>   titleright={.},
>   alternative=hanging,
> % hang=2,
>   width=fit,
>   right={~},
>   way=bychapter,
> % way=bysection,
>   prefix=yes,
> % prefixsegments={chapter:section},
>   prefixsegments={chapter},
>   ]
> 
> and the use it as in the following example:
> 
> \startproclaim{Pythagoras Theorem}
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stopproclaim
> 
> You can play with other options in the setups above and tune them to your 
> taste.
> 
> Best regards: OK
> 
>> On 4 Sep 2016, at 19:37, Florian Leupold  wrote:
>> 
>> Dear list,
>> 
>> I am trying to use enumerations with MKIV I am a bit at a loss when it comes 
>> to the documentation (see below for a few issues).
>> 
>> Working on a concrete example, I have come pretty close to what I want for 
>> my enumeration ‘theorem’:
>> 
>> \setupexternalfigures[location=default]
>> \setupenumerations[
>>  alternative=left,
>>  text=Theorem,
>>  headstyle=bold,
>>  title=no,
>>  way=bychapter,
>>  stopper={:},
>>  distance=1ex,
>>  width=fit,
>>  style=normal,
>>  hang=fit]
>> \defineenumeration[theorem]
>> \starttext
>> \chapter{First chapter}
>> \starttheorem
>> The square on the hypotenuse is equal to the sum of the squares on the other 
>> two sides.
>> \stoptheorem
>> \chapter{Second chapter}
>> \placefigure[right, none]{}{\externalfigure[mill]}
>> \starttheorem
>> The square on the hypotenuse is equal to the sum of the squares on the other 
>> two sides.
>> \stoptheorem
>> \stoptext
>> 
>> QUESTIONS:
>> 1) I would like to prefix the theorem counter with the chapter number, such 
>> that the number of the second theorem becomes 2.1. Can this be done?
>> 2) Is it possible to circumvent the misplacement of the second theorem due 
>> to the placed figure? Ideally, the theorem would just use the space to the 
>> left it.
>> 
>> Issues with the documentation:
>> - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
>> from \setupcounter; but in “ConTEXt reference manual", it says on page 246 
>> that \setupenumerations inherits from \setupdescriptions.
>> - In “ConTEXt reference manual”, the key “location” for \defineenumeration 
>> should probably replaced by “alternative”. Right now, all examples on page 
>> 247 are unaffected by this setting and hence look the same.
>> - The wiki seems to use MKII, which makes a difference for the example on 
>> http://wiki.contextgarden.net/Command/enumeration, which compiles 
>> differently under ConTeXT online.
>> 
>> Thanks for your help!
>> 
>> Best regards,
>> Florian
>> ___
>> 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
> ___

Dear Otared and Wolfgang,

thanks for your helpful suggestions and information!

One problem, however, persists: The theorem environment gets misplaced when a 
figure is placed to its left:

\setupexternalfigures[location=default]
\setupenumerations[
alternative=left,
text=Theorem,
title=no,
stopper={:},
distance=0ex,
width=fit,
right={~},
style=normal,
hang=fit]
\defineenumeration[theorem]
\starttext
\placefigure[right, none]{}{\externalfigure[mill]}
\starttheorem
The 

Re: [NTG-context] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Wolfgang Schuster

Florian Leupold 
4. September 2016 um 19:37
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration 
inherits from \setupcounter; but in “ConTEXt reference manual", it 
says on page 246 that \setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference manual”, the key “location” for 
\defineenumeration should probably replaced by “alternative”. Right 
now, all examples on page 247 are unaffected by this setting and hence 
look the same.
ConTeXt contains two different interface files, a) a old one 
(cont-en.xml) which was written for MkII and extended of the time with a 
few new command introduced by MkIV (e.g. \definefontfeature) and b) a 
new one (i-context.xml) which was rewritten with MkIV as its base.


Most of the existing documents use the old file which contains either 
wrong keys (e.g. location vs. alternative) or document no longer 
existing functions (compare counter related settings in both files).


The new file takes also into account internal changes for commands, e.g. 
in MkII note descriptions are based on enumerations which are itself a 
extension to the description commands. In MkIV notations (new name for 
note descriptions), enumerations and descriptions all use a internal 
mechanism called constructions with extra functions for each instance.


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] Enumeration: chapter in counter, problem next to placefigure, and documentation issues

2016-09-04 Thread Otared Kavian
Hi Florian,

The following setup works fine here, I wonder whether this is what you want:

\defineenumeration[theorem]
[text={Theorem},
style=slanted,
title=yes,
alternative=hanging,
%   hang=2,
width=fit,
right={~},
way=bychapter,
%   way=bysection,
prefix=yes,
%   prefixsegments={chapter:section},
prefixsegments={chapter},
]

Another more versatile solution is to define an enumeration like the \proclaim 
definition of plain TeX, as follows:

\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
%   hang=2,
width=fit,
right={~},
way=bychapter,
%   way=bysection,
prefix=yes,
%   prefixsegments={chapter:section},
prefixsegments={chapter},
]

and the use it as in the following example:

\startproclaim{Pythagoras Theorem}
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stopproclaim

You can play with other options in the setups above and tune them to your taste.

Best regards: OK

> On 4 Sep 2016, at 19:37, Florian Leupold  wrote:
> 
> Dear list,
> 
> I am trying to use enumerations with MKIV I am a bit at a loss when it comes 
> to the documentation (see below for a few issues).
> 
> Working on a concrete example, I have come pretty close to what I want for my 
> enumeration ‘theorem’:
> 
> \setupexternalfigures[location=default]
> \setupenumerations[
>   alternative=left,
>   text=Theorem,
>   headstyle=bold,
>   title=no,
>   way=bychapter,
>   stopper={:},
>   distance=1ex,
>   width=fit,
>   style=normal,
>   hang=fit]
> \defineenumeration[theorem]
> \starttext
> \chapter{First chapter}
> \starttheorem
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stoptheorem
> \chapter{Second chapter}
> \placefigure[right, none]{}{\externalfigure[mill]}
> \starttheorem
> The square on the hypotenuse is equal to the sum of the squares on the other 
> two sides.
> \stoptheorem
> \stoptext
> 
> QUESTIONS:
> 1) I would like to prefix the theorem counter with the chapter number, such 
> that the number of the second theorem becomes 2.1. Can this be done?
> 2) Is it possible to circumvent the misplacement of the second theorem due to 
> the placed figure? Ideally, the theorem would just use the space to the left 
> it.
> 
> Issues with the documentation:
> - In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
> from \setupcounter; but in “ConTEXt reference manual", it says on page 246 
> that \setupenumerations inherits from \setupdescriptions.
> - In “ConTEXt reference manual”, the key “location” for \defineenumeration 
> should probably replaced by “alternative”. Right now, all examples on page 
> 247 are unaffected by this setting and hence look the same.
> - The wiki seems to use MKII, which makes a difference for the example on 
> http://wiki.contextgarden.net/Command/enumeration, which compiles differently 
> under ConTeXT online.
> 
> Thanks for your help!
> 
> Best regards,
> Florian
> ___
> 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] Enumeration lists (was: \definedescription and setupdescription options)

2016-03-06 Thread Alan BRASLAU
On Mon, 7 Mar 2016 04:42:09 +0100
Wolfgang Schuster  wrote:

> \defineenumeration
> [fact]
> [list=fact]
> 
> \starttext
> 
> \startfact [title=First fact]
> Many commands in \CONTEXT\ are obvious.
> \stopfact
> 
> \placelist [enumeration:fact] [criterium=all]
> 
> \stoptext
> 
> does not produce a list.
> Use \placelist[fact][criterium=all].

In fact, [list=fact] above is ignored, and one cannot type

\defineenumeration [fact] [list=facts]

...

\placelist [facts] [criterium=all]


Alan
___
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] enumeration of equations containing \mathcases

2015-02-10 Thread Otared Kavian
Hi Joerg,

I use a math align environment, like the following:

 begin
%% analogous to \cases
\definemathmatrix[alignedcases] %% ——— here you can give whatherver name you 
wish
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla
\placeformula
\startformula
K_1 \rightarrow
\startalignedcases
   \NC f  \NC \mbox{ for }\,  f \ll PS,  \quad\mbox{(flow limited 
transport)} \NR
   \NC PS \NC \mbox{ for }\, f \gg PS,\quad \mbox{(diffusion limited 
transport)} \NR
\stopalignedcases
\stopformula
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla

\stoptext
 end

However I don’t know how to number each subcases.

Best regards: OK

 On 10 Feb 2015, at 17:32, j. van den hoff veedeeh...@googlemail.com wrote:
 
 hi list,
 
 admittedly I've posted this problem two times 6-8 weeks ago already but since 
 I did not get a single
 response (not even RTFM...) I try it now a third time (hoping this is not 
 considered spamming the list ...):
 
 question: how can I get properly aligned enumeration of equations that use 
 `\mathcases'.
 
 example:
 8--
 bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
 bla bla bla bla bla bla
 \placeformula
 \startformula
 K_1 \rightarrow
 \startmathcases
\NC f  \NC for $f \ll PS$ (flow limited transport)  \NR
\NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+]
 \stopmathcases
 \stopformula
 bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
 bla bla bla bla bla bla
 \stoptext
 8--
 
 does subcases enumeration in the second case but this is not aligned with 
 the right text margin so
 it can not be used easily to fake the enumeration of the whole equation. 
 \placeformula on the
 other hand does not print an equation number at all (contrary to what it 
 usually does.
 
 I'm at a loss how to solve this...
 
 thx,joerg
 ___
 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] enumeration of equations containing \mathcases

2015-02-10 Thread j. van den hoff

On Tue, 10 Feb 2015 18:25:25 +0100, Otared Kavian ota...@gmail.com wrote:


Hi Joerg,


hi otared,



I use a math align environment, like the following:

 begin
%% analogous to \cases
\definemathmatrix[alignedcases] %% ——— here you can give whatherver  
name you wish

[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla
\placeformula
\startformula
K_1 \rightarrow
\startalignedcases
   \NC f  \NC \mbox{ for }\,  f \ll PS,  \quad\mbox{(flow limited  
transport)} \NR
   \NC PS \NC \mbox{ for }\, f \gg PS,\quad \mbox{(diffusion limited  
transport)} \NR

\stopalignedcases
\stopformula
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla

\stoptext
 end


ah yes. that works... very good.


However I don’t know how to number each subcases.


I do not need these, actually, right now. so you solved my problem just  
fine.


@devs: what about the original \mathcases problem? should equation  
numbering not work for that command, too?


but anyway: really thanks a lot for this solution!

joerg



Best regards: OK

On 10 Feb 2015, at 17:32, j. van den hoff veedeeh...@googlemail.com  
wrote:


hi list,

admittedly I've posted this problem two times 6-8 weeks ago already but  
since I did not get a single
response (not even RTFM...) I try it now a third time (hoping this is  
not considered spamming the list ...):


question: how can I get properly aligned enumeration of equations that  
use `\mathcases'.


example:
8--
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla
\placeformula
\startformula
K_1 \rightarrow
\startmathcases
   \NC f  \NC for $f \ll PS$ (flow limited transport)  \NR
   \NC PS \NC for $f \gg PS$ (diffusion limited transport) \NR[+]
\stopmathcases
\stopformula
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla
\stoptext
8--

does subcases enumeration in the second case but this is not aligned  
with the right text margin so
it can not be used easily to fake the enumeration of the whole  
equation. \placeformula on the
other hand does not print an equation number at all (contrary to what  
it usually does.


I'm at a loss how to solve this...

thx,joerg
___
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
___



--
Using Opera's revolutionary email client: http://www.opera.com/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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] enumeration with the Spanish alphabet

2014-11-17 Thread Hans Hagen

On 11/15/2014 11:36 AM, Pablo Rodriguez wrote:

On 11/14/2014 12:28 AM, Hans Hagen wrote:

On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:

Many thanks for the fix, Hans.


It's more a new feature than a fix .. so that means that you have to
wikify it


Hans,

I have wikified it for http://wiki.contextgarden.net/Enumerations:

 When the selected language is Slovenian or Spanish, items are
 numbered using their proper alphabets (the Slovenian enumeration
 includes č, š and ž; the Spanish enumeration includes ñ). You
 can  change to the international enumeration with alphabetic,
 Alphabetic.

With \definestructureconversionset, the options seem to be the
following:

 a uses ñ in text, TOC, but not in bookmarks.

 alphabeticuses ñ in text, but not in TOC or in bookmarks.

 charactersuses ñ in text, TOC and bookmarks.
   (It doesn’t seem to work in Slovenian [no č in
   bookmarks].)

Wouldn’t it be possible that the each conversion set uses the same
letter series in all text, TOC and bookmarks? (Sorry, but I’m afraid
that the current behavior is not consistent.)

I’m happy to wikify also title numbering, but first I would like to
be sure that I’m not missing anything.

Many thanks for your help again,


first make an example showing this so that we can see what is wrong

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] enumeration with the Spanish alphabet

2014-11-17 Thread Pablo Rodriguez
On 11/17/2014 07:06 PM, Hans Hagen wrote:
 On 11/15/2014 11:36 AM, Pablo Rodriguez wrote:
 [...]
 I’m happy to wikify also title numbering, but first I would like to
 be sure that I’m not missing anything.
 
 first make an example showing this so that we can see what is wrong

Hans,

here you have the samples for Slovenian:

\mainlanguage[sl]
\definestructureconversionset[sectionnumbers]
[characters,a,alphabetic][n]
\setupinteraction[state=start]
\placebookmarks[part,chapter,section]
[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\setupheads[sectionconversionset=sectionnumbers]
\setuphead[part][placehead=yes, page=]
\setuphead[chapter][page=]
\starttext
\dorecurse{5}{\part{Part \recurselevel}}
\dorecurse{5}{\chapter{Chapter \recurselevel}}
\dorecurse{5}{\section{Section \recurselevel}}
\startitemize[a, packed][start=3]
\dorecurse{3}{\item test\endgraf}
\stopitemize
\stoptext

and Spanish:

\mainlanguage[es]
\definestructureconversionset[sectionnumbers]
[characters,a,alphabetic][n]
\setupinteraction[state=start]
\placebookmarks[part,chapter,section]
[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\setupheads[sectionconversionset=sectionnumbers]
\setuphead[part][placehead=yes, page=]
\setuphead[chapter][page=]
\starttext
\setupheadnumber[part][13]
\setupheadnumber[chapter][13]
\setupheadnumber[section][13]
\dorecurse{3}{\part{Part \recurselevel}}
\dorecurse{3}{\chapter{Chapter \recurselevel}}
\dorecurse{3}{\section{Section \recurselevel}}
\startitemize[a, packed][start=3]
\dorecurse{3}{\item test\endgraf}
\stopitemize
\stoptext

Their behaviors aren’t exactly the same. This is the reason I send two
samples.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-15 Thread Pablo Rodriguez
On 11/14/2014 12:28 AM, Hans Hagen wrote:
 On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:
 Many thanks for the fix, Hans.
 
 It's more a new feature than a fix .. so that means that you have to 
 wikify it

Hans,

I have wikified it for http://wiki.contextgarden.net/Enumerations:

When the selected language is Slovenian or Spanish, items are
numbered using their proper alphabets (the Slovenian enumeration
includes č, š and ž; the Spanish enumeration includes ñ). You
can  change to the international enumeration with alphabetic,
Alphabetic.

With \definestructureconversionset, the options seem to be the
following:

a uses ñ in text, TOC, but not in bookmarks.

alphabeticuses ñ in text, but not in TOC or in bookmarks.

charactersuses ñ in text, TOC and bookmarks.
  (It doesn’t seem to work in Slovenian [no č in
  bookmarks].)

Wouldn’t it be possible that the each conversion set uses the same
letter series in all text, TOC and bookmarks? (Sorry, but I’m afraid
that the current behavior is not consistent.)

I’m happy to wikify also title numbering, but first I would like to
be sure that I’m not missing anything.

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-13 Thread Pablo Rodriguez
On 11/12/2014 09:35 PM, Hans Hagen wrote:
 [...]
 before we do that ... are we going to use 'numerals' or 'characters' for 
 it ... I just copied some slovenian .. okay, I'll go for numerals in the 
 next upload
 
 bookmarks will work also then

Many thanks for the fix, Hans.


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-13 Thread Hans Hagen



On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:

On 11/12/2014 09:35 PM, Hans Hagen wrote:

[...]
before we do that ... are we going to use 'numerals' or 'characters' for
it ... I just copied some slovenian .. okay, I'll go for numerals in the
next upload

bookmarks will work also then


Many thanks for the fix, Hans.


It's more a new feature than a fix .. so that means that you have to 
wikify it


Hans


___
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] enumeration with the Spanish alphabet

2014-11-12 Thread Pablo Rodriguez
On 11/12/2014 01:38 AM, Hans Hagen wrote:
 On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
 [...]
 Instead of changing the default letter series, how about adding the ñ
 (or Ñ) after n and before o (or after N and before O) in a new
 enumeration series named ñ (and Ñ).
 
 in next beta

Many thanks for your fast implementation, Hans.

I’m afraid it is not implemented for bookmarks.

\mainlanguage[es]
\setupinteraction[state=start]
\placebookmarks[section]
\definestructureconversionset[sectionnumbers]
[0,n,characters][n]
\setupheads[sectionconversionset=sectionnumbers]
\starttext
\dorecurse{20}{\section{section}}
\stoptext

Many thanks again for your help,


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-12 Thread Hans Hagen

On 11/12/2014 4:23 PM, Pablo Rodriguez wrote:

On 11/12/2014 01:38 AM, Hans Hagen wrote:

On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:

[...]
Instead of changing the default letter series, how about adding the ñ
(or Ñ) after n and before o (or after N and before O) in a new
enumeration series named ñ (and Ñ).


in next beta


Many thanks for your fast implementation, Hans.

I’m afraid it is not implemented for bookmarks.

 \mainlanguage[es]
 \setupinteraction[state=start]
 \placebookmarks[section]
 \definestructureconversionset[sectionnumbers]
 [0,n,characters][n]
 \setupheads[sectionconversionset=sectionnumbers]
 \starttext
 \dorecurse{20}{\section{section}}
 \stoptext


you can try spanishnumerals


Many thanks again for your help,


Pablo




--

-
  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] enumeration with the Spanish alphabet

2014-11-12 Thread Wolfgang Schuster

 Am 12.11.2014 um 18:18 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/12/2014 4:23 PM, Pablo Rodriguez wrote:
 On 11/12/2014 01:38 AM, Hans Hagen wrote:
 On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
 [...]
 Instead of changing the default letter series, how about adding the ñ
 (or Ñ) after n and before o (or after N and before O) in a new
 enumeration series named ñ (and Ñ).
 
 in next beta
 
 Many thanks for your fast implementation, Hans.
 
 I’m afraid it is not implemented for bookmarks.
 
 \mainlanguage[es]
 \setupinteraction[state=start]
 \placebookmarks[section]
 \definestructureconversionset[sectionnumbers]
 [0,n,characters][n]
 \setupheads[sectionconversionset=sectionnumbers]
 \starttext
 \dorecurse{20}{\section{section}}
 \stoptext
 
 you can try spanishnumerals

This won’t work unless you change (are you serious with these names)

\defineconversion [ñ][\spanishnumerals]
\defineconversion [Ñ][\Spanishnumerals]

to

\defineconversion [spanishnumerals]  [\spanishnumerals]
\defineconversion [Spanishnumerals]  [\Spanishnumerals]


What’s missing as well are these two definitions in core-con.miv

\def\spanishnumerals   #1{\ctxcommand{alphabetic(\number#1,spanish)}}
\def\Spanishnumerals   #1{\ctxcommand{Alphabetic(\number#1,spanish)}}

and the following line in core-con.la

counters['spanishnumerals']  = counters['spanish']


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] enumeration with the Spanish alphabet

2014-11-12 Thread Pablo Rodriguez
On 11/12/2014 06:18 PM, Hans Hagen wrote:
 On 11/12/2014 4:23 PM, Pablo Rodriguez wrote:
 On 11/12/2014 01:38 AM, Hans Hagen wrote:
 On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
 [...]
 Instead of changing the default letter series, how about adding the ñ
 (or Ñ) after n and before o (or after N and before O) in a new
 enumeration series named ñ (and Ñ).

 in next beta

 I’m afraid it is not implemented for bookmarks.
 
 you can try spanishnumerals

I don’t know whether this is related to what Wolfgang reported, but
using latest beta (2014.11.12 18:16) bookmark numbering doesn’t seem to
work at all:

\setupinteraction[state=start]
\definestructureconversionset[sectionnumbers]
[R,n,a][n]
\setupheads[sectionconversionset=sectionnumbers]
\placebookmarks[all]
\starttext
\part{part}
\chapter{chapter}
\section{section}
\stoptext

Am I missing something or is this a bug?


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-12 Thread Pablo Rodriguez
On 11/12/2014 07:00 PM, Pablo Rodriguez wrote:
 I don’t know whether this is related to what Wolfgang reported, but
 using latest beta (2014.11.12 18:16) bookmark numbering doesn’t seem to
 work at all:
 
 \setupinteraction[state=start]
 \definestructureconversionset[sectionnumbers]
 [R,n,a][n]
 \setupheads[sectionconversionset=sectionnumbers]
 \placebookmarks[all]
 \starttext
 \part{part}
 \chapter{chapter}
 \section{section}
 \stoptext

I noticed that I misplaced \placebookmarks.

Sorry for the mistake,


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-12 Thread Pablo Rodriguez
On 11/12/2014 06:40 PM, Wolfgang Schuster wrote:
 Am 12.11.2014 um 18:18 schrieb Hans Hagen:

 you can try spanishnumerals
 
 This won’t work unless you change (are you serious with these names)

Many thanks for your reply, Wolfgang.

Spanish and spanish seems to work. The same rules for Slovenian and
slovenian.

The issue is that for both Slovenian and Spanish have titles numbered
with their own alphabets, but bookmarks appear in the common
international alphabet. I’m afraid this may be inconsistent.

\mainlanguage[sl]
\setupinteraction[state=start]
\placebookmarks[section]
\definestructureconversionset[sectionnumbers]
[0,n,a][n]
\setupheads[sectionconversionset=sectionnumbers]
\setuplist[section][alternative=d]
\starttext
\placelist[section][criterium=all]
\dorecurse{20}{\section{section}}

\es\setupheadnumber[section][0]
\dorecurse{20}{\section{section}}
\stoptext

Hans, how about enabling the Slovenian/Spanish numbering by default (in
A/a or Characters) and leaving the international alphabet when
specifically requested (with alphabetic)?

This would be also consistent with ennumeration in lists.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] enumeration with the Spanish alphabet

2014-11-12 Thread Hans Hagen

On 11/12/2014 6:40 PM, Wolfgang Schuster wrote:



Am 12.11.2014 um 18:18 schrieb Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl:

On 11/12/2014 4:23 PM, Pablo Rodriguez wrote:

On 11/12/2014 01:38 AM, Hans Hagen wrote:

On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:

[...]
Instead of changing the default letter series, how about adding the ñ
(or Ñ) after n and before o (or after N and before O) in a new
enumeration series named ñ (and Ñ).


in next beta


Many thanks for your fast implementation, Hans.

I’m afraid it is not implemented for bookmarks.

\mainlanguage[es]
\setupinteraction[state=start]
\placebookmarks[section]
\definestructureconversionset[sectionnumbers]
[0,n,characters][n]
\setupheads[sectionconversionset=sectionnumbers]
\starttext
\dorecurse{20}{\section{section}}
\stoptext


you can try spanishnumerals


This won’t work unless you change (are you serious with these names)

\defineconversion [ñ][\spanishnumerals]
\defineconversion [Ñ][\Spanishnumerals]



well, kind of a joke these names ... fo rtesting .. i'll comment them


to

\defineconversion [spanishnumerals]  [\spanishnumerals]

\defineconversion [Spanishnumerals]  [\Spanishnumerals]



ah, it should be spanishcharacters



What’s missing as well are these two definitions in core-con.miv

\def\spanishnumerals   #1{\ctxcommand{alphabetic(\number#1,spanish)}}

\def\Spanishnumerals   #1{\ctxcommand{Alphabetic(\number#1,spanish)}}


as we have already

\def\spanishcharacters  #1{\ctxcommand{alphabetic(\number#1,es)}}
\def\spanishCharacters  #1{\ctxcommand{Alphabetic(\number#1,es)}}


and the following line in core-con.la

counters['spanishnumerals']  = counters['spanish']


before we do that ... are we going to use 'numerals' or 'characters' for 
it ... I just copied some slovenian .. okay, I'll go for numerals in the 
next upload


bookmarks will work also then

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] enumeration with the Spanish alphabet

2014-11-11 Thread Hans Hagen

On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:

Hans,

enumerating using the Spanish alphabet lacks a letter between n and o,
the ñ.

Here is the small sample that shows the missing letter:

\mainlanguage[es]
\starttext
\startitemize[a]
\dorecurse{30}{\item \recurselevel}
\stopitemize
\stoptext

Instead of changing the default letter series, how about adding the ñ
(or Ñ) after n and before o (or after N and before O) in a new
enumeration series named ñ (and Ñ).

This is the correct way to enumerate with letters in Spanish (and this
is used in legislation, such as in
https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49).

Many thanks for your help,


see core-con.lua ... we can add a spanish number sequence there ... and 
also some entries in core-con.mkiv ... (look at slovenian for instance)


then send me patches

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] enumeration with the Spanish alphabet

2014-11-11 Thread Pablo Rodriguez
On 11/11/2014 07:25 PM, Hans Hagen wrote:
 On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
 Hans,

 enumerating using the Spanish alphabet lacks a letter between n and o,
 the ñ.
 [...]
 
 see core-con.lua ... we can add a spanish number sequence there ... and 
 also some entries in core-con.mkiv ... (look at slovenian for instance)
 
 then send me patches

I replicated the two Slovenian ocurrences and adapted it to the Spanish
language. (I also corrected a typo.)


Pablo
-- 
http://www.ousia.tk
--- ctxbase/core-con.lua	2014-09-10 23:13:00.0 +0200
+++ core-con.lua	2014-11-11 21:20:07.704095640 +0100
@@ -60,6 +60,14 @@
 0x006F, 0x0070, 0x0072, 0x0073, 0x0161,
 0x0074, 0x0075, 0x0076, 0x007A, 0x017E
 },
+['spanish'] = {
+0x0061, 0x0062, 0x0063, 0x0064, 0x0065,
+0x0066, 0x0067, 0x0068, 0x0069, 0x006A,
+0x006B, 0x006C, 0x006D, 0x006E, 0x00F1,
+0x006F, 0x0070, 0x0071, 0x0072, 0x0073,
+0x0074, 0x0075, 0x0076, 0x0077, 0x0078,
+0x0079, 0x007A
+},
 ['greek'] = { -- this should be the lowercase table
  -- 0x0391, 0x0392, 0x0393, 0x0394, 0x0395,
  -- 0x0396, 0x0397, 0x0398, 0x0399, 0x039A,
@@ -131,6 +139,7 @@
 counters['gr']   = counters['greek']
 counters['g']= counters['greek']
 counters['sl']   = counters['slovenian']
+counters['es']   = counters['spanish']
 counters['kr']   = counters['korean']
 counters['kr-p'] = counters['korean-parent']
 counters['kr-c'] = counters['korean-circle']
@@ -893,7 +902,7 @@
   [900] = novecientos,
  [1000] = mil,
[1000^2] = millón,
-   [1000^3] = mil millónes,
+   [1000^3] = mil millones,
[1000^4] = billón,
 }
 
___
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] enumeration with the Spanish alphabet

2014-11-11 Thread Hans Hagen

On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:

Hans,

enumerating using the Spanish alphabet lacks a letter between n and o,
the ñ.

Here is the small sample that shows the missing letter:

\mainlanguage[es]
\starttext
\startitemize[a]
\dorecurse{30}{\item \recurselevel}
\stopitemize
\stoptext

Instead of changing the default letter series, how about adding the ñ
(or Ñ) after n and before o (or after N and before O) in a new
enumeration series named ñ (and Ñ).

This is the correct way to enumerate with letters in Spanish (and this
is used in legislation, such as in
https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49).


in next beta

\mainlanguage[es]

\startitemize[a] % spanish conversion
\dorecurse{30}{\item \recurselevel}
\stopitemize

\startitemize[alphabetic] % default conversioon
\dorecurse{30}{\item \recurselevel}
\stopitemize

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] Enumeration counter way bychapter

2012-03-12 Thread Stefan Müller
Hi!

This works now with 201200310 13:15 MkIV.  I have a deadline in less than a 
week, thank you SO much for fixing this!

You rock,
Stefan


On Thu, 08 Mar 2012 10:10:49 +0100, Stefan Müller wrote:
 Hi list,
 
 I tried the example below again with 2012003005 19:49 MkIV and it still
 shows 2.2 instead of 2.1 in the second enumeration.  I am in desperate
 need for a fix for this.  Did the interface change or is this broken?
 
 Thanks in advance for looking into this,
 Stefan
 
 
 
 On Sun, 26 Feb 2012 14:13:59 +0100, Stefan Müller wrote:
  Hi list,
  
  in the following example, I want the enumerations to be numbered as 1.1
  and 2.1, respectively.  What am I doing wrong?  Using MkIV 201200221
 14:02.
  
  \defineenumeration[myenum][way=bychapter, prefix=chapter]
  
  \starttext
  
  \chapter{Chapter}
  
  \startmyenum
  enum
  \stopmyenum
  
  \chapter{Chapter}
  
  \startmyenum
  enum
  \stopmyenum
  
  \stoptext
  
  Thanks for any advice!
  
  Stefan
 -- 
 Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
 belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
 ___
 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
 ___

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] enumeration numbering in the margin, title in body text

2012-03-10 Thread Tobias Columbus
On Fri, Mar 09, 2012 at 07:05:55PM +0100, Wolfgang Schuster wrote:
 
 Am 08.03.2012 um 11:49 schrieb Tobias Columbus:
 
  Hi all,
  
  I am new to ConTeXt and asked myself if it is possible to have only
  the number of an enumeration in the margin and the title in `serried`
  position. Here is an example of what I think:
  
  margin  | text
  ---
 | blah blah
 | blah blah
  1.1| Definition (something): blah
 |
  1.2| Lemma: blah
  
  After digging a while in the documentation and code, I came to the
  conclusion that this is currently not possible. 
  Then I tried some fiddling in the context code and this directly leads
  to my second question: I modified the file strc-des.mkiv.
  However, the changes seem to be ignored by my context binary. What 
  did I do wrong? I also tried context --generate, but that also did not i
  make context aware of my changes.
 
 
 You can use the annotation module:
 
 \usemodule[annotation]
 
 \define[2]\EnumerationCommand
   {\inleft[scope=local,style=normal]{\placeannotationnumber}%

 \placeannotationtext\doifsomething{\placeannotationtitle}{\space(\placeannotationtitle)}:\space
\placeannotationcontent}
 
 \defineannotation[definition][text=Definition,alternative=command,command=\EnumerationCommand,prefixstopper=.]
 \defineannotation[lemma][definition][text=Lemma,counter=definition]
 
 \starttext
 
 \chapter{Test}
 
 blah blah
 blah blah
 
 \definition[title=something]{blah}
 
 \lemma{blah}
 
 \stoptext
 
 Wolfgang

Hi,

The annotation module works perfect. This is exactly what I thought
of. 

Thanks! 
Tobias

 ___
 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] enumeration numbering in the margin, title in body text

2012-03-09 Thread Wolfgang Schuster

Am 08.03.2012 um 11:49 schrieb Tobias Columbus:

 Hi all,
 
 I am new to ConTeXt and asked myself if it is possible to have only
 the number of an enumeration in the margin and the title in `serried`
 position. Here is an example of what I think:
 
 margin  | text
 ---
| blah blah
| blah blah
 1.1| Definition (something): blah
|
 1.2| Lemma: blah
 
 After digging a while in the documentation and code, I came to the
 conclusion that this is currently not possible. 
 Then I tried some fiddling in the context code and this directly leads
 to my second question: I modified the file strc-des.mkiv.
 However, the changes seem to be ignored by my context binary. What 
 did I do wrong? I also tried context --generate, but that also did not i
 make context aware of my changes.


You can use the annotation module:

\usemodule[annotation]

\define[2]\EnumerationCommand
  {\inleft[scope=local,style=normal]{\placeannotationnumber}%
   
\placeannotationtext\doifsomething{\placeannotationtitle}{\space(\placeannotationtitle)}:\space
   \placeannotationcontent}

\defineannotation[definition][text=Definition,alternative=command,command=\EnumerationCommand,prefixstopper=.]
\defineannotation[lemma][definition][text=Lemma,counter=definition]

\starttext

\chapter{Test}

blah blah
blah blah

\definition[title=something]{blah}

\lemma{blah}

\stoptext

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] Enumeration counter way bychapter

2012-03-08 Thread Stefan Müller
Hi list,

I tried the example below again with 2012003005 19:49 MkIV and it still shows 
2.2 instead of 2.1 in the second enumeration.  I am in desperate need for a 
fix for this.  Did the interface change or is this broken?

Thanks in advance for looking into this,
Stefan



On Sun, 26 Feb 2012 14:13:59 +0100, Stefan Müller wrote:
 Hi list,
 
 in the following example, I want the enumerations to be numbered as 1.1
 and 2.1, respectively.  What am I doing wrong?  Using MkIV 201200221 14:02.
 
 \defineenumeration[myenum][way=bychapter, prefix=chapter]
 
 \starttext
 
 \chapter{Chapter}
 
 \startmyenum
   enum
 \stopmyenum
 
 \chapter{Chapter}
 
 \startmyenum
   enum
 \stopmyenum
 
 \stoptext
 
 Thanks for any advice!
 
 Stefan
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] enumeration numbering in the margin, title in body text

2012-03-08 Thread Marco
On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote:

 I am  new to ConTeXt  and asked myself if  it is possible  to have
 only the number  of an enumeration in the margin  and the title in
 `serried` position.

\setupitemize [inmargin]

 Then I tried  some fiddling in the context code  and this directly
 leads to  my second question:  I modified the  file strc-des.mkiv.
 However, the changes seem to be ignored by my context binary. What
 did I do wrong? I also tried context --generate, but that also did
 not i make context aware of my changes.

You have to recreate the format as well:

context --generate  context --make


Regards

Marco


___
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] enumeration numbering in the margin, title in body text

2012-03-08 Thread Wolfgang Schuster

Am 08.03.2012 um 12:10 schrieb Marco:

 On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote:
 
 I am  new to ConTeXt  and asked myself if  it is possible  to have
 only the number  of an enumeration in the margin  and the title in
 `serried` position.
 
 \setupitemize [inmargin]
 
 Then I tried  some fiddling in the context code  and this directly
 leads to  my second question:  I modified the  file strc-des.mkiv.

The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or 
strc-des.mkiv in older
versions) is for the description code.

 However, the changes seem to be ignored by my context binary. What
 did I do wrong? I also tried context --generate, but that also did
 not i make context aware of my changes.
 
 You have to recreate the format as well:
 
 context --generate  context --make

You need “context --generate” only when you add new files.

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] enumeration numbering in the margin, title in body text

2012-03-08 Thread Aditya Mahajan

On Thu, 8 Mar 2012, Wolfgang Schuster wrote:



Am 08.03.2012 um 12:10 schrieb Marco:


On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote:


I am  new to ConTeXt  and asked myself if  it is possible  to have
only the number  of an enumeration in the margin  and the title in
`serried` position.


\setupitemize [inmargin]


Then I tried  some fiddling in the context code  and this directly
leads to  my second question:  I modified the  file strc-des.mkiv.


The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or 
strc-des.mkiv in older
versions) is for the description code.


@Wolfgang: You are mixing enumeration and item groups. The new enumeration 
code is in strc-enu.mkvi.


@Tobias: You can try playing around with titlecommand and numbercommand 
parameters.


Aditya
___
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] enumeration numbering in the margin, title in body text

2012-03-08 Thread Wolfgang Schuster

Am 08.03.2012 um 20:50 schrieb Aditya Mahajan:

 On Thu, 8 Mar 2012, Wolfgang Schuster wrote:
 
 
 Am 08.03.2012 um 12:10 schrieb Marco:
 
 On 2012-03-08 Tobias Columbus tobias.colum...@googlemail.com wrote:
 
 I am  new to ConTeXt  and asked myself if  it is possible  to have
 only the number  of an enumeration in the margin  and the title in
 `serried` position.
 
 \setupitemize [inmargin]
 
 Then I tried  some fiddling in the context code  and this directly
 leads to  my second question:  I modified the  file strc-des.mkiv.
 
 The enumeration code is in strc-itm.mkvi, the file strc-des.mkvi (or 
 strc-des.mkiv in older
 versions) is for the description code.
 
 @Wolfgang: You are mixing enumeration and item groups. The new enumeration 
 code is in strc-enu.mkvi.

D’oh!

 @Tobias: You can try playing around with titlecommand and numbercommand 
 parameters.

Or simply use inmargin or leftmargin for the alternative key.

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] Enumeration Label

2012-01-19 Thread Mikael P. Sundqvist
On Thu, Jan 19, 2012 at 9:09 PM, Troy Henderson thend...@gmail.com wrote:
 The labeling for first level enumerations using

 \startitemize[n]
   \item Foo
   \item Bar
 \stopitemize

 yields

 1. Foo
 2. Bar

 What is the preferred method for changing enumeration symbols from 1.
 and 2. to 1) and 2), respectively?  I also want to be able to do
 something similar for second, third, and fourth level enumerations.

 Thanks,

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

Dear Troy,

maybe

\startitemize[n][stopper={},right={)}]
\item Foo
\item Bar
\stopitemize

does what you want?

Best regards, Mikael
___
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] Enumeration in mkiv

2011-12-09 Thread Hans Hagen

On 7-12-2011 21:17, Otared Kavian wrote:

Dear Hans,

In transferring some stuff from mkii to mkiv, I noticed a change in the way 
mkiv puts too much distance between the title of an enumeration and the text 
following it. I am not sure whether I have noticed this before, but my feeling 
is that the change is somewhat recent. I have put the result of the source 
below here,
http://dl.dropbox.com/u/4316076/enumeration-mkii.pdf
and
http://dl.dropbox.com/u/4316076/enumeration-mkiv.pdf

I think the correct behaviour is the one with mkii.


Add

  width=fit

could be made default for hanging:

\unprotect
\setupdescriptions[\c!width:\v!hanging=\v!fit]
\protect

but I'm not so sure about that

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] enumeration counters, way=bysection

2010-11-25 Thread Wolfgang Schuster

Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov:

 The following used to work about a month or two ago.
 
 \setupenumerations[way=bysection]
 \newcounter\theorems
 \defineenumeration[thm]
 [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems]
 \defineenumeration[lem]
 [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems]

\newcounter has nothing to do with enumeration counter the counter key expects
the name from another enumeration, e.g. „thm“

\defineenumeration[thm][text=Theorem,prefix=yes,prefixsegments=section]
\defineenumeration[lem][text=Lemma,  
prefix=yes,prefixsegments=section,counter=thm]

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] enumeration counters, way=bysection

2010-11-25 Thread Yury G. Kudryashov
Wolfgang Schuster wrote:

 
 Am 25.11.2010 um 09:54 schrieb Yury G. Kudryashov:
 
 The following used to work about a month or two ago.
 
 \setupenumerations[way=bysection]
 \newcounter\theorems
 \defineenumeration[thm]
 [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems]
 \defineenumeration[lem]
 [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems]
 
 \newcounter has nothing to do with enumeration counter the counter key
 expects the name from another enumeration, e.g. „thm“
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] Enumeration

2010-04-18 Thread Taco Hoekwater

Antoine Cailliau wrote:

Hi all,

I'm working on my thesis and I need a mechanism very similar to float
and its reference/caption facilities except it can't be floating.

My problem is the following: I've boxes to display corresponding to
operators. They should be numbered (like figure, tables, etc.) and
having a list is a plus and I should be able to do \about[myoperator] to
display the name of the operator.

I tried to declare a float and it works perfectly, except it is floating
and do not respect the flow I would like to have. 


I tried enumeration but I can't do \about and I really need it.

What is the best way to have such a behavior ?


  \placetable[force][reference]{caption}{some float}

I am not sure whether you can feed 'force' into

  \setupfloat[location=force]

but you could try that also.

Best wishes,
Taco

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

2010-04-18 Thread Wolfgang Schuster

Am 17.04.10 15:27, schrieb Antoine Cailliau:

Hi all,

I'm working on my thesis and I need a mechanism very similar to float
and its reference/caption facilities except it can't be floating.

My problem is the following: I've boxes to display corresponding to
operators. They should be numbered (like figure, tables, etc.) and
having a list is a plus and I should be able to do \about[myoperator] to
display the name of the operator.

I tried to declare a float and it works perfectly, except it is floating
and do not respect the flow I would like to have.

I tried enumeration but I can't do \about and I really need it.
   

\setupinteraction[state=start]
\defineenumeration[test][title=yes]
\starttext
text \about[test] text
\page
\starttest[test]{knuth} \input knuth\par \stoptest
\stoptext

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] Enumeration

2010-04-18 Thread Antoine Cailliau
Hi,

Thanks a lot, this is exactly what I was looking for.

Is there a way to edit the style of the title, like with caption ? Where
is it documented (If any) ?

Thanks in advance,

Antoine

On Sun, 2010-04-18 at 09:15 +0200, Wolfgang Schuster wrote:
 Am 17.04.10 15:27, schrieb Antoine Cailliau:
  Hi all,
 
  I'm working on my thesis and I need a mechanism very similar to float
  and its reference/caption facilities except it can't be floating.
 
  My problem is the following: I've boxes to display corresponding to
  operators. They should be numbered (like figure, tables, etc.) and
  having a list is a plus and I should be able to do \about[myoperator] to
  display the name of the operator.
 
  I tried to declare a float and it works perfectly, except it is floating
  and do not respect the flow I would like to have.
 
  I tried enumeration but I can't do \about and I really need it.
 
 \setupinteraction[state=start]
 \defineenumeration[test][title=yes]
 \starttext
 text \about[test] text
 \page
 \starttest[test]{knuth} \input knuth\par \stoptest
 \stoptext
 
 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
 ___
-- 
Antoine Cailliau
www.ac-graphic.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] Enumeration

2010-04-18 Thread Antoine Cailliau
Ok, I read definition files and I found what I was looking for.

For the archive of the ML:
headstyle, headcolor, titlestyle, titlecolor, titleleft, titleright and text.

Cheers,

Antoine

On 18 April 2010 10:36, Antoine Cailliau antoinecaill...@gmail.com wrote:
 Hi,

 Thanks a lot, this is exactly what I was looking for.

 Is there a way to edit the style of the title, like with caption ? Where
 is it documented (If any) ?

 Thanks in advance,

 Antoine

 On Sun, 2010-04-18 at 09:15 +0200, Wolfgang Schuster wrote:
 Am 17.04.10 15:27, schrieb Antoine Cailliau:
  Hi all,
 
  I'm working on my thesis and I need a mechanism very similar to float
  and its reference/caption facilities except it can't be floating.
 
  My problem is the following: I've boxes to display corresponding to
  operators. They should be numbered (like figure, tables, etc.) and
  having a list is a plus and I should be able to do \about[myoperator] to
  display the name of the operator.
 
  I tried to declare a float and it works perfectly, except it is floating
  and do not respect the flow I would like to have.
 
  I tried enumeration but I can't do \about and I really need it.
 
 \setupinteraction[state=start]
 \defineenumeration[test][title=yes]
 \starttext
 text \about[test] text
 \page
 \starttest[test]{knuth} \input knuth\par \stoptest
 \stoptext

 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
 ___
 --
 Antoine Cailliau
 www.ac-graphic.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] Enumeration

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 10:53, schrieb Antoine Cailliau:

Ok, I read definition files and I found what I was looking for.

For the archive of the ML:
headstyle, headcolor, titlestyle, titlecolor, titleleft, titleright and text.
   

It well help more when you send a minimal example of your setup.

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] Enumeration bug

2009-10-12 Thread luigi scarso
On Sun, Oct 11, 2009 at 4:10 PM, Willi Egger w.eg...@boede.nl wrote:
 Hi all,

 There might be a bug in the enumeration environment. First the enumeration
 definition contains the option location=top.
 When an enumeration item is started while there is already a figure placed
 left, then the  enumeration tag shows up as expected, however the text of
 the enumeration item starts at the left border of the text area.

 If the option location is set to location=left, then in the same condition
 as above, the enumeration tag shows up to the right of the enumeration text
 and if the text is long, the tag is also overwritten.

 I tested this with the version of Context of 2009-10-02.

 For testing please refer to the attached file.
yes, it looks strange even to me -- but I'm not very confident with \placefigure

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


Re: [NTG-context] Enumeration after section heading in margin

2008-10-14 Thread Alexandros Frantzis
On Fri, Oct 10, 2008 at 10:41:30AM +0300, Alexandros Frantzis wrote:
 Hello,
 I am trying to use ConTeXt to create my CV. I have succesfully placed the
 subject headings in the margin by using:
 
 \setuphead
[subject]
[alternative=text,distance=0pt,command=\MyHead]
 
 \def\MyHead#1#2{\inmargin{#1 #2}}
 
 When the text that follows the heading is a simple paragraph everything
 works as expected:
 
 Subject Text Text...
 Text Text...
 
 However when the first thing after the heading is an enumeration (or a
 table, for that matter) the enumeration is not aligned with the heading
 (it's lower than the heading):
 
 Subject
 * Item1
 * Item2 
 
 
 I have tried to remove whitespace around the enumeration with the
 'nowhite,joinedup' options but it is still not aligned.
 
 Is there a way to align the enumeration (and other non-inline objects)
 with the heading?

Any thoughts on this? I have tried examining the source to find why the
extra vertical space exists and how I can suppress it but I am still stuck...

A minimal example that shows the issue is:

START CODE-
\def\mysubject#1#2{\inmargin{#1#2}}
\setuphead[subject][alternative=text,
after=,
command=\mysubject,
distance=0pt,
textstyle=\ss]

\starttext

\subject{Subject1}

This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.

\subject{Subject2}

\startitemize[packed,nowhite,joinedup]
\item First item
\item Second item
\item Third item
\stopitemize

\stoptext
--END CODE

Thanks,
Alexandros
___
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] Enumeration after section heading in margin

2008-10-13 Thread Alexandros Frantzis
 Hello,
 I am trying to use ConTeXt to create my CV. I have succesfully placed the
 subject headings in the margin by using:
 
 \setuphead
[subject]
[alternative=text,distance=0pt,command=\MyHead]
 
 \def\MyHead#1#2{\inmargin{#1 #2}}
 
 When the text that follows the heading is a simple paragraph everything
 works as expected:
 
 Subject Text Text...
 Text Text...
 
 However when the first thing after the heading is an enumeration (or a
 table, for that matter) the enumeration is not aligned with the heading
 (it's lower than the heading):
 
 Subject
 * Item1
 * Item2 
 
 
 I have tried to remove whitespace around the enumeration with the
 'nowhite,joinedup' options but it is still not aligned.
 
 Is there a way to align the enumeration (and other non-inline objects)
 with the heading?

Any thoughts on this? I have tried examining the source to find why the
extra vertical space exists and how I can suppress it but I am still stuck...

A minimal example that shows the issue is:

START CODE-
\def\mysubject#1#2{\inmargin{#1#2}}
\setuphead[subject][alternative=text,
after=,
command=\mysubject,
distance=0pt,
textstyle=\ss]

\starttext

\subject{Subject1}

This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.
This is the text of subject1.

\subject{Subject2}

\startitemize[packed,nowhite,joinedup]
\item First item
\item Second item
\item Third item
\stopitemize

\stoptext
--END CODE

Thanks,
Alexandros
___
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] Enumeration numbering broken

2005-07-20 Thread Hans Hagen

David Antos wrote:


On Thu, Jul 14, 2005 at 11:11:42AM +0200, Taco Hoekwater wrote:
 


in the following example, I'm pretty sure that it should produce Lemmas and
Theorems numbered continuously (i.e., one common counter for both of them)
 


There has been a rather large set of changes to code core-des.tex
for the 2005.05.25 release, and that seems the likely cause of this
change. I do not understand this bit of ConTeXt good enough to come
up with a patch, sorry.
   



Hello,

yes, I've upgraded from an older release (something like 2005.01.xx) and it
worked before.

Hans, could you please have a look?
 

i found the cause ... (quick hack for your doc: set way=bychapter for both); when i cleaned up the code i let numbers inherit in the wrong way 

btw what exactly was you problem with inbetween? 

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


Re: [NTG-context] Enumeration numbering broken

2005-07-20 Thread David Antos
On Wed, Jul 20, 2005 at 09:49:54PM +0200, Hans Hagen wrote:
 i found the cause ... (quick hack for your doc: set way=bychapter for 
 both); when i cleaned up the code i let numbers inherit in the wrong way 
 btw what exactly was you problem with inbetween? 

Hello,

no problem with inbetween; the inbetween setting was necessary just because
I used paragraph indents (and no vertical space) and I wanted the Theorems
to be

Theorem x.y
No indent is here

and not

Theorem x.y
   Paragraph indent here
looks really ugly

So my example was small, but not really minimal :-)

Thanks,
D.A.

-- 
Jim Hacker: You are the Cabinet Secretary. You must insist that we get
papers circulated earlier.
Sir Humphrey: Alas, there are grave problems about circulating papers
before they are written.
-- Yes, Prime Minister
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Enumeration numbering broken

2005-07-14 Thread Taco Hoekwater



David Antos wrote:

Hello,

in the following example, I'm pretty sure that it should produce Lemmas and
Theorems numbered continuously (i.e., one common counter for both of them)
and moreover, the numbers should (due to bychapter) be preceded by chapter
number. In ConTeXt 2005.06.27, the enumerations are counted separately and
chapter number prefix is missing.

Interestingly, if Lemma and Theorem blocks are swapped, they become really
Theorem 1 and Lemma 2. The chapter number is still missing.

Has the mechanism been changed or am I doing anything wrong?


I believe your example is right, and that there is a bug/unintended 
functionality change.


There has been a rather large set of changes to code core-des.tex
for the 2005.05.25 release, and that seems the likely cause of this
change. I do not understand this bit of ConTeXt good enough to come
up with a patch, sorry.

Taco

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


Re: [NTG-context] Enumeration numbering broken

2005-07-14 Thread David Antos
On Thu, Jul 14, 2005 at 11:11:42AM +0200, Taco Hoekwater wrote:
 in the following example, I'm pretty sure that it should produce Lemmas and
 Theorems numbered continuously (i.e., one common counter for both of them)
 There has been a rather large set of changes to code core-des.tex
 for the 2005.05.25 release, and that seems the likely cause of this
 change. I do not understand this bit of ConTeXt good enough to come
 up with a patch, sorry.

Hello,

yes, I've upgraded from an older release (something like 2005.01.xx) and it
worked before.

Hans, could you please have a look?

Thanks,
D.A.

-- 
Trust no man, not even your brother
With hair one colour and beard another
-- Ty Semaka (The Plaid Tongued Devils): never drown a cat
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context