Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Pablo Rodriguez
On 4/11/20 2:53 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 11.04.2020 um 13:54:
>> [...]
>> I really need that, since the document I’m composing needs chapter and
>> part page numbering independent from the whole document page numbering.
>>
>> Am I missing something or have I hit a bug?
>
> You can show the realpage value but there is no proper interface setting
> (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think
> it's better to do this.

Many thanks for your reply, Wolfgang.

In that case, which would be the way to get the realpage value?

Or is there any way to get a page counter that can be restarted, as
userpage is? (I already use subpage for other purposes.)

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


Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 11.04.2020 um 13:54:

Dear list,

here you have the following sample:

 \setuppapersize[A6]
 \setupuserpagenumber[way=chapter]
 \starttext
 \placelist[chapter][counter=realpage]
 \dorecurse{5}{\chapter{Chapter}}
 \stoptext

Why doesn’t \placelist[chapter] use the realpage counter?

According to i-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).


While \setuplist inherits values from \setupcounter doesn't mean it 
supports all of them and keys like "counter" work only when you create a 
new instance which uses the counter of another instance, e.g. you create 
two enumerations but both of them share one counter.


Another problem is that you assume counter refers to the page value 
while it would make more sense to link it to the section value (or float 
number for figures or tables).



I really need that, since the document I’m composing needs chapter and
part page numbering independent from the whole document page numbering.

Am I missing something or have I hit a bug?


You can show the realpage value but there is no proper interface setting 
(e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think 
it's better to do this.


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
___


[NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Pablo Rodriguez
Dear list,

here you have the following sample:

\setuppapersize[A6]
\setupuserpagenumber[way=chapter]
\starttext
\placelist[chapter][counter=realpage]
\dorecurse{5}{\chapter{Chapter}}
\stoptext

Why doesn’t \placelist[chapter] use the realpage counter?

According to i-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).

I really need that, since the document I’m composing needs chapter and
part page numbering independent from the whole document page numbering.

Am I missing something or have I hit a bug?

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


Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Pablo Rodriguez
On 3/16/20 7:00 PM, Wolfgang Schuster wrote:
> [...]
> A way to fix the wrong spacing here is to add a strut option to
> \setuplist (or use always the upright font to set the strut values).

Any of these ones would be great to avoid the corner cases.

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


Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Wolfgang Schuster

Hans Hagen schrieb am 16.03.2020 um 18:42:

On 3/16/2020 6:01 PM, Wolfgang Schuster wrote:

Henning Hraban Ramm schrieb am 16.03.2020 um 15:42:




Am 2020-03-16 um 14:35 schrieb Hans Hagen :
Yes, pagella is a extreme case but when you use bold text the 
vertical spacing is also messed up. You can avoid this when you use 
a fixed lineheight (e.g. \setupinterlinespace[line=14pt]) because 
the default distance is font dependant (default: 2.8 * ex-height).

or one can play with these parameters, that default to:

\setupinterlinespace
  [height=.72,
   depth=.28]

(maybe we should have recomended values for specific fonts)


I had similar problems in the past and got to
2.9ex for Alegreya
3.2ex for Adobe Jenson

(Just tried, didn’t calculate anything.)


How would this help for the original problem?
Some fonts have a different ratio (I forgot what font i did .7 / .3) but 
indeed an all-bold or whatever style change sometimes demands a local 
\setupinterlinespace (no argument).


I know there are cases where changing the height/depth ration can help 
but in this case the problem is caused by \strut which is bigger for the 
italic font.


A way to fix the wrong spacing here is to add a strut option to 
\setuplist (or use always the upright font to set the strut values).


Of course one could also tweak the ht/dp of a specific style using one 
of the pseudo features.


Also possible because the larger value for the ex-height of the italic 
font causes the bigger strut dimensions.


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] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Hans Hagen

On 3/16/2020 6:01 PM, Wolfgang Schuster wrote:

Henning Hraban Ramm schrieb am 16.03.2020 um 15:42:




Am 2020-03-16 um 14:35 schrieb Hans Hagen :
Yes, pagella is a extreme case but when you use bold text the 
vertical spacing is also messed up. You can avoid this when you use 
a fixed lineheight (e.g. \setupinterlinespace[line=14pt]) because 
the default distance is font dependant (default: 2.8 * ex-height).

or one can play with these parameters, that default to:

\setupinterlinespace
  [height=.72,
   depth=.28]

(maybe we should have recomended values for specific fonts)


I had similar problems in the past and got to
2.9ex for Alegreya
3.2ex for Adobe Jenson

(Just tried, didn’t calculate anything.)


How would this help for the original problem?
Some fonts have a different ratio (I forgot what font i did .7 / .3) but 
indeed an all-bold or whatever style change sometimes demands a local 
\setupinterlinespace (no argument).


Of course one could also tweak the ht/dp of a specific style using one 
of the pseudo features.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 16.03.2020 um 15:42:




Am 2020-03-16 um 14:35 schrieb Hans Hagen :

Yes, pagella is a extreme case but when you use bold text the vertical spacing 
is also messed up. You can avoid this when you use a fixed lineheight (e.g. 
\setupinterlinespace[line=14pt]) because the default distance is font dependant 
(default: 2.8 * ex-height).

or one can play with these parameters, that default to:

\setupinterlinespace
  [height=.72,
   depth=.28]

(maybe we should have recomended values for specific fonts)


I had similar problems in the past and got to
2.9ex for Alegreya
3.2ex for Adobe Jenson

(Just tried, didn’t calculate anything.)


How would this help for the original problem?

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] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Henning Hraban Ramm


> Am 2020-03-16 um 14:35 schrieb Hans Hagen :
>> Yes, pagella is a extreme case but when you use bold text the vertical 
>> spacing is also messed up. You can avoid this when you use a fixed 
>> lineheight (e.g. \setupinterlinespace[line=14pt]) because the default 
>> distance is font dependant (default: 2.8 * ex-height).
> or one can play with these parameters, that default to:
> 
> \setupinterlinespace
>  [height=.72,
>   depth=.28]
> 
> (maybe we should have recomended values for specific fonts)

I had similar problems in the past and got to
2.9ex for Alegreya
3.2ex for Adobe Jenson

(Just tried, didn’t calculate anything.)

All the best,
Hraban
___
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] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Hans Hagen

On 3/16/2020 1:27 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 16.03.2020 um 10:01:

On 3/15/20 10:56 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 15.03.2020 um 20:32:

[...]
Everthing is fine when italic fonts aren’t used.


It can be fixed with a strut option for lists, e.g.
\setuplist[strut=no]. The problem in this case is that the ex-height for
the italic font is larger than the ex-height for the upright font which
pushes the text down because add a strut at the begin and end of the
entries.


Many thanks for your reply, Wolfgang.

I don’t get \setuplist[strut=no] working in the minimal sample I sent
yesterday.


The key isn't supported yet but it could help to avoid the spacing problem.


Below is a minimal example of the problem, the \setstrut setting changes
the height of the strut for the italic font.


I must admit that I don’t understand how to handle struts (I’m not sure
I understand what they actually are.)


The simple answer is that a strut is a invisible vertical line with the 
height and depth of a line. When you look at the example below you can 
see the text in the first box touches the top and bottom boundaries.


When we add a strut at the begin and end of the text we ensure the last 
line has the depth of a normal line and the first line gets the complete 
height of a line.


 begin example
\starttext

\ruledvbox{\samplefile{weisman}}

\blank

\ruledvbox{\begstrut\samplefile{weisman}\endstrut}

\stoptext
 end example


Most fonts (I checked only a small number) don't have such a big
difference between the ex-height of the upright and italic styles which
makes it hard to notice the problem.


Yesterday I realized that Pagella was an extreme case, because I tried
to report this issue before, but Latin Modern didn’t show the issue (so
I thought I was doing something wrong).


Yes, pagella is a extreme case but when you use bold text the vertical 
spacing is also messed up. You can avoid this when you use a fixed 
lineheight (e.g. \setupinterlinespace[line=14pt]) because the default 
distance is font dependant (default: 2.8 * ex-height).

or one can play with these parameters, that default to:

\setupinterlinespace
  [height=.72,
   depth=.28]

(maybe we should have recomended values for specific fonts)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 16.03.2020 um 10:01:

On 3/15/20 10:56 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 15.03.2020 um 20:32:

[...]
Everthing is fine when italic fonts aren’t used.


It can be fixed with a strut option for lists, e.g.
\setuplist[strut=no]. The problem in this case is that the ex-height for
the italic font is larger than the ex-height for the upright font which
pushes the text down because add a strut at the begin and end of the
entries.


Many thanks for your reply, Wolfgang.

I don’t get \setuplist[strut=no] working in the minimal sample I sent
yesterday.


The key isn't supported yet but it could help to avoid the spacing problem.


Below is a minimal example of the problem, the \setstrut setting changes
the height of the strut for the italic font.


I must admit that I don’t understand how to handle struts (I’m not sure
I understand what they actually are.)


The simple answer is that a strut is a invisible vertical line with the 
height and depth of a line. When you look at the example below you can 
see the text in the first box touches the top and bottom boundaries.


When we add a strut at the begin and end of the text we ensure the last 
line has the depth of a normal line and the first line gets the complete 
height of a line.


 begin example
\starttext

\ruledvbox{\samplefile{weisman}}

\blank

\ruledvbox{\begstrut\samplefile{weisman}\endstrut}

\stoptext
 end example


Most fonts (I checked only a small number) don't have such a big
difference between the ex-height of the upright and italic styles which
makes it hard to notice the problem.


Yesterday I realized that Pagella was an extreme case, because I tried
to report this issue before, but Latin Modern didn’t show the issue (so
I thought I was doing something wrong).


Yes, pagella is a extreme case but when you use bold text the vertical 
spacing is also messed up. You can avoid this when you use a fixed 
lineheight (e.g. \setupinterlinespace[line=14pt]) because the default 
distance is font dependant (default: 2.8 * ex-height).


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] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Pablo Rodriguez
On 3/15/20 10:56 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 15.03.2020 um 20:32:
>> [...]
>> Everthing is fine when italic fonts aren’t used.
>
> It can be fixed with a strut option for lists, e.g.
> \setuplist[strut=no]. The problem in this case is that the ex-height for
> the italic font is larger than the ex-height for the upright font which
> pushes the text down because add a strut at the begin and end of the
> entries.

Many thanks for your reply, Wolfgang.

I don’t get \setuplist[strut=no] working in the minimal sample I sent
yesterday.

> Below is a minimal example of the problem, the \setstrut setting changes
> the height of the strut for the italic font.

I must admit that I don’t understand how to handle struts (I’m not sure
I understand what they actually are.)

> Most fonts (I checked only a small number) don't have such a big
> difference between the ex-height of the upright and italic styles which
> makes it hard to notice the problem.

Yesterday I realized that Pagella was an extreme case, because I tried
to report this issue before, but Latin Modern didn’t show the issue (so
I thought I was doing something wrong).

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


Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 15.03.2020 um 20:32:

Hi Hans,

here you have the sample:

 \setuppapersize[A6]
 \setupinteraction[state=start]
 \enabledirectives[references.border]

 \setupbodyfont[pagella]

 \starttext

 \placelist[section]
 [alternative=d,
  style=\it]

 \section{Section 1}
 \section{\dorecurse{25}{Section }3}
 \section{Section 3}
 \stoptext

For some strange reason (at least, to me), \placelist[alternative=d]
seems to misbehave when using \it or \bi as style.

Everthing is fine when italic fonts aren’t used.


It can be fixed with a strut option for lists, e.g. 
\setuplist[strut=no]. The problem in this case is that the ex-height for 
the italic font is larger than the ex-height for the upright font which 
pushes the text down because add a strut at the begin and end of the 
entries.


Below is a minimal example of the problem, the \setstrut setting changes 
the height of the strut for the italic font.


 begin example
\showstruts

\setupbodyfont[pagella]

\starttext

\dontleavehmode\it
\ruledhbox{\strut Section}
\ruledhbox{\setstrut\strut Section}

\stoptext
 end example

Most fonts (I checked only a small number) don't have such a big 
difference between the ex-height of the upright and italic styles which 
makes it hard to notice the problem.


 begin example
\define[1]\ShowExheight
  {\bgroup
   \setupbodyfont[#1]
   \subject{#1}
   \starttabulate
   \NC tf \NC \tf \the\exheight \NC\NR
   \NC it \NC \it \the\exheight \NC\NR
   \NC bf \NC \bf \the\exheight \NC\NR
   \NC bi \NC \bi \the\exheight \NC\NR
   \stoptabulate
   \egroup}

\starttext

\ShowExheight{pagella}
\ShowExheight{modern}
\ShowExheight{dejavu}
\ShowExheight{termes}

\stoptext
 end example

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
___


[NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Pablo Rodriguez
Hi Hans,

here you have the sample:

\setuppapersize[A6]
\setupinteraction[state=start]
\enabledirectives[references.border]

\setupbodyfont[pagella]

\starttext

\placelist[section]
[alternative=d,
 style=\it]

\section{Section 1}
\section{\dorecurse{25}{Section }3}
\section{Section 3}
\stoptext

For some strange reason (at least, to me), \placelist[alternative=d]
seems to misbehave when using \it or \bi as style.

Everthing is fine when italic fonts aren’t used.

I’m afraid I may be hitting a bug in both latest MkXL from 2020.03.10
14:52 and MkIV from 2019.07.24 11:31.

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


Re: [NTG-context] placelist not working in latest beta

2016-03-21 Thread Schmitz Thomas A.

> On 21 Mar 2016, at 15:28, Hans Hagen  wrote:
> 
> when playign with some new feature i commented too much
> 
> around line 722, uncomment:
> 
> \setuplistalternative
>  [\c!command=\strictlistparameter\c!command,
>   \c!symbol=.]
> 
> 

Done, and it works again! Thanks Hans!

Thomas
___
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] placelist not working in latest beta

2016-03-21 Thread Hans Hagen

On 3/21/2016 9:57 AM, Schmitz Thomas A. wrote:

Hi all,

example attached with output from latest beta and an older one. The \placelist 
command appears to have changed recently; the older beta I tested is from 
November, but this used to work in February as well, the change must be recent.


when playign with some new feature i commented too much

around line 722, uncomment:

\setuplistalternative
  [\c!command=\strictlistparameter\c!command,
   \c!symbol=.]




Thanks a lot

Thomas

\definelist[MyTopics][criterium=all]

\def\MyMark{}

\def\Topic%
   {\dosingleargument\doTopic}

\def\doTopic[#1]{%
   \gdef\MyMark{#1}%
   \writetolist[MyTopics][location=none]{#1}{}}

\define[3]\FancyEntry{%
   \doifelse{\rawstructurelistfirst}{\MyMark}%
 {\quad\color[red]{#1}\quad}
 {\quad #1\quad}}

\setuplist[MyTopics]
   [pagenumber=no,
alternative=command,
command=\FancyEntry]

\setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}]

\starttext

\Topic[First]
\contextversion

First Topic

\page

\Topic[Second]

Second Topic

\page

\Topic[Third]

Third Topic

\stoptext



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

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] placelist not working in latest beta

2016-03-21 Thread Schmitz Thomas A.
Hi all,

example attached with output from latest beta and an older one. The \placelist 
command appears to have changed recently; the older beta I tested is from 
November, but this used to work in February as well, the change must be recent.

Thanks a lot

Thomas

\definelist[MyTopics][criterium=all]

\def\MyMark{}

\def\Topic%
  {\dosingleargument\doTopic}

\def\doTopic[#1]{%
  \gdef\MyMark{#1}%
  \writetolist[MyTopics][location=none]{#1}{}}

\define[3]\FancyEntry{%
  \doifelse{\rawstructurelistfirst}{\MyMark}%
{\quad\color[red]{#1}\quad}
{\quad #1\quad}}

\setuplist[MyTopics]
  [pagenumber=no,
   alternative=command,
   command=\FancyEntry]

\setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}] 

\starttext

\Topic[First]
\contextversion

First Topic

\page

\Topic[Second]

Second Topic

\page

\Topic[Third]

Third Topic

\stoptext



2015_11_19.pdf
Description: Adobe PDF document


2016_03_13.pdf
Description: Adobe PDF document
___
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] something about the placelist

2012-10-24 Thread feng


hi!
	I am a newer. I am studying the context. I think the context is very  
good. I had study the latex in past years.


I have a question: there is a  null string line  above the \placelist, I  
don't want it.  who can help me?


\framed[background=frame_mp,frame=on,align=middle,width=80pt]{%
\blank[-12pt]
  \placelist
[section]
[alternative=d,
 maxwidth=\hsize,
 width=\hsize,
 maxwidth=75pt,
 offset=0pt,
 criterium=all, 
 align=meddle,
 style=\tfa]
}

thank you!

ps. I am a chinese, my english is poor.

--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

null string line
Description: Binary data
___
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] something about the placelist

2012-10-24 Thread Hans Hagen

On 24-10-2012 09:53, feng wrote:


hi!
 I am a newer. I am studying the context. I think the context is
very good. I had study the latex in past years.

I have a question: there is a  null string line  above the \placelist,
I don't want it.  who can help me?

 \framed[background=frame_mp,frame=on,align=middle,width=80pt]{%
 \blank[-12pt]
   \placelist
 [section]
 [alternative=d,
  maxwidth=\hsize,
  width=\hsize,
  maxwidth=75pt,
  offset=0pt,
  criterium=all,
  align=meddle,
  style=\tfa]
 }

thank you!

ps. I am a chinese, my english is poor.


\setuplist[section][before=]



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


[NTG-context] Fwd: Re: something about the placelist

2012-10-24 Thread Hans Hagen




 Original Message 
Subject: Re: [NTG-context] something about the placelist
Date: Wed, 24 Oct 2012 10:43:00 +0200
From: Hans Hagen pra...@wxs.nl
To: feng fengi...@gmail.com

On 24-10-2012 10:23, feng wrote:

在 Wed, 24 Oct 2012 16:03:53 +0800,Hans Hagen pra...@wxs..nl 写道:
sorry, there is still a null string line.But I find that if there is a
string before the \placelist the null string is disappear. like this:
 \setuplist[section][before=]
 \framed[background=frame_mp,frame=on,align=middle,width=80pt]{%


add: strut=no to the \framed command

(first run with \showstruts and you see what happens)


 string   %%this is the string
%
   \placelist
 [section]
 [alternative=d, % command, % none,
  maxwidth=\hsize,
  width=\hsize,
  maxwidth=75pt,
  before=,
  after=,
  offset=91pt,
  criterium=all,%important
  align=meddle,
  style=\tfa]
 }
the output is like:
-
|string  |
|1 ass sss 1.|
|2 ass sss 1.|
|3 ass sss 1.|
--
but if no the string the output is like:

-
|  |
|1 ass sss 1.|
|2 ass sss 1.|
|3 ass sss 1.|
--

On 24-10-2012 09:53, feng wrote:


hi!
 I am a newer. I am studying the context. I think the context is
very good. I had study the latex in past years.

I have a question: there is a  null string line  above the \placelist,
I don't want it.  who can help me?

 \framed[background=frame_mp,frame=on,align=middle,width=80pt]{%
 \blank[-12pt]
   \placelist
 [section]
 [alternative=d,
  maxwidth=\hsize,
  width=\hsize,
  maxwidth=75pt,
  offset=0pt,
  criterium=all,
  align=meddle,
  style=\tfa]
 }

thank you!

ps. I am a chinese, my english is poor.


\setuplist[section][before=]



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






--

-
  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] Fwd: Re: something about the placelist

2012-10-24 Thread feng

在 Wed, 24 Oct 2012 16:43:36 +0800,Hans Hagen pra...@wxs.nl 写道:
I see. Thank you very much.
I think I love the context. It is so good.
I think it is better than the latex. Thank you for your job very much.


Thanks.!!!(@_@)







 Original Message 
Subject: Re: [NTG-context] something about the placelist
Date: Wed, 24 Oct 2012 10:43:00 +0200
From: Hans Hagen pra...@wxs.nl
To: feng fengi...@gmail.com

On 24-10-2012 10:23, feng wrote:

在 Wed, 24 Oct 2012 16:03:53 +0800,Hans Hagen pra...@wxs..nl 写道:
sorry, there is still a null string line.But I find that if there is a
string before the \placelist the null string is disappear. like this:
 \setuplist[section][before=]
 \framed[background=frame_mp,frame=on,align=middle,width=80pt]{%


add: strut=no to the \framed command

(first run with \showstruts and you see what happens)


 string   %%this is the string
%
   \placelist
 [section]
 [alternative=d, % command, % none,
  maxwidth=\hsize,
  width=\hsize,
  maxwidth=75pt,
  before=,
  after=,
  offset=91pt,
  criterium=all,%important
  align=meddle,
  style=\tfa]
 }
the output is like:
-
|string  |
|1 ass sss 1.|
|2 ass sss 1.|
|3 ass sss 1.|
--
but if no the string the output is like:

-
|  |
|1 ass sss 1.|
|2 ass sss 1.|
|3 ass sss 1.|
--

On 24-10-2012 09:53, feng wrote:


hi!
 I am a newer. I am studying the context. I think the context is
very good. I had study the latex in past years.

I have a question: there is a  null string line  above the  
\placelist,

I don't want it.  who can help me?

 \framed[background=frame_mp,frame=on,align=middle,width=80pt]{%
 \blank[-12pt]
   \placelist
 [section]
 [alternative=d,
  maxwidth=\hsize,
  width=\hsize,
  maxwidth=75pt,
  offset=0pt,
  criterium=all,
  align=meddle,
  style=\tfa]
 }

thank you!

ps. I am a chinese, my english is poor.


\setuplist[section][before=]



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









--
使用 Opera 革命性的电子邮件客户程序: 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
___

[NTG-context] \placelist does not work

2012-04-05 Thread DB
In the current beta/nightly, \placelist has stopped working. Other 
parameters don't matter--the command just doesn't work, period.

___
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] \placenamedformula \placelist MKIV \endgraf

2012-01-17 Thread Mathieu Dupont

Hi everyone,
With MKIV, the names of formulas don't get written in the List Of Formulas 
anymore.The following example works fine for me in MKII, but not in MKIV.The 
only bug is that the names of formulas don't appear in the LOF.Anyone knows a 
way around ?
Thank you very much !
Oh, and also, what is the use/necessity of \endgraf ?

\starttext
\subsubject{List of Formulas}\placelist[formula][criterium=text,alternative=c] 
\subsubject{Formulas}\placenamedformula[one]{First listed Formula}\startformula 
a = 1 \stopformula \endgraf
\placeformula\startformula a = 2 \stopformula \endgraf
\placenamedformula{Second listed Formula}{b}\startformula a = 3 \stopformula 
\endgraf
\stoptext

Mathieu   ___
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] \placelist summary alternative solution

2011-12-14 Thread Felix Ingram
I've ended up delving into the dark art that is Lua for this solution:

\define[0]\SummaryTable{%
\placetable[force, none]{}{%
\setupTABLE[frame=off]
\bTABLE
\bTABLEhead
\bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR
\eTABLEhead
\bTABLEbody
\startluacode
for k, v in ipairs(structures.lists.collected) do
if v.metadata.kind == section and v.metadata.name == section then
context.bTR()
context.bTD()
context(REFREF)
context.eTD()
context.bTD()
context(v.titledata.title)
context.eTD()
context.bTD()
context(v.references.realpage)
context.eTD()
context.eTR()
end
end
\stopluacode%
\eTABLEbody
\eTABLE
}%
}%
\starttext
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\SummaryTable
\stoptext

This works to some degree though I have the following questions about it:

1. Is there a way to access a document global variable from Lua? I
will use this to replace the REFREF text.

2. v.references.realpage isn't the actual page of the title. How can I
access the page number that would have appeared in the ToC? (I've
restarted the page numbering in my master doc, the above example works
fine)

3. Is there a way to store some metadata along with my title? I'd like
something similar to this:
\myheader[author=me, date=2011-12-14]{This is my header with meta-data}
and then be able to access it from Lua again.

Thanks for any help you can give with this.

Felix
___
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] \placelist summary alternative solution

2011-12-14 Thread Hans Hagen

On 14-12-2011 17:50, Felix Ingram wrote:

I've ended up delving into the dark art that is Lua for this solution:

\define[0]\SummaryTable{%
\placetable[force, none]{}{%
\setupTABLE[frame=off]
\bTABLE
\bTABLEhead
\bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR
\eTABLEhead
\bTABLEbody
\startluacode
 for k, v in ipairs(structures.lists.collected) do
 if v.metadata.kind == section and v.metadata.name == section then
 context.bTR()
 context.bTD()
 context(REFREF)
 context.eTD()
 context.bTD()
 context(v.titledata.title)
 context.eTD()
 context.bTD()
 context(v.references.realpage)
 context.eTD()
 context.eTR()
 end
 end
\stopluacode%
\eTABLEbody
\eTABLE
}%
}%
\starttext
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\section{Test}
\input{knuth}
\SummaryTable
\stoptext

This works to some degree though I have the following questions about it:

1. Is there a way to access a document global variable from Lua? I
will use this to replace the REFREF text.


\startluacode

document.myvariables = { }

document.myvariables.whatever = SOME TEXT

\stopluacode

...

context(document.myvariables.whatever)


2. v.references.realpage isn't the actual page of the title. How can I
access the page number that would have appeared in the ToC? (I've
restarted the page numbering in my master doc, the above example works
fine)


as you're looking into the code ... search for helpers like

lists.prefixedpage

keep in mind that this is not yet an official api (although it will 
probably stay this way)





3. Is there a way to store some metadata along with my title? I'd like
something similar to this:
\myheader[author=me, date=2011-12-14]{This is my header with meta-data}
and then be able to access it from Lua again.


it's called userdata (third argument to \startchapter etc) .. it travels 
with the rest


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
___


[NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto

Hello!

I can't understand what I'm doing wrong here:

%

\setuplist[mylist]
  [alternative=c,
width=0mm,
style=\tfx,
criterium=all]

\starttext

\placelist[mylist]

\page[yes]

\input knuth

\writetolist[mylist]{}{Item}

\stoptext
% 

The document compiles fine with version 2011.05.18 22:2, but it fails
miserably with the latest (2011.11.29 23:11)
! Missing number, treated as zero.

system   tex  error on line 11 in file prova.tex: Missing number, 
treated as zero ...

 1 \setuplist[mylist]
 2   [alternative=c,
 3 width=0mm,
 4 style=\tfx,
 5 criterium=all]
 6 
 7 
 8 \starttext
 9 
10 \placelist[mylist]
11   
12 \page[yes]
13 
14 \input knuth
15 
16 \writetolist[mylist]{}{Item}
17 
18 \stoptext

to be read again 
   ,
\doplacestructurelist ...um = #2, number = #3,
   extras = #4, order = #...
\doplacerawlist ...ras }{\listparameter \c!order }
  \stoplistreferences \endgr...
\doplacelist ...ginoflist \doplacerawlist [#1][#2]
  \doendoflist 
\dodoubleemptyonespaced #1#2-#1[{#2}][]
 
to be read again 
   \par 
l.11 
 
? H
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

Thanks in advance.

-- 
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] \placelist and \writetolist

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 11:41 schrieb Marco Pessotto:

 
 Hello!
 
 I can't understand what I'm doing wrong here:
 
 %
 
 \setuplist[mylist]
  [alternative=c,
width=0mm,
style=\tfx,
criterium=all]
 
 \starttext
 
 \placelist[mylist]
 
 \page[yes]
 
 \input knuth
 
 \writetolist[mylist]{}{Item}
 
 \stoptext
 % 
 
 The document compiles fine with version 2011.05.18 22:2, but it fails
 miserably with the latest (2011.11.29 23:11)

Replace \setuplist with \definelist, before you use a list you should create it.

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] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Replace \setuplist with \definelist, before you use a list you should create 
 it.

I knew I was missing something obvious...

Thanks a lot, it works.

Best wishes

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


[NTG-context] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Hi all,

I can't seem to get a list placed after a numbered heading. For example:

\starttext
\title{First one}
\placelist[chapter]
\chapter{Second one}
\placelist[chapter] % This won't be placed
\stoptext


Is this something I should be able to do? The reason I ask is that I'm
looking to generate a summary table in my document that will contain
information from my page titles. I'd like to have the heading title,
the page number and possibly some meta-info that I'm passing to my
custom command. (I'm planning on passing a custom command in the
\setuplist command). If it's not possible to \placelist's after
numbered headings then could someone suggest an alternative method?

Many thanks,

Felix
___
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] \placelist after \chapter

2011-12-12 Thread Wolfgang Schuster

Am 12.12.2011 um 13:04 schrieb Felix Ingram:

 Hi all,
 
 I can't seem to get a list placed after a numbered heading. For example:
 
 \starttext
 \title{First one}
 \placelist[chapter]
 \chapter{Second one}
 \placelist[chapter] % This won't be placed
 \stoptext
 
 
 Is this something I should be able to do? The reason I ask is that I'm
 looking to generate a summary table in my document that will contain
 information from my page titles. I'd like to have the heading title,
 the page number and possibly some meta-info that I'm passing to my
 custom command. (I'm planning on passing a custom command in the
 \setuplist command). If it's not possible to \placelist's after
 numbered headings then could someone suggest an alternative method?

You need \placelist[chapter][criterium=all].

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] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Thanks Wolfgang - that works as expected. I'm trying to create a table
from the headings (as previously mentioned). Something like this:

\setuplist[chapter][criterium=all,alternative=command,command=\MySummaryTable,before={\setupTABLE[frame=on]\bTABLE\bTABLEbody},after={\eTABLEbody\eTABLE}]

\define[3]\MySummaryTable{\bTR\bTD #1 \eTD\bTD #2 \eTD\bTD #3 \eTD\eTR}

\starttext
\placecontent
\chapter{First one}
\chapter{Second one}
\chapter{Third one}
\chapter{Fourth one}
\chapter{Fifth one}
\placelist[chapter][criterium=all]
\stoptext

While the content gets placed it doesn't appear in a table. I also
notice that the same layout is used in the first \placecontent line.
In my final document I'd like to have my headings included as usual in
the table of contents but then have my own custom list appear as a
table later in the document. Is it possible to define a separate
format for a list that can be used outside of the ToC?

Felix
___
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] placelist

2011-11-05 Thread Willi Egger
Hi Wolfgang,

On 4 Nov 2011, at 15:00, Wolfgang Schuster wrote:

 
 Am 04.11.2011 um 12:23 schrieb Willi Egger:
 
 Hi Pontus,
 
 thanks for your quick reply. I tried your suggestion, but there is no 
 success with it. …
 
 You need \placelist but you use \placecontent.

This makes indeed the difference. thanks a lot!

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


[NTG-context] placelist

2011-11-04 Thread Willi Egger
Hi all,

it sound strange but how do I get a TOC where only the sections are placed but 
not the subsections?
The document contains exclusively sections and subsections.

With \placecontent[level=section] I get as well the sections as also the 
subsections. Looking at examples on the wiki I think this should be the right 
command?

Kind regards

Willi
___
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] placelist

2011-11-04 Thread Pontus Lurcock
On Fri 04 Nov 2011, Willi Egger wrote:

 it sound strange but how do I get a TOC where only the sections are
 placed but not the subsections? The document contains exclusively
 sections and subsections. With \placecontent[level=section] I get as
 well the sections as also the subsections. Looking at examples on
 the wiki I think this should be the right command?

\placelist[section] should do what you want -- see
http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html .

Pont
___
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] placelist

2011-11-04 Thread Willi Egger
Hi Pontus,

thanks for your quick reply. I tried your suggestion, but there is no success 
with it. ...


test-TOC.tex
Description: Binary data


Kind regards

Willi

On 4 Nov 2011, at 09:12, Pontus Lurcock wrote:

 On Fri 04 Nov 2011, Willi Egger wrote:
 
 it sound strange but how do I get a TOC where only the sections are
 placed but not the subsections? The document contains exclusively
 sections and subsections. With \placecontent[level=section] I get as
 well the sections as also the subsections. Looking at examples on
 the wiki I think this should be the right command?
 
 \placelist[section] should do what you want -- see
 http://www.mail-archive.com/ntg-context@ntg.nl/msg59165.html .
 
 Pont
 ___
 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] placelist

2011-11-04 Thread Wolfgang Schuster

Am 04.11.2011 um 12:23 schrieb Willi Egger:

 Hi Pontus,
 
 thanks for your quick reply. I tried your suggestion, but there is no success 
 with it. …

You need \placelist but you use \placecontent.

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] chapter head and placelist

2011-02-05 Thread Andreas Harder
Hi,you could play with my attached example.

head-with-subtitle.tex
Description: Binary data
Nearly the same is wikified underhttp://wiki.contextgarden.net/Generate_Authorlist_from_Head_ContentGreeting	AndreasAm 05.02.2011 um 02:13 schrieb Jeong Dalyoung:Dear all,The otherday, I asked about three line chapter head and got a solution.\chapter{\tfd Title \\ \tfc subtitle}Then, in the table of contents, it also listed as a big fonts.How to make the contents with a normal fonts?I tried \setuplist[style=normal, textstyle=normal], but no differences.Best regards,Dalyoung___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] chapter head and placelist

2011-02-05 Thread Jeong Dalyoung
Dear Andreas,

Thank you for your code.
I'll try it.

The other day, Wolfgang suggested me the same page in wiki.
But, It looks a little bit complicate, so I use another simple method.

Now, it is the time to look at it once more.

Thanks again.

best regards,

Dalyoung
___
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] chapter head and placelist

2011-02-05 Thread Wolfgang Schuster

Am 05.02.2011 um 12:41 schrieb Jeong Dalyoung:

 Dear Andreas,
 
 Thank you for your code.
 I'll try it.
 
 The other day, Wolfgang suggested me the same page in wiki.
 But, It looks a little bit complicate, so I use another simple method.

It’s no so complicated as you think.

The \startchapter command has two arguments, the first is used for
the chapter argument like title, reference, bookmark etc. and
the second argument, which is optional, for your own values, like
author, subtitle etc.

You can now access these values in your own chapter layout with
\structurevariable for the normal arguments (e.g. title) and
\structureuservariable for your own arguments (e.g. subtitle).

\define[2]\ChapterCommand
  {\starttabulate[|l|l|]
   \NC title \EQ \structurevariable{title} \NC\NR
   \NC reference \EQ \structurevariable{reference} \NC\NR
   \NC author\EQ \structureuservariable{author}\NC\NR
   \NC subtitle  \EQ \structureuservariable{subtitle}  \NC\NR
   \stoptabulate}

\setuphead[chapter][command=\ChapterCommand]

\starttext
\startchapter[reference=sec:knuth,title=Knuth][author=Donald E. 
Knuth,subtitle=ConTeXt Sample File]
\input knuth
\stopchapter
\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
___


[NTG-context] chapter head and placelist

2011-02-04 Thread Jeong Dalyoung
Dear all,

The otherday, I asked about three line chapter head and got a solution.

\chapter{\tfd Title \\ \tfc subtitle}

Then, in the table of contents, it also listed as a big fonts.

How to make the contents with a normal fonts?

I tried \setuplist[style=normal, textstyle=normal], but no differences.

Best regards,

Dalyoung
___
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] \framed \placelist

2010-08-17 Thread Andreas Harder

Am 17.08.2010 um 00:49 schrieb taco:

 Andreas Harder wrote:
 Hi all,
 if I try to put \placelist in \framed an error (You can't use `\prevdepth' 
 in restricted horizontal mode) occurs.
 \starttext
 \framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
 \dorecurse{10}{\section{test #1} \input tufte }
 \stoptext
 So what is the way to put a background behind the list?
 
 putting it in a \vbox works, but \startframedtext ... \stopframedtext is 
 nicer:
 
 \startframedtext
  [background=color,width=\the\hsize,backgroundcolor=gray]
  \placelist[section]
 \stopframedtext

Thanks Taco, this helps.

Greeting
Andreas___
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] \framed \placelist

2010-08-16 Thread Andreas Harder
Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?

Greeting
Andreas
___
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] \framed \placelist

2010-08-16 Thread taco

Andreas Harder wrote:

Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?


putting it in a \vbox works, but \startframedtext ... \stopframedtext is 
nicer:


\startframedtext
  [background=color,width=\the\hsize,backgroundcolor=gray]
  \placelist[section]
\stopframedtext


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] \placelist

2009-05-04 Thread Otared Kavian


On 4 mai 09, at 18:09, Wolfgang Schuster wrote:


Hi Hans,

\placelist produce no output in mkiv.

\starttext

%\placelistoffigure
\completelistoffigures

here

\placefigure{dummy}{\framed{DUMMY}}

\stoptext

Wolfgang



Hi,

As a matter of fact, the above example of \placelist gives a LuaTeX  
error
(ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/ 
english):


%%% begin console output
structure   : title @ level 2 : (0.0) . - \headtext {figures}
! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-doc.lua: 
502: attempt to index field 'sectiontitle' (a nil value)

stack traceback:
	...imal/tex/texmf-context/tex/context/base/strc-doc.lua:502: in  
function 'sectiontitle'
	...imal/tex/texmf-context/tex/context/base/strc-lst.lua:308: in  
function 'title'

main ctx instance:1: in main chunk.
\structurelistsectiontitle ...\currentlistindex )}

\listtextcommand #1-\begstrut #1
 \endstrut
argument ...tentry {\structurelistsectiontitle }
  }\egroup \ifdim \wd  
4=\zer...

\secondoftwoarguments #1#2-#2

\dosomelistelement ... 4\relax \relax \fi }\hss }}
  \endgraf  
\nointerlineskip ...

\dodolistelement ...ement {#1}{#2}{#3}{#4}{#5}{#6}
  \global  
\utilitydonetrue

...
l.9

?
Process aborted
%%% end console output

Best regards: OK
___
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] \placelist

2009-05-04 Thread Wolfgang Schuster


Am 04.05.2009 um 18:20 schrieb Otared Kavian:


Hi,

As a matter of fact, the above example of \placelist gives a LuaTeX  
error
(ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/ 
english):


Make a update.

ConTeXt  ver: 2009.05.04 11:10 MKIV  fmt: 2009.5.4  int: english/english
This is LuaTeX, Version beta-0.40.0-2009050311 luatex.web = v2356

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


Re: [NTG-context] lists and notes (was: \placelist)

2009-05-04 Thread Henning Hraban Ramm
Not only list handling, but also footnotes and headers are broken (at  
least), while the index seems fixed in the latest beta of MkIV:



\setuphead[chapter][page=no]
\setupheadertexts[text][chapter][pagenumber]
\setupheader[text][state=start]

\setupregister[index]%
	[n=2, balance=no, align=yes, alternative=A, indicator=yes,  
pagestyle=normal, location=right, style=type]


\starttext

\chapter{Lalala}
\index{jajaja}
\input tufte\footnote{Tufte 1!}

\chapter{Bingo\dots}
\input tufte

\chapter{Abrakadabra}
\input tufte\footnote{Tufte 2!}

\page
\chapter{Bobbele}
\input tufte\footnote{Tufte 3!}

\chapter{Laberbla}
\input tufte\footnote{Tufte 4!}
\index{Lalala}

\completeindex

\completecontent

\stoptext

- table of contents is empty, as reported
- I get no chapter name in the header
- footnotes are numbered like 3.2
- the footnote marker is missing in the text


I need to get a book of proceedings to the printshop within this week,  
and I very much hope that these issues are easy to fix...



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] lists and notes (was: \placelist)

2009-05-04 Thread Wolfgang Schuster


Am 04.05.2009 um 22:22 schrieb Henning Hraban Ramm:

Not only list handling, but also footnotes and headers are broken  
(at least), while the index seems fixed in the latest beta of MkIV:


- table of contents is empty, as reported


And a simple \completecontent at end of the document has worked
for you in the past? I needed here \completecontent[criterium=all].

I need to get a book of proceedings to the printshop within this  
week, and I very much hope that these issues are easy to fix...


Because of such a situation it is a good idea to make a copy
of the last stable which you should use for critical projects.

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


Re: [NTG-context] \placelist

2009-05-04 Thread Otared Kavian


On 4 mai 09, at 20:18, Wolfgang Schuster wrote:



Am 04.05.2009 um 18:20 schrieb Otared Kavian:


Hi,

As a matter of fact, the above example of \placelist gives a LuaTeX  
error
(ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/ 
english):


Make a update.

ConTeXt  ver: 2009.05.04 11:10 MKIV  fmt: 2009.5.4  int: english/ 
english

This is LuaTeX, Version beta-0.40.0-2009050311 luatex.web = v2356

Wolfgang


Hi Wolfgang,

Indeed I need an update, but here is the dilemma… If I do an update,  
then I can't use my good old mkii with the latest Minimals: I get


 begin console ouput
 \write18 enabled.
 (/Volumes/OK-10.4/context-minimal/tex/texmf-context/web2c/natural.tcx)
I can't find the format file `cont-en.fmt'!
TeXExec | runtime: 0.074115
 end console ouput

However with mkiv and the latest Minimals I get the same result as you.

Best regards: OK
___
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] lists and notes (was: \placelist)

2009-05-04 Thread Henning Hraban Ramm

Am 2009-05-04 um 22:34 schrieb Wolfgang Schuster:


- table of contents is empty, as reported


And a simple \completecontent at end of the document has worked
for you in the past? I needed here \completecontent[criterium=all].


Ah, sorry, I had criterium=all always in my setup.
Just an inconvenient default, then.

Is there also a simple workaround/setup for the footnotes and headers  
issues?


I need to get a book of proceedings to the printshop within this  
week, and I very much hope that these issues are easy to fix...


Because of such a situation it is a good idea to make a copy
of the last stable which you should use for critical projects.


I know, I shouldn't have switched to MkIV. I can't remember any MkIV  
release that did everything what I needed...



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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


[NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Stuart Jansen
When \placelist[section][criterium=local] is used inside of
\startappendices, no list is included. I don't see any error messages. I
scoured the docs but found neither indication that this is the desired
behavior nor any idea how to change this behavior. Any ideas?

\starttext
  \startbodymatter
 \chapter{Foo}
 \placelist[section][criterium=local,alternative=c]
   \section{Bar} \input knuth
  \stopbodymatter
  \startappendices
 \chapter{Corge} 
 \placelist[section][criterium=current,alternative=c]
   \section{Grault} \input zapf
  \stopappendices
\stoptext

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Taco Hoekwater
Stuart Jansen wrote:
 When \placelist[section][criterium=local] is used inside of
 \startappendices, no list is included. I don't see any error messages. I
 scoured the docs but found neither indication that this is the desired
 behavior nor any idea how to change this behavior. Any ideas?

I remember having a similar problem, that was fixed a few months ago.

   \startappendices
  \chapter{Corge}
  \placelist[section][criterium=local,alternative=c]
\section{Grault} \input zapf
   \stopappendices

works for me, so my best advice is a context upgrade.
(maybe 'chapter' will work even in the old version).

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


Re: [NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Stuart Jansen
On Thu, 2006-08-17 at 19:08 +0200, Taco Hoekwater wrote:
 Stuart Jansen wrote:
  When \placelist[section][criterium=local] is used inside of
  \startappendices, no list is included. I don't see any error messages. I
  scoured the docs but found neither indication that this is the desired
  behavior nor any idea how to change this behavior. Any ideas?
 
 I remember having a similar problem, that was fixed a few months ago.
 
\startappendices
   \chapter{Corge}
   \placelist[section][criterium=local,alternative=c]
 \section{Grault} \input zapf
\stopappendices
 
 works for me, so my best advice is a context upgrade.
 (maybe 'chapter' will work even in the old version).

How recent? I just tried it with the latest minimal, as well as
live.contextgarden.net and neither worked for me.

'chapter' only show me the chapter, not the sections. Unfortunately,
that's the exact opposite of what I'm hoping for.

$ texexec --version
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Taco Hoekwater
Stuart Jansen wrote:
 On Thu, 2006-08-17 at 19:08 +0200, Taco Hoekwater wrote:
 
Stuart Jansen wrote:

When \placelist[section][criterium=local] is used inside of
\startappendices, no list is included. I don't see any error messages. I
scoured the docs but found neither indication that this is the desired
behavior nor any idea how to change this behavior. Any ideas?

I remember having a similar problem, that was fixed a few months ago.

   \startappendices
  \chapter{Corge}
  \placelist[section][criterium=local,alternative=c]
\section{Grault} \input zapf
   \stopappendices

works for me, so my best advice is a context upgrade.
(maybe 'chapter' will work even in the old version).
 
 How recent? I just tried it with the latest minimal, as well as
 live.contextgarden.net and neither worked for me.

Not _that_ recent. Strange, should have worked.

 'chapter' only show me the chapter, not the sections. Unfortunately,
 that's the exact opposite of what I'm hoping for.

oops, try 'section' then :-)

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


Re: [NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Stuart Jansen
On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote:
 Stuart Jansen wrote:
\startappendices
   \chapter{Corge}
   \placelist[section][criterium=local,alternative=c]
 \section{Grault} \input zapf
\stopappendices
 

  How recent? I just tried it with the latest minimal, as well as
  live.contextgarden.net and neither worked for me.
 
 Not _that_ recent. Strange, should have worked.

Okay, I guess that means it's a bug, not a feature. Hans: is this one
hairy enough that I should register it in the collector?

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist doesn't work in \startappendices

2006-08-17 Thread Hans Hagen
Stuart Jansen wrote:
 On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote:
   
 Stuart Jansen wrote:
 
   \startappendices
  \chapter{Corge}
  \placelist[section][criterium=local,alternative=c]
\section{Grault} \input zapf
   \stopappendices

 

   
 How recent? I just tried it with the latest minimal, as well as
 live.contextgarden.net and neither worked for me.
   
 Not _that_ recent. Strange, should have worked.
 
well, it depends ... i do get a one line toc between the chapter and 
section title

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] \placelist doesn't work in \startappendices

2006-08-17 Thread Stuart Jansen
On Thu, 2006-08-17 at 23:49 +0200, Hans Hagen wrote:
 Stuart Jansen wrote:
  On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote:

  Stuart Jansen wrote:
  
\startappendices
   \chapter{Corge}
   \placelist[section][criterium=local,alternative=c]
 \section{Grault} \input zapf
\stopappendices
 
  
 

  How recent? I just tried it with the latest minimal, as well as
  live.contextgarden.net and neither worked for me.
  
 well, it depends ... i do get a one line toc between the chapter and 
 section title

What the?! I specifically checked using live.contexgarden.net to make
sure it wasn't a configuration problem on my side. I swear that line
wasn't there! It's a good thing 5pm just arrived, I obviously need a
break... Sorry for the confusion.

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist disturbs grid?

2005-08-09 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hans Hagen wrote:


Vit Zyka wrote:


Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in 
the common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line 
setting, I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.



this is the default ratio:

\setupinterlinespace
 [height=.72,
  depth=.28]


Thank you Hans; after some experimenting I understood:
- height and depth in \setupinterlinespace are baseline-ratio/size of 
struts (add description to tex-show)

- some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio
- list items are typeset with struts (perhaps all alternative)
- only alternative without strut is 'none' with command=\Mycommand def

So I do know how to preserve grid. But I do not know HOW TO TYPESET 
\Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the 
restricted horizontal mode and continue on one long line. And another 
question/request: can the list distance param (alternative d,...) be 
glue instead of skip? For better line fitting.


example:
--
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt,height=.77,depth=.23]
\setuplayout[grid=yes,width=8cm]
\showgrid

\setuplist[section]
  [style=\tfd,alternative=none,command=\MyListItem]
\def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }}

\starttext
\writetolist[section]{}{See the next line}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}
\writetolist[section]{}{And the last one}

\lineskiplimit=-10pt
Line\par
Anothet line of \v Sejba\par

\placelist[section]

\strut  %% should be! why?
After list line.

\stoptext
--

Vit


Hallo hans, thank you for your code. I find it in my mail box just today 
although it is 4 days old. So apologise me.


Unfortunately it seems to me it
A) does not work
   after successfull
  \definelistplacement[MyListItem][none]#1#2#3%
 {\listparameter{style} (#1 - #2 - #3) }
   \MyListItem is not defined.
B) does not solve the problem with a single long line list alternative.

But. Your example discovered me there are few more alternative in 
\setuplist (except a..f, none):


horizontal
vertical
command

So your example leads me to find the solution. I still do not know how 
to insert interaction to page number inside \MyListCommand. I have tried

\def\MyListCommand#1#2#3{%
  #1-#2-%
  \setbox0\hbox{#3}% \showcontrastlocation\??ia{??}{#3}}%
  \linklisttoelement{subsection}{??}{#3}{\box0}%
  )}
}
but I am puzzled by \linklisttoelement parameters.

Thnak ones more
Vit


Solution:
--
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt,height=.77,depth=.23]
\setuplayout[grid=yes,width=8cm]
\showgrid

\setuplist[part]

[style=\bfb,alternative=command,command=\MyListCommand,before=\blank,after=\endgraf]
\setuplist[chapter]

[style=\bfb,alternative=command,command=\MyListCommand,before=\blank,after=\endgraf]
\setuplist[section]
  [style=\tfa,alternative=command,command=\MyListCommand]
\def\MyListCommand#1#2#3{%
  \listparameter{before}%
  {\listparameter{style}(#1-#2-#3)}\hskip1em plus.5em minus.5em
  \listparameter{after}%
}

\starttext
\writetolist[part]{1}{Part 1}
\writetolist[chapter]{1}{Chapter 1}
\writetolist[section]{1}{See the next line}
\writetolist[section]{2}{\v Sejba}
\writetolist[section]{3}{Another list line}
\expanded{\writetolist[section]{}{And the last line.}}
\writetolist[chapter]{2}{Chapter 2}
\writetolist[section]{1}{Section 1}

\lineskiplimit=-\maxdimen
Line\par
Another line of \v Sejba\par

\placecontent

\strut
After list.

\stoptext
---




\setuplist
 [section]
 [style=\tfd,
  alternative=none,
  after=\blank,
  before=\blank,
  command=\MyListItem]

\setuplist
 [section]
 [style=\tfd,
  alternative=command
  command=\MyListItem]

in core-lst you can see how the alternatives are defined
ok, let's give you a bonus (goes in cont-new):
\unprotect
\def\definelistplacement
 {\dodoubleempty\dodefinelistplacement}

\def\dodefinelistplacement[#1][#2]%
 {\setvalue{\@@dodolistelement#1}%
{\doifelsenothing{#2}
   {\getvalue{\@@dodolistelement\v!command}}%
   {\executeifdefined{\@@dodolistelement#2}
  {\getvalue{\@@dodolistelement\v!command}}}%
\setvalue{\??li\currentlist\c!command}%
  {\getvalue{\@@dodolistelement::#1

Re: [Fwd: Re: [NTG-context] \placelist disturbs grid?]

2005-08-08 Thread Hans Hagen

Vit Zyka wrote:


Hello,

I was perhaps little descriptive in my last question. Let me discribe 
my real problem:


you can explitly snap:

\showgrid
\setuplayout[grid=yes]
\snaptogrid\vbox{\bf \setstrut \strut test}
\snaptogrid[line]\vbox{\bfa \setstrut \strut test}
\snaptogrid[line]\vbox{\bfa \setstrut \strut test 1\endgraf test 2}
\snaptogrid\vbox{\sl \setstrut \strut test}



-
 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


[Fwd: Re: [NTG-context] \placelist disturbs grid?]

2005-08-06 Thread Vit Zyka

Hello,

I was perhaps little descriptive in my last question. Let me discribe my 
real problem:


I'd like to typeset a table of content as follows:
--

Part 1

Chapter 1
Section 1Section 2Section3
Section with longer name 4Section 5
Section 6

Chapter 2
Section 1   Section 2...


---
Everything has to be on the grid. Problem is that 'Part 1' and 'Chapter 
1' are typeset with bigger font (\bfa and \tfa respectively). And grid 
is too tight to fit \bfa/\tfa struts. But the character size is 
optically OK even preserving grid due to blank lines around bigger font. 
I do not want to use \placetogrid in this case since AFAIK it adds one 
blank line more.


Solution: not to add struts to list items and set 
\lineskiplimit=-\maxdimen. I discovered that there is alternative 'none' 
that does not place struts. The only problem is that 'none' create one 
long line like

---
Section 1Section 2Section3 Section with longer name 4Section 
5Section6

---
oversized \textwidth.

So the question is:
  How to typeset list items to paragraph without struts?

Minimal test code is bellow.

Thank you for replay
Vit


Hans Hagen wrote:

Vit Zyka wrote:


Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in the 
common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line 
setting, I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.




this is the default ratio:

\setupinterlinespace
 [height=.72,
  depth=.28]


Thank you Hans; after some experimenting I understood:
- height and depth in \setupinterlinespace are baseline-ratio/size of
struts (add description to tex-show)
- some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio
- list items are typeset with struts (perhaps all alternative)
- only alternative without strut is 'none' with command=\Mycommand def

So I do know how to preserve grid. But I do not know HOW TO TYPESET
\Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the
restricted horizontal mode and continue on one long line. And another
question/request: can the list distance param (alternative d,...) be
glue instead of skip? For better line fitting.

example:
--
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt,height=.77,depth=.23]
\setuplayout[grid=yes,width=8cm]
\showgrid

\setuplist[section]
  [style=\tfd,alternative=none,command=\MyListItem]
\def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }}

\starttext
\writetolist[section]{}{See the next line}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}
\writetolist[section]{}{And the last one}

\lineskiplimit=-10pt
Line\par
Anothet line of \v Sejba\par

\placelist[section]

\strut  %% should be! why?
After list line.

\stoptext
--

Vit


--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] \placelist disturbs grid?

2005-08-05 Thread Hans Hagen

Vit Zyka wrote:


Hans Hagen wrote:


Vit Zyka wrote:


Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in 
the common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line 
setting, I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.





this is the default ratio:

\setupinterlinespace
 [height=.72,
  depth=.28]



Thank you Hans; after some experimenting I understood:
- height and depth in \setupinterlinespace are baseline-ratio/size of 
struts (add description to tex-show)

- some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio
- list items are typeset with struts (perhaps all alternative)
- only alternative without strut is 'none' with command=\Mycommand def

So I do know how to preserve grid. But I do not know HOW TO TYPESET 
\Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the 
restricted horizontal mode and continue on one long line. And another 
question/request: can the list distance param (alternative d,...) be 
glue instead of skip? For better line fitting.


example:
--
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt,height=.77,depth=.23]
\setuplayout[grid=yes,width=8cm]
\showgrid

\setuplist[section]
  [style=\tfd,alternative=none,command=\MyListItem]
\def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }}

\starttext
\writetolist[section]{}{See the next line}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}
\writetolist[section]{}{And the last one}

\lineskiplimit=-10pt
Line\par
Anothet line of \v Sejba\par

\placelist[section]

\strut  %% should be! why?
After list line.

\stoptext
--

Vit


\setuplist
 [section]
 [style=\tfd,
  alternative=none,
  after=\blank,
  before=\blank,
  command=\MyListItem]

\setuplist
 [section]
 [style=\tfd,
  alternative=command
  command=\MyListItem]

in core-lst you can see how the alternatives are defined 

ok, let's give you a bonus (goes in cont-new): 

\unprotect 


\def\definelistplacement
 {\dodoubleempty\dodefinelistplacement}

\def\dodefinelistplacement[#1][#2]%
 {\setvalue{\@@dodolistelement#1}%
{\doifelsenothing{#2}
   {\getvalue{\@@dodolistelement\v!command}}%
   {\executeifdefined{\@@dodolistelement#2}
  {\getvalue{\@@dodolistelement\v!command}}}%
\setvalue{\??li\currentlist\c!command}%
  {\getvalue{\@@dodolistelement::#1}}}%
  \setvalue{\@@dodolistelement::#1}}

\definelistplacement[MyListItem][none]#1#2#3%
 {\listparameter{style} (#1 - #2 - #3) }

\protect 

now you can say: 


\definelistplacement[MyListItem][none]#1#2#3%
 {\listparameter{style} (#1 - #2 - #3) }

\setuplist
 [section]
 [style=\tfd,
  alternative=MyListItem,
  after=\blank,
  before=\blank]

(btw, watch how one can ask for listparameters)  


\definelistplacement[MyListItem][none]#1#2#3%
 {\listparameter{style} (#1 - #2 - #3) }

\setuplist
 [section]
 [style=\tfd,
  alternative=MyListItem,
  after=\blank,
  before=\blank]

\definelistplacement[MyListItem][none]#1#2#3%
 {\listparameter{before}
  \listparameter{style} (#1 - #2 - #3) 
  \listparameter{after}}




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] \placelist disturbs grid?

2005-08-04 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in the 
common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line 
setting, I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.




this is the default ratio:

\setupinterlinespace
 [height=.72,
  depth=.28]


Thank you Hans; after some experimenting I understood:
- height and depth in \setupinterlinespace are baseline-ratio/size of 
struts (add description to tex-show)

- some my chars (/,\v S, \tfa, ...) oversized \strut size of any ratio
- list items are typeset with struts (perhaps all alternative)
- only alternative without strut is 'none' with command=\Mycommand def

So I do know how to preserve grid. But I do not know HOW TO TYPESET 
\Mycommand TO FIT THE PARAGRAPH WIDTH. It seem it is not in the 
restricted horizontal mode and continue on one long line. And another 
question/request: can the list distance param (alternative d,...) be 
glue instead of skip? For better line fitting.


example:
--
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt,height=.77,depth=.23]
\setuplayout[grid=yes,width=8cm]
\showgrid

\setuplist[section]
  [style=\tfd,alternative=none,command=\MyListItem]
\def\MyListItem#1#2#3{{\tfb (#1-#2-#3) }}

\starttext
\writetolist[section]{}{See the next line}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}
\writetolist[section]{}{And the last one}

\lineskiplimit=-10pt
Line\par
Anothet line of \v Sejba\par

\placelist[section]

\strut  %% should be! why?
After list line.

\stoptext
--

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


[NTG-context] \placelist disturbs grid?

2005-08-03 Thread Vit Zyka

Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in the 
common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line setting, 
I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.

Can somebody help me, please?
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist disturbs grid?

2005-08-03 Thread Hans Hagen

Vit Zyka wrote:


Hello Hans, Taco, and the next gurus,

sorry for bother with another thing I can not understand. Very high 
glyphs like \v S disturb grid in the \placelist. The same glyph in the 
common paragraph with the same (intentionally) interline setting 
preserves grid:


---
\setupbodyfont[10pt,rm]
\setupinterlinespace[line=12pt]
\setuplayout[grid=yes,width=8cm]
\showgrid

\writetolist[section]{}{See the next line:}
\writetolist[section]{}{\v Sejba}
\writetolist[section]{}{Another list line}

\starttext
\v Sejba\par
Here grid is OK, but in \type{placelist}:

\placelist[section]

no!
\stoptext
--
I was looking in definitions for some font-size dependent line 
setting, I also tried to

\setuplist[section]{style=\baselineskip=12pt\lineskiplimit=-10pt}
but without success to lounging on the grid.



this is the default ratio:

\setupinterlinespace
 [height=.72,
  depth=.28]

you can change that (as long as it adds up to 1.0) 

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] \placelist is influensed by \completeregister ??

2005-08-01 Thread Vit Zyka

Taco Hoekwater wrote:

Vit Zyka wrote:


Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:



Your post is a specific example of a more generic truth:

  new lists are by default influenced by the sectioning commands

The solution is to disable that influence, like so:

  \definelist[somelist][criterium=all]

Otherwise you get only the entries defined within the 'Letter'
section, and (in this case) there are none.


Ahhh, now I understand parameter criterium. Thank you Taco for 
explanation. I added some notes/example about to texshow/setuplist.


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


Re: [NTG-context] \placelist is influensed by \completeregister ??

2005-07-30 Thread Taco Hoekwater

Vit Zyka wrote:

Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:


Your post is a specific example of a more generic truth:

  new lists are by default influenced by the sectioning commands

The solution is to disable that influence, like so:

  \definelist[somelist][criterium=all]

Otherwise you get only the entries defined within the 'Letter'
section, and (in this case) there are none.

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


[NTG-context] \placelist is influensed by \completeregister ??

2005-07-29 Thread Vit Zyka

Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:


--
\defineregister[letter][letters]
\definelist[somelist]

\starttext
  Hello! \letter{Letter S}
  \writetolist[somelist]{List entry, part A}{List entry, part B}
  %\placeregister[letter]
  \completeregister[letter]
  \placelist[somelist]
\stoptext
-
I discovered that the source of the bug is probably \headtext the line
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

in the \completeregister definition. Please can somebody have a look on it?
vit

--
\unprotect
\def\docompleteregister[#1][#2]%
  {\iffirstargument
 \begingroup
 \edef\currentregister{#1}%
 % the expansion is needed because we don't want \v!'s in the tuo 
file (french)
% 
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

 \placeregister[\currentregister][#2]%
 \page[\v!yes]%
 \endgroup
   \fi}
\protect


--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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