Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–18 Sanjoy Mahajan wrote:

> Thanks, that fixes my and Marco's test cases.  Should I wikify, or will
> your fix be part of an uncoming beta?

No need to wikify. It was a bug which has already been fixed in the
latest beta.

Marco


signature.asc
Description: Digital signature
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Sanjoy Mahajan
Hans,

Thanks, that fixes my and Marco's test cases.  Should I wikify, or will
your fix be part of an uncoming beta?

Best,
-Sanjoy
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Hans Hagen

On 9/18/2013 8:48 AM, Marco Patzer wrote:

On 2013–09–17 Sanjoy Mahajan wrote:


Is this a bug, or just a change in setuphead that I didn't take
account of?


It is a bug. ConTeXt sometimes uses the rightmargindistance for the
left margin, which would be correct for a double sided layout, but
is definitely wrong for a single sided document. However, even in a
double sided layout the calculations are not correct. Here a smaller
example. Note that the output is wrong either way, with
\setuppagenumbering commented out or not.

%% \setuppagenumbering[alternative=doublesided]
\setuplayout[rightmargindistance=1cm]
\setuphead[section][alternative=inmargin]
\showframe

\starttext
   \dorecurse{16}{\section{Blah}
 \input tufte}
\stoptext


\startsetups[\??headrenderings:\v!inmargin]
\vbox {
\headsetupspacing
\begstrut
\dontleavehmode
\ifconditional\headshownumber
\llap {
\signalrightpage
\hbox {
\hfill
\headnumbercontent
\doifrightpageelse {
\scratchdistance\leftmargindistance
} {
\scratchdistance\rightmargindistance
}

\hskip\dimexpr\d_strc_rendering_local_leftoffset+\scratchdistance\relax
}
}
\fi
\headtextcontent
}
\stopsetups

-
  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] section numbers in margin eventually get placed too far left

2013-09-17 Thread Marco Patzer
On 2013–09–17 Sanjoy Mahajan wrote:

> Is this a bug, or just a change in setuphead that I didn't take
> account of?

It is a bug. ConTeXt sometimes uses the rightmargindistance for the
left margin, which would be correct for a double sided layout, but
is definitely wrong for a single sided document. However, even in a
double sided layout the calculations are not correct. Here a smaller
example. Note that the output is wrong either way, with
\setuppagenumbering commented out or not.

%% \setuppagenumbering[alternative=doublesided]
\setuplayout[rightmargindistance=1cm]
\setuphead[section][alternative=inmargin]
\showframe

\starttext
  \dorecurse{16}{\section{Blah}
\input tufte}
\stoptext

Marco


signature.asc
Description: Digital signature
___
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] section numbers in margin eventually get placed too far left

2013-09-17 Thread Sanjoy Mahajan
This test file

==
\setuplayout[leftmargindistance=0.125in,
  leftmargin=0.625in,
  width=4.75in,
  rightmargindistance=0.25in,
  rightmargin=0.25in]

\setuphead[section][alternative=inmargin]
\showframe

\starttext
\dorecurse{6}{\section{Blah} 
\input tufte
}

\stoptext
==

asks for section numbers in the left margin, separated from the section
title by the leftmargindistance.  It works fine for the first four
sections.  But sections 5 and 6 (on page 2) have the section number
shifted further left from the correct position by roughly 10pt or so.

It seems very sensitive to the layout.  If I change the
leftmargindistance to 0.25in, the section numbers are all placed
correctly.

I noticed the problem on my default context version:

ConTeXt  ver: 2013.05.28 00:36 MKIV current [from the Debian TL2013 pkgs]

It also happens with the live ConTeXt and with vanilla TL2013.  (Though
it works fine with MKII.)

Is this a bug, or just a change in setuphead that I didn't take account of?

-Sanjoy
___
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] [***SPAM***] Indentation for page-numbers

2013-08-26 Thread H. Özoguz

\define[1]\PagenumberCommand
   {\doifoddpageelse
  {\offset[x=-1cm]{#1}}
  {\offset[x=+1cm]{#1}}}

\setuppagenumbering[alternative=doublesided,location={footer,right},command=\PagenumberCommand]

\starttext
\dorecurse{20}{\input knuth\par}
\stoptext

Wolfgang


Thanks again Wolfgang, perfect!

Huseyin
___
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] [***SPAM***] Indentation for page-numbers

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 13:25 schrieb H. Özoguz :

> Hello,
> 
> how to modify \setuppagenumbering to get indented page-numers?
> 
> I use:
> 
> \setuppagenumbering[alternative=doublesided,
>location={footer,right},
>way=bytext, sectionnumber=yes, partnumber=yes]
> 
> Is there a key "indent" or something to get the pagenumbers a small bit 
> indented (direction: middle of the page).

\define[1]\PagenumberCommand
  {\doifoddpageelse
 {\offset[x=-1cm]{#1}}
 {\offset[x=+1cm]{#1}}}

\setuppagenumbering[alternative=doublesided,location={footer,right},command=\PagenumberCommand]

\starttext
\dorecurse{20}{\input knuth\par}
\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] TOC: Chapter-titles without page-numbers

2013-08-26 Thread Wolfgang Schuster

Am 26.08.2013 um 12:20 schrieb "H. Özoguz" :

> Hi there,
> 
> in the attachment you see an example of a toc (of some german bestseller) I 
> want to reproduce in ConText.
> 
> The only problem left, I could not achieve myself, is: How to set the 
> chapter-titles in the toc without pagenumbers (as you see in the attached 
> jpg)?

\setuplist[chapter][pagenumber=no]

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] [***SPAM***] Indentation for page-numbers

2013-08-26 Thread H. Özoguz

Hello,

how to modify \setuppagenumbering to get indented page-numers?

I use:

\setuppagenumbering[alternative=doublesided,
location={footer,right},
way=bytext, sectionnumber=yes, partnumber=yes]

Is there a key "indent" or something to get the pagenumbers a small bit 
indented (direction: middle of the page).


Thanks!
Huseyin

___
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] TOC: Chapter-titles without page-numbers

2013-08-26 Thread H. Özoguz

Hi there,

in the attachment you see an example of a toc (of some german 
bestseller) I want to reproduce in ConText.


The only problem left, I could not achieve myself, is: How to set the 
chapter-titles in the toc without pagenumbers (as you see in the 
attached jpg)?


Thanks for your help one again!

Best Regards
Huseyin
<>___
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] Part numbers

2013-08-12 Thread Tim Steenvoorden
Thanks Pablo! Works like a charm.

Cheers,
Tim

On 11 augustus 2013 at 19:02:40, Pablo Rodríguez (oi...@web.de) wrote:

On 08/11/2013 03:08 PM, Tim Steenvoorden wrote:  
> Hi all,  
>  
> I have a document with parts and chapters. I'd like to number the  
> chapters continuously through the whole document. Figured out this has  
> to be done with \definestructureresetset instead of the resetnumber=no  
> option in \setuphead. But I don't want to include the number of the part  
> in chapters and sections. How do I do that?  

Hi Tim,  

I think this is what you need:  

\definestructureresetset[default][1,0,1][1]  
\setuphead[chapter][sectionsegments=chapter]  
\setuphead[section][sectionsegments=chapter:section]  
\starttext  
\completecontent  
\dorecurse{5}{\part{Part}  
\dorecurse{2}{\chapter{Chapter}  
\dorecurse{2}{\section{Section  
\stoptext  

I hope it helps,  


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  
___
___
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] Part numbers

2013-08-11 Thread Pablo Rodríguez
On 08/11/2013 03:08 PM, Tim Steenvoorden wrote:
> Hi all,
> 
> I have a document with parts and chapters. I'd like to number the
> chapters continuously through the whole document. Figured out this has
> to be done with \definestructureresetset instead of the resetnumber=no
> option in \setuphead. But I don't want to include the number of the part
> in chapters and sections. How do I do that?

Hi Tim,

I think this is what you need:

\definestructureresetset[default][1,0,1][1]
\setuphead[chapter][sectionsegments=chapter]
\setuphead[section][sectionsegments=chapter:section]
\starttext
\completecontent
\dorecurse{5}{\part{Part}
\dorecurse{2}{\chapter{Chapter}
\dorecurse{2}{\section{Section
\stoptext

I hope it helps,


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
___


[NTG-context] Part numbers

2013-08-11 Thread Tim Steenvoorden
Hi all,

I have a document with parts and chapters. I'd like to number the chapters 
continuously through the whole document. Figured out this has to be done with 
\definestructureresetset instead of the resetnumber=no option in \setuphead. 
But I don't want to include the number of the part in chapters and sections. 
How do I do that?

Cheers,
Tim



% Used to be: \setuphead[part][resetnumber=no]
\defineresetset[default][1,0][1]% do not reset chapters after parts, reset 
anything else

\starttext

\part{ONE}
\chapter{one}
\chapter{two}

\part{TWO}
\chapter{three}
\chapter{four}

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


[NTG-context] Page numbers off-by-one in latest beta

2013-07-14 Thread Sietse Brouwer
Hi Hans, all,

In the latest beta,

\starttext
asdf
\stoptext

produces a document that starts numbering at page 2. A 4-page document
will be numbered 2, 3, 4, 5.

Cheers,
Sietse
___
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] Multiple footnote-numbers referring only to one footnote

2013-06-05 Thread H. Özoguz

\starttext

First note.\footnote[fnt:one]{First footnote}

Second note.\footnote[fnt:two]{Second footnote}

Third note.\note[fnt:one]

\stoptext

Wolfgang


Perfect, thanks again 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] Multiple footnote-numbers referring only to one footnote

2013-06-05 Thread Wolfgang Schuster

Am 05.06.2013 um 17:47 schrieb "H. Özoguz" :

> No way? I am sure, there is some :)
> 
> Another solution, which would work equally would be to have two 
> footnote-numbers with the same number, which refer to the same footnote. This 
> way:
> 
> Text [Footnote number 1] text [Footnote number 1]
> 
> Footer: 1 Some Footnote.
> 
> Is that possible?

\starttext

First note.\footnote[fnt:one]{First footnote}

Second note.\footnote[fnt:two]{Second footnote}

Third note.\note[fnt:one]

\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] Multiple footnote-numbers referring only to one footnote

2013-06-05 Thread Mica Semrick
Have you had a look at
http://wiki.contextgarden.net/Footnotes#Footnote_Numbering ?

Can you post some code of what you've already tried?


On Wed, Jun 5, 2013 at 8:47 AM, "H. Özoguz"  wrote:

> No way? I am sure, there is some :)
>
> Another solution, which would work equally would be to have two
> footnote-numbers with the same number, which refer to the same footnote.
> This way:
>
> Text [Footnote number 1] text [Footnote number 1]
>
> Footer: 1 Some Footnote.
>
> Is that possible?
> Thanks
>
> Huseyin
> __**__**
> ___
> 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 <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/<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] Multiple footnote-numbers referring only to one footnote

2013-06-05 Thread H. Özoguz

No way? I am sure, there is some :)

Another solution, which would work equally would be to have two 
footnote-numbers with the same number, which refer to the same footnote. 
This way:


Text [Footnote number 1] text [Footnote number 1]

Footer: 1 Some Footnote.

Is that possible?
Thanks
Huseyin
___
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] Multiple footnote-numbers referring only to one footnote

2013-06-04 Thread H. Özoguz

Hello,

how to achieve this: I want more than one footenote-number, which refer 
to the very same footnote. The footnote should than enumerate the 
numbers like:


Text (Footnote 1) Text (Footnote 2)
-
1,2 Very explenating information.

Thanks for help.
Huseyin
___
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] How to place page numbers in the margin, at the bottom of the "text" area?

2013-06-02 Thread Marcin Borkowski
Hi everybody,

I'd like to position page numbers in the margin, at the bottom, but
*not* in the footer; instead, I want them to be aligned so that their
baseline coincides with the baseline of the last line on the page.

Is it possible, and if yes, how?

Regards,

-- 
Marcin Borkowski
room B3-46, phone no +48 61 829 5375
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Numbers in Headings

2013-05-21 Thread Jannik Voges
Hello everyone,


When I try the following simple example, the first \subsection generates 1 as 
the section number. I would want to get a 1.0.1 without defining my own section 
numbers. Is there an easier way to get the desired number?

Thanks for your help.

Jannik

\starttext

\chapter{Test}
\subsection{Test}

\chapter{Test}
\section{Test}
\subsection{Test}

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


Re: [NTG-context] How to change the color of numbers just before the footnote text?

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 10:44 schrieb Tim Li :

> Now I have to change the color of numbers just before the footnote text so 
> that it can match the color of text area.  I try to do it like this:
>  
> \def\myfootnotecolor#1{%
> \startcolor[red]#1\stopcolor}
>  
> \setupfootnotes
>[numbercommand={\myfootnotecolor}]
>  
> or
>  
> \setupfootnotes
>[foregroundcolor=red]
>  
> either method has no effect.

For the number in the running text you have to use

  \setupnote[footnote][textcolor=red]

while for the number in the footnote block you have to use

  \setupnotation[footnote][headcolor=red]

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] How to change the color of numbers just before the footnote text?

2013-04-15 Thread Tim Li
Now I have to change the color of numbers just before the footnote text so that 
it can match the color of text area.  I try to do it like this: 
\def\myfootnotecolor#1{%\startcolor[red]#1\stopcolor} \setupfootnotes   
[numbercommand={\myfootnotecolor}] or \setupfootnotes   [foregroundcolor=red] 
either method has no effect.___
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] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
Great! It works now as expected. Thank you Hans for the fix!

Willi
On Apr 5, 2013, at 4:08 PM, Willi Egger wrote:

> Thank you folks!
> 
> about the synchronization I did not write, but in my case there was also 
> something with interference when using subsubject paragraphs inside a 
> section, then the counter was reset although I had set the "way=bysection"...
> 
> 
> I will now donwload the latest beta and see 
> 
> Thanks!
> 
> Willi
> On Apr 4, 2013, at 11:13 PM, Hans Hagen wrote:
> 
>> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>>> This might not be the best way to do it, but when I need it, I use
>>> 
>>> \resetnumber[problem]
>>> 
>>> for my
>>> 
>>> \startproblem
>>> 
>>> \stopproblem
>>> 
>>> enumeration.
>> 
>> \defineenumeration[test]
>> 
>> \setupenumeration[test][way=bysection]
>> 
>> \starttext
>>   \startsection[title=one]
>>   \starttest alpha \stoptest
>>   \starttest beta  \stoptest
>>   \stopsection
>>   \startsection[title=two]
>>   \starttest alpha \stoptest
>>   \starttest beta  \stoptest
>>   \stopsection
>> \stoptext
>> 
>> -
>> Hans Hagen | PRAGMA ADE
>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>| www.pragma-pod.nl
>> -
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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] Resetting enumeration numbers

2013-04-05 Thread Willi Egger
Thank you folks!

about the synchronization I did not write, but in my case there was also 
something with interference when using subsubject paragraphs inside a section, 
then the counter was reset although I had set the "way=bysection"...


I will now donwload the latest beta and see 

Thanks!

Willi
On Apr 4, 2013, at 11:13 PM, Hans Hagen wrote:

> On 4/4/2013 10:45 PM, Matthias Weber wrote:
>> This might not be the best way to do it, but when I need it, I use
>> 
>> \resetnumber[problem]
>> 
>> for my
>> 
>> \startproblem
>> 
>> \stopproblem
>> 
>> enumeration.
> 
> \defineenumeration[test]
> 
> \setupenumeration[test][way=bysection]
> 
> \starttext
>\startsection[title=one]
>\starttest alpha \stoptest
>\starttest beta  \stoptest
>\stopsection
>\startsection[title=two]
>\starttest alpha \stoptest
>\starttest beta  \stoptest
>\stopsection
> \stoptext
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian

On 5 avr. 2013, at 14:48, Wolfgang Schuster  wrote:

> 
> Am 05.04.2013 um 11:31 schrieb Otared Kavian :
> 
>> 
>> On 4 avr. 2013, at 23:13, Hans Hagen  wrote:
>>> […]
>>> \defineenumeration[test]
>>> 
>>> \setupenumeration[test][way=bysection]
>>^
>> This should rather be
>>  \setupenumerations[test][way=bysection]
> 
> No, \setupenumeration is the correct command for MkIV, the plural form
> \setupenumerations is only a synonym and was added for backwards 
> compatibility.

Thanks Wolfgang, of course you are right and somehow I overlooked this change…
However on the Garden, there is a description for \setupenumerations
http://wiki.contextgarden.net/Command/setupenumerations
but nothing about \ setupenumeration. Later today I'll add a few words on the 
latter to the wiki.

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

Re: [NTG-context] Resetting enumeration numbers

2013-04-05 Thread Wolfgang Schuster

Am 05.04.2013 um 11:31 schrieb Otared Kavian :

> 
> On 4 avr. 2013, at 23:13, Hans Hagen  wrote:
>> […]
>> \defineenumeration[test]
>> 
>> \setupenumeration[test][way=bysection]
>^
> This should rather be
>   \setupenumerations[test][way=bysection]

No, \setupenumeration is the correct command for MkIV, the plural form
\setupenumerations is only a synonym and was added for backwards compatibility.

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] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian

On 4 avr. 2013, at 23:13, Hans Hagen  wrote:
> […]
> \defineenumeration[test]
> 
> \setupenumeration[test][way=bysection]
   ^
This should rather be
\setupenumerations[test][way=bysection]

Best regards: OK

> 
> \starttext
>\startsection[title=one]
>\starttest alpha \stoptest
>\starttest beta  \stoptest
>\stopsection
>\startsection[title=two]
>\starttest alpha \stoptest
>\starttest beta  \stoptest
>\stopsection
> \stoptext
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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

Re: [NTG-context] Resetting enumeration numbers

2013-04-04 Thread Hans Hagen

On 4/4/2013 11:18 PM, Aditya Mahajan wrote:

On Thu, 4 Apr 2013, Hans Hagen wrote:


On 4/4/2013 10:45 PM, Matthias Weber wrote:

This might not be the best way to do it, but when I need it, I use

\resetnumber[problem]

for my

\startproblem

\stopproblem

enumeration.


\defineenumeration[test]

\setupenumeration[test][way=bysection]


I was testing with \definenumeration[test][way=bysection] but that did
not work. Is that a bug?


i noticed too ... I've just added a synchronize to the definers too

-
  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] Resetting enumeration numbers

2013-04-04 Thread Aditya Mahajan

On Thu, 4 Apr 2013, Hans Hagen wrote:


On 4/4/2013 10:45 PM, Matthias Weber wrote:

This might not be the best way to do it, but when I need it, I use

\resetnumber[problem]

for my

\startproblem

\stopproblem

enumeration.


\defineenumeration[test]

\setupenumeration[test][way=bysection]


I was testing with \definenumeration[test][way=bysection] but that did not 
work. Is that a bug?


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] Resetting enumeration numbers

2013-04-04 Thread Aditya Mahajan

On Thu, 4 Apr 2013, Willi Egger wrote:


Hi all,

I have a document, wherein reside chapters and sections. I have an 
enumeration defined which is used in the sections. What I would like to 
achieve is, to reset the numbering at the beginning of each section. How 
is this done?


\defineenumeration defines a number with the same name, so you can use 
\setupnumber to modify the behavior of the number.


\defineenumeration[whatever]
\setupnumber[whatever][way=bysection]

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] Resetting enumeration numbers

2013-04-04 Thread Hans Hagen

On 4/4/2013 10:45 PM, Matthias Weber wrote:

This might not be the best way to do it, but when I need it, I use

\resetnumber[problem]

for my

\startproblem

\stopproblem

enumeration.


\defineenumeration[test]

\setupenumeration[test][way=bysection]

\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
\stoptext

-
  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] Resetting enumeration numbers

2013-04-04 Thread Hans Hagen

On 4/4/2013 10:45 PM, Matthias Weber wrote:

This might not be the best way to do it, but when I need it, I use

\resetnumber[problem]

for my

\startproblem

\stopproblem

enumeration.


\defineenumeration[test]

\setupenumeration[test][way=bysection]

\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
\stoptext

-
  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] Resetting enumeration numbers

2013-04-04 Thread Matthias Weber
This might not be the best way to do it, but when I need it, I use

\resetnumber[problem]

for my

\startproblem

\stopproblem

enumeration.

Matthias


On Apr 4, 2013, at 4:01 PM, Willi Egger  wrote:

> Hi all,
> 
> I have a document, wherein reside chapters and sections. I have an 
> enumeration defined which is used in the sections. What I would like to 
> achieve is, to reset the numbering at the beginning of each section. 
> How is this done?
> 
> 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
> ___

___
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] Resetting enumeration numbers

2013-04-04 Thread Willi Egger
Hi all,

I have a document, wherein reside chapters and sections. I have an enumeration 
defined which is used in the sections. What I would like to achieve is, to 
reset the numbering at the beginning of each section. 
How is this done?

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] TOC: Chapters with and without page-numbers

2013-03-15 Thread Wolfgang Schuster

Am 15.03.2013 um 07:46 schrieb H. Özoguz :

> Maybe I have not made it clear, what I mean?
> 
> My Minexample is:
> 
> \setuplist[chapter][pagenumber=no]
> \starttext
> \completecontent
> \chapter{Chapter 1}
> \section{Section 1}
> \chapter{Chapter 2}
> \stoptext
> 
> Now Chapter 1 is without pagenumber in the TOC, correct, because it has a 
> section after the chapter-title! But Chapter 2 has no sections, so it need a 
> page number, how to do that?


You can play with the following solution, it’s a bit dirty because you have to 
save the values of the chapter entry before you check for section entries.

\setuplist[chapter][alternative=mychapter]

\definelistalternative[mychapter][renderingsetup=list:mychapter]

\startsetups[list:mychapter]

  \par

  \setbox\scratchboxone\hbox{\currentlistentrynumber \quad 
\currentlistentrytitle \quad \currentlistentrypagenumber}
  \setbox\scratchboxtwo\hbox{\currentlistentrynumber \quad 
\currentlistentrytitle}

  \determinelistcharacteristics[section]

  \ifnum\listlength=0
\box\scratchboxone
  \else
\box\scratchboxtwo
  \fi

  \par

\stopsetups

\starttext
\completecontent
\chapter{Chapter 1}
\section{Section 1}
\chapter{Chapter 2}
\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] TOC: Chapters with and without page-numbers

2013-03-15 Thread Jonathan Barchi
On Fri, Mar 15, 2013 at 11:53 AM, john Culleton  wrote:
> On Fri, 15 Mar 2013 09:07:33 +0100
> "Keith J. Schultz"  wrote:
>
>> Hi,
>>
>> I could find any options to do what you want.
>>
>> I assume you would have to redefine completecontent command to get
>> the functionality you need.
>>
>> I have not checked, but I assume that completecontent accesses a
>> Lua-table with the TOC information. It should be easy enough to use
>> this table to create the effect you want.
>>
>> regards
>>   Keith.
>>
>> Am 15.03.2013 um 07:46 schrieb H. Özoguz :
>>
>> > Maybe I have not made it clear, what I mean?
>> >
>> > My Minexample is:
>> >
>> > \setuplist[chapter][pagenumber=no]
>> > \starttext
>> > \completecontent
>> > \chapter{Chapter 1}
>> > \section{Section 1}
>> > \chapter{Chapter 2}
>> > \stoptext
>> >
>> > Now Chapter 1 is without pagenumber in the TOC, correct, because it
>> > has a section after the chapter-title! But Chapter 2 has no
>> > sections, so it need a page number, how to do that?
>>
>> ___
>> 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
>> ___
>
>
> With other versions of TeX (eplain comes to mind) You can edit the
> TOC file external to the tex program, and then take a second run
> without recording page numbers. There is a command for this.
> With Context this might be too complex.
>
> I see no problem with having a page number on chapter 1 however.
> Most books look that way. The Chicago Manual of Style  has:
>
> Proofs (a chapter)   91
> Introduction (a section)  91
>
>
> --
> John Culleton
> Wexford Press
> Free list of books for self-publishers:
> http://wexfordpress.net/shortlist.html
> PDF e-book: "Create Book Covers with Scribus"
> available at http://www.booklocker.com/books/4055.html
> ___
> 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
> ___


I think you may be able to do this with a combination of \setupheads
and \setuphead commands, along with possibly defining a new head that
inherits from chapter (\definehead[name][chapter], then
\setuphead[name]).

I don't really have time to play much with this now, but see the
following links for a bunch more information on the commands above and
on section heads in general. There are several arguments to
setupheads/setuphead that modify how numbering is handled.

1. http://wiki.contextgarden.net/Category:Command/Sections
2. http://wiki.contextgarden.net/Titles

The second article, in particular, has been very helpful for me in
setting up some of the headers for my dissertation.

Jon
___
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] TOC: Chapters with and without page-numbers

2013-03-15 Thread john Culleton
On Fri, 15 Mar 2013 09:07:33 +0100
"Keith J. Schultz"  wrote:

> Hi,
> 
> I could find any options to do what you want.
> 
> I assume you would have to redefine completecontent command to get
> the functionality you need.
> 
> I have not checked, but I assume that completecontent accesses a
> Lua-table with the TOC information. It should be easy enough to use
> this table to create the effect you want.
> 
> regards
>   Keith.
> 
> Am 15.03.2013 um 07:46 schrieb H. Özoguz :
> 
> > Maybe I have not made it clear, what I mean?
> > 
> > My Minexample is:
> > 
> > \setuplist[chapter][pagenumber=no]
> > \starttext
> > \completecontent
> > \chapter{Chapter 1}
> > \section{Section 1}
> > \chapter{Chapter 2}
> > \stoptext
> > 
> > Now Chapter 1 is without pagenumber in the TOC, correct, because it
> > has a section after the chapter-title! But Chapter 2 has no
> > sections, so it need a page number, how to do that?
> 
> ___
> 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
> ___


With other versions of TeX (eplain comes to mind) You can edit the
TOC file external to the tex program, and then take a second run
without recording page numbers. There is a command for this.
With Context this might be too complex. 

I see no problem with having a page number on chapter 1 however.
Most books look that way. The Chicago Manual of Style  has:

Proofs (a chapter)   91
Introduction (a section)  91


-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html
___
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] TOC: Chapters with and without page-numbers

2013-03-15 Thread Keith J. Schultz
Hi,

I could find any options to do what you want.

I assume you would have to redefine completecontent command to get
the functionality you need.

I have not checked, but I assume that completecontent accesses a Lua-table
with the TOC information. It should be easy enough to use this table to create
the effect you want.

regards
Keith.

Am 15.03.2013 um 07:46 schrieb H. Özoguz :

> Maybe I have not made it clear, what I mean?
> 
> My Minexample is:
> 
> \setuplist[chapter][pagenumber=no]
> \starttext
> \completecontent
> \chapter{Chapter 1}
> \section{Section 1}
> \chapter{Chapter 2}
> \stoptext
> 
> Now Chapter 1 is without pagenumber in the TOC, correct, because it has a 
> section after the chapter-title! But Chapter 2 has no sections, so it need a 
> page number, how to do that?

___
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] TOC: Chapters with and without page-numbers

2013-03-14 Thread H. Özoguz

Maybe I have not made it clear, what I mean?

My Minexample is:

\setuplist[chapter][pagenumber=no]
\starttext
\completecontent
\chapter{Chapter 1}
\section{Section 1}
\chapter{Chapter 2}
\stoptext

Now Chapter 1 is without pagenumber in the TOC, correct, because it has 
a section after the chapter-title! But Chapter 2 has no sections, so it 
need a page number, how to do that?


Regards,
Huseyin
___
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] TOC: Chapters with and without page-numbers

2013-03-13 Thread H. Özoguz

Hello there,

normally I use

\setuplist[chapter][pagenumber=no]

to prevent pages for chapters in the TOC, because normally (!) after 
every chapter-titel comes a section-title, directly, without text 
between the two titles. And so it is in this case enough to give the 
page-number for the section-titles only.
But now I have an book with one single chapter, which do not have 
sections. So with


\setuplist[chapter][pagenumber=no]

it has no page-number in the TOC. I want to have the page-number for 
this single chapter-title only, but for the other chapter-titles (which 
have section-titles after them) I want still the above setting. How to 
do that?


Thank you!
Huseyin
___
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] TOC: Chapters with and without page-numbers

2013-03-12 Thread H. Özoguz

Hello there,

normally I use

\setuplist[chapter][pagenumber=no]

to prevent pages for chapters in the TOC, because normally (!) after 
every chapter-titel comes a section-title, directly, without text 
between the two titles. And so it is in this case enough to give the 
page-number for the section-titles only.
But now I have an book with one single chapter, which do not have 
sections. So with


\setuplist[chapter][pagenumber=no]

it has no page-number in the TOC. I want to have the page-number for 
this single chapter-title only, but for the other chapter-titles (which 
have section-titles after them) I want still the above setting. How to 
do that?


Thank you!
Huseyin

PS.: Sorry for sending this question with the wrong email-adress one 
minute before, it awaits moderation, but can be deleted, of course.

___
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] Logical Page Numbers (PDF Bookmarks)

2013-02-13 Thread Troy Henderson
I know how to make the page numbers in the frontmatter to use Roman
numerals, say, and in the bodymatter use Arabic numerals.  I also know how
to reset the page counter so that the numbering "starts over" after the
frontmatter.  However, I would like to have the page numbers appear in the
PDF bookmarks appear as

i, ii, iii, ... , 1, 2, 3, ...

If there are 5 pages in the frontmatter, then all of my page numbers are
off by 5 in the PDF bookmarks.  How can this be fixed?

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
___

[NTG-context] \copypages and page numbers

2013-02-12 Thread Troy Henderson
I have a scanned (raster) PDF that I am inserting into my document via
\copypages.  However, the document's page number is not showing on top of
this raster PDF page (presumably because \copypages places the page on top
of everything else).  How can I ensure that the page number is on top of
raster page instead of behind?

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
___

[NTG-context] Invisibile page numbers for TOC

2013-01-31 Thread Eslamica-Beratung

Hi together,

I use \completecontent for the TOC. How to deactivate the printing of 
the pagenumbers on TOC-pages? But they should be counted invisibely, so 
that the first text-page begins with the real page number.


Best Regards
Huseyin


___
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] Invisibile page numbers for TOC

2013-01-30 Thread Wolfgang Schuster

Am 30.01.2013 um 12:23 schrieb H. Özoguz :

> Hi together,
> 
> I use \completecontent for the TOC. How to deactivate the printing of the 
> pagenumbers on TOC-pages? But they should be counted invisibely, so that the 
> first text-page begins with the real page number.

\startsectionblockenvironment[frontpart]
\setuppagenumbering[location=]
\stopsectionblockenvironment

%\startsectionblockenvironment[bodypart]
%\setcounter[userpage][1]
%\stopsectionblockenvironment

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stopbodymatter

\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] Invisibile page numbers for TOC

2013-01-30 Thread H. Özoguz

Hi together,

I use \completecontent for the TOC. How to deactivate the printing of 
the pagenumbers on TOC-pages? But they should be counted invisibely, so 
that the first text-page begins with the real page number.


Best Regards
Huseyin
___
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] Page Numbers on Outer Edge of Outer Margin

2013-01-13 Thread Marco Patzer
On 2013–01–13 Malte Stien wrote:

> One thing, though, it turns out the #pageno variable does not seem
> to work. I had to rename it to #1 to do the trick. Even #p did not
> work. Do those variables have to be numbers?

http://wiki.contextgarden.net/MkVI

Marco


signature.asc
Description: Digital signature
___
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] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Malte Stien
Marco,

Thank you, I have opted for your solution as it was the one I most easily 
understood and it seems to do the job. One thing, though, it turns out the 
#pageno variable does not seem to work. I had to rename it to #1 to do the 
trick. Even #p did not work. Do those variables have to be numbers? Here is 
what worked in the end:

\setuppagenumbering[
alternative=doublesided,
location={header, margin},
style=bold,
command=\PageNumberCommand
]

\starttexdefinition PageNumberCommand #1
 \doifoddpageelse
   {\rightaligned{#1}}
   {\leftaligned{#1}}
\stoptexdefinition

Thank you again.
Malte.


On 13/01/2013, at 2:20 AM, ntg-context-requ...@ntg.nl wrote:

> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://www.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Layer vs. overlay (Hans Hagen)
>   2. Page Numbers on Outer Edge of Outer Margin (Malte Stien)
>   3. Re: Page Numbers on Outer Edge of Outer Margin (Wolfgang Schuster)
>   4. Re: Page Numbers on Outer Edge of Outer Margin (Marco Patzer)
>   5. Re: Page Numbers on Outer Edge of Outer Margin (Wolfgang Schuster)
>   6. Re: Node for startbuffer. (Andre Caldas)
>   7. Re: Page Numbers on Outer Edge of Outer Margin (Marco Patzer)
> 
> 
> --
> 
> Message: 1
> Date: Sat, 12 Jan 2013 14:25:15 +0100
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Cc: Wolfgang Schuster 
> Subject: Re: [NTG-context] Layer vs. overlay
> Message-ID: <50f1643b.9030...@wxs.nl>
> Content-Type: text/plain; charset=windows-1250; format=flowed
> 
> On 1/12/2013 8:44 AM, Wolfgang Schuster wrote:
> 
>> Overlays and Layers are to different mechanism which are powerful when you 
>> combine both but first you have to know what each of them does.
> 
>> ...
> 
> perfect explanation
> 
> 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
> -----
> 
> 
> --
> 
> Message: 2
> Date: Sun, 13 Jan 2013 00:49:34 +1100
> From: Malte Stien 
> To: "ntg-context@ntg.nl" 
> Subject: [NTG-context] Page Numbers on Outer Edge of Outer Margin
> Message-ID: <6c558222-1692-4ef6-802d-d9a114ecc...@stien.de>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi,
> 
> I have a rather wide, 41mm, outer margin in a manual and I am trying to put 
> the page number into the margin like so:
> 
>  \setuppagenumbering[
>   alternative=doublesided,
>   location={header, margin},
>   style=bold,
> ]
> 
> The trouble is that the page number is only a few millimetres wide and gets 
> positioned on the inside edge of my outside margin. Hence, it does not end up 
> close enough to the edge of the page. I guess, I would like to right-align it 
> 4mm from the edge of a right-hand page and left-align it by the same amount 
> from the edge of a left-hand page. Is that doable?
> 
> Thank you,
> Malte.
> 
> 
> 
> --
> 
> Message: 3
> Date: Sat, 12 Jan 2013 15:13:09 +0100
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin
> Message-ID: <49577a0c-5abf-4c04-8d83-736879870...@gmail.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> Am 12.01.2013 um 14:49 schrieb Malte Stien :
> 
>> Hi,
>> 
>> I have a rather wide, 41mm, outer margin in a manual and I am trying to put 
>> the page number into the margin like so:
>> 
>> \setuppagenumbering[
>>  alternative=doublesided,
>>  location={header, margin},
>>  style=bold,
>> ]
>> 
>> The trouble is that the page number is only a few millimetres wide and gets 
>> positioned on the inside edge of my outside margin. Hence, it does not end 
>> up close enough to the edge of the page. I guess, I would like t

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Marco Patzer
On 2013–01–12 Wolfgang Schuster wrote:

> When you’re in the header you can just use \doifoddpageelse to set different
> values for left/right pages, \signalrightpage is only necessary for text *in*
> the document.

Thanks for the correction. I updated the wiki.


Marco


signature.asc
Description: Digital signature
___
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] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Wolfgang Schuster

Am 12.01.2013 um 15:23 schrieb Marco Patzer :

> On 2013–01–13 Malte Stien wrote:
> 
>> The trouble is that the page number is only a few millimetres wide
>> and gets positioned on the inside edge of my outside margin.
>> Hence, it does not end up close enough to the edge of the page. I
>> guess, I would like to right-align it 4mm from the edge of a
>> right-hand page and left-align it by the same amount from the edge
>> of a left-hand page. Is that doable?
> 
> You can use the `command` key to hook in a custom macro which does
> the placement.
> 
> \setuppagenumbering
>  [alternative=doublesided,
>   location={header, margin},
>   style=bold,
>   command=\PageNumberCommand]
> 
> \starttexdefinition PageNumberCommand #pageno
>  \signalrightpage
>  \doifrightpageelse
>{\rightaligned{#pageno}}
>{\leftaligned{#pageno}}
> \stoptexdefinition
> 
> Marco

When you’re in the header you can just use \doifoddpageelse to set different
values for left/right pages, \signalrightpage is only necessary for text *in*
the document.

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] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Marco Patzer
On 2013–01–13 Malte Stien wrote:

> The trouble is that the page number is only a few millimetres wide
> and gets positioned on the inside edge of my outside margin.
> Hence, it does not end up close enough to the edge of the page. I
> guess, I would like to right-align it 4mm from the edge of a
> right-hand page and left-align it by the same amount from the edge
> of a left-hand page. Is that doable?

You can use the `command` key to hook in a custom macro which does
the placement.

\setuppagenumbering
  [alternative=doublesided,
   location={header, margin},
   style=bold,
   command=\PageNumberCommand]

\starttexdefinition PageNumberCommand #pageno
  \signalrightpage
  \doifrightpageelse
{\rightaligned{#pageno}}
{\leftaligned{#pageno}}
\stoptexdefinition


Marco


signature.asc
Description: Digital signature
___
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] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Wolfgang Schuster

Am 12.01.2013 um 14:49 schrieb Malte Stien :

> Hi,
> 
> I have a rather wide, 41mm, outer margin in a manual and I am trying to put 
> the page number into the margin like so:
> 
>  \setuppagenumbering[
>   alternative=doublesided,
>   location={header, margin},
>   style=bold,
> ]
> 
> The trouble is that the page number is only a few millimetres wide and gets 
> positioned on the inside edge of my outside margin. Hence, it does not end up 
> close enough to the edge of the page. I guess, I would like to right-align it 
> 4mm from the edge of a right-hand page and left-align it by the same amount 
> from the edge of a left-hand page. Is that doable?

Method 1:

\setuppagenumbering[alternative=doublesided,location=]

\definelayer[pagenumber][doublesided=yes,width=\paperwidth,height=\paperheight]

\startsetups[pagenumber]
  \setlayer[pagenumber][even][preset=lefttop, 
x=4mm,y=\topspace]{\strut\bf\userpagenumber}
  \setlayer[pagenumber][odd] 
[preset=righttop,x=4mm,y=\topspace]{\strut\bf\userpagenumber}
\stopsetups

\setupbackgrounds[page][background=pagenumber,setups=pagenumber]

\starttext \showframe
\dorecurse{10}{\dontleavehmode\page}
\stoptext

Method 2:

\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
  [margin]
  [][\rightaligned{\bf\userpagenumber}]
  [\leftaligned{\bf\userpagenumber}][]

\setupheader[margin][align=outer]

\starttext \showframe
\dorecurse{10}{\dontleavehmode\page}
\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] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Malte Stien
Hi,

I have a rather wide, 41mm, outer margin in a manual and I am trying to put the 
page number into the margin like so:

  \setuppagenumbering[
alternative=doublesided,
location={header, margin},
style=bold,
]

The trouble is that the page number is only a few millimetres wide and gets 
positioned on the inside edge of my outside margin. Hence, it does not end up 
close enough to the edge of the page. I guess, I would like to right-align it 
4mm from the edge of a right-hand page and left-align it by the same amount 
from the edge of a left-hand page. Is that doable?

Thank you,
Malte.

___
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] Resetting Page Numbers

2012-12-10 Thread Troy Henderson
Thanks again Wolfgang.  That works perfectly.

Troy
___
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] Resetting Page Numbers

2012-12-10 Thread Wolfgang Schuster

Am 10.12.2012 um 17:11 schrieb Troy Henderson :

> I would like to reset the page number counter after the first (title) page.  
> Currently, I have
> 
> \setupfooter[state=empty]
> \setuppagenumbering[location={footer,middle}]
> \setupfootertexts[Page \currentpage\ of \lastpage]
> \starttext
> This is my title page
> \page
> \resetnumber[page]
> This is page 1.
> \page
> This is page 2.
> \stoptext
> 
> but the second page footer renders as "Page 2 of 3" and the third page footer 
> renders as "Page 3 of 3".  I would like the second page footer to render 
> "Page 1 of 2" and the third page footer to render "Page 2 of 2".  That is, I 
> would like the first (title) page to not be used in the computation of 
> \currentpage or \lastpage.


The name of the counter is “userpage” and you have to use \pagenumber and 
\lastpagenumber to show the correct values.

\setupfooter[state=empty]
\setuppagenumbering[location={footer,middle}]
\setupfootertexts[Page \pagenumber\ of \lastpagenumber]

\starttext
This is my title page
\page
\resetcounter[userpage]
This is page 1.
\page
This is page 2.
\stoptext


A better solution is to use the “standardmakeup” environment for the title page 
because it doesn’t increase the page counter and leaves the header and footer 
empty.

\setuppagenumbering[location={footer,middle}]
\setupfootertexts[Page \pagenumber\ of \lastpagenumber]

\starttext

\startstandardmakeup
This is my title page
\stopstandardmakeup

This is page 1.\page
This is page 2.

\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] Resetting Page Numbers

2012-12-10 Thread Troy Henderson
I would like to reset the page number counter after the first (title)
page.  Currently, I have

\setupfooter[state=empty]
\setuppagenumbering[location={footer,middle}]
\setupfootertexts[Page \currentpage\ of \lastpage]
\starttext
This is my title page
\page
\resetnumber[page]
This is page 1.
\page
This is page 2.
\stoptext

but the second page footer renders as "Page 2 of 3" and the third page
footer renders as "Page 3 of 3".  I would like the second page footer to
render "Page 1 of 2" and the third page footer to render "Page 2 of 2".
That is, I would like the first (title) page to not be used in the
computation of \currentpage or \lastpage.

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
___

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Thanks Luigi! Grazie mille… That's exactly what I was seeking!

Best regards: OK

On 13 nov. 2012, at 13:54, luigi scarso  wrote:
> […]
> 
> Some help at 
> http://wiki.contextgarden.net/Titles
> 
> \starttext
> 
> 
> \startsection[title={Section 1 }] 
> \input ward
> \stopsection
> 
> 
> \startsection[title={Section 1 again},incrementnumber=no] % Here I want again 
> the number 1
> \input ward
> \stopsection
> 
> \startsection[title={Section 1 again},incrementnumber=yes] % Here I want 
> again the number 1
> \input ward
> \stopsection
> 
> 
> \startsection[title={Section with no number},number=no] % Here I don't want 
> numbers
> \input ward
> \stopsection
> 
> \stoptext
> 
> I think it's not safe to mix \section and \startsection \stopsection, because 
> the tags can be messed.
> -- 
> 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
> ___

___
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] Resetting numbers in section header

2012-11-13 Thread luigi scarso
On Tue, Nov 13, 2012 at 1:12 PM, Otared Kavian  wrote:

>
> On 13 nov. 2012, at 11:48, luigi scarso  wrote:
> >
> > Hm ,
> > is it save to mix \section and \startsection ..\stopsection ?
> >
> > --
> > luigi
> >
>
> Hi Luigi,
>
> Thanks for your attention, but the fact that \section and
> \start-\stop-section is used is of no importance regarding the way I am
> seeking to reset the section numbers. In fact in my document, where I
> noticed the problem, I use only \section, but I tried several
> possibilities, including \start-\stop-section.
>

Some help at
http://wiki.contextgarden.net/Titles

\starttext


\startsection[title={Section 1 }]
\input ward
\stopsection


\startsection[title={Section 1 again},incrementnumber=no] % Here I want
again the number 1
\input ward
\stopsection

\startsection[title={Section 1 again},incrementnumber=yes] % Here I want
again the number 1
\input ward
\stopsection


\startsection[title={Section with no number},number=no] % Here I don't want
numbers
\input ward
\stopsection

\stoptext

I think it's not safe to mix \section and \startsection \stopsection,
because the tags can be messed.
-- 
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] Resetting numbers in section header

2012-11-13 Thread Otared Kavian

On 13 nov. 2012, at 11:48, luigi scarso  wrote:
> 
> Hm ,
> is it save to mix \section and \startsection ..\stopsection ?
> 
> -- 
> luigi
> 

Hi Luigi,

Thanks for your attention, but the fact that \section and \start-\stop-section 
is used is of no importance regarding the way I am seeking to reset the section 
numbers. In fact in my document, where I noticed the problem, I use only 
\section, but I tried several possibilities, including \start-\stop-section.

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


Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread luigi scarso
On Tue, Nov 13, 2012 at 10:49 AM, Otared Kavian  wrote:

> Hi all,
>
> Assume for some reason I want a section to be numbered in a particular
> way: I thought the command resetnumber=yes would do that, but it seems that
> I am wrong… or this option is now obsolete.
> Can anyone have a look at the following example and give a hint?
>
> \starttext
>
> \section{Section 1}
> \input ward
>
> \startsection[title={Section 1 again},resetnumber=yes] % Here I want again
> the number 1
> \input ward
>
> \stopsection
>
> \setuphead[section][number=yes]
> \section{Section 3}
> \input ward
>
> \startsection[title={Section with no number},number=no] % Here I don't
> want numbers
> \input ward
> \stopsection
>
> \stoptext
>
> Thanks in advance: OK
>
Hm ,
is it save to mix \section and \startsection ..\stopsection ?

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

[NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Hi all,

Assume for some reason I want a section to be numbered in a particular way: I 
thought the command resetnumber=yes would do that, but it seems that I am 
wrong… or this option is now obsolete.
Can anyone have a look at the following example and give a hint?

\starttext

\section{Section 1}
\input ward

\startsection[title={Section 1 again},resetnumber=yes] % Here I want again the 
number 1
\input ward

\stopsection

\setuphead[section][number=yes]
\section{Section 3}
\input ward

\startsection[title={Section with no number},number=no] % Here I don't want 
numbers
\input ward
\stopsection

\stoptext

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


Re: [NTG-context] Suppressing Page Numbers

2012-10-23 Thread Marco Patzer
2012-10-23 Malte Stien:

Hi Malte

> For a particular document, though, I don't want page numbers. Is
> there a way of locally suppressing the page numbers while still
> importing (via environment) the layout.tex file? I guess, what I
> am asking is, is there a way to "override" the setuppagenumbering
> setup locally?

\setuppagenumbering
  [state=stop]


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] Suppressing Page Numbers

2012-10-23 Thread Malte Stien
Hi,

Thank you again for all the great help, I have received here in recent weeks; 
it is much appreciated.

I have page numbering setup in my layout.tex environment file, which I use for 
all of our documents.

% Show the page number in the middle of the footer
\setuppagenumbering[
alternative=singlesided,
location={header, margin},
style=bold,
]

For a particular document, though, I don't want page numbers. Is there a way of 
locally suppressing the page numbers while still importing (via environment) 
the layout.tex file? I guess, what I am asking is, is there a way to "override" 
the setuppagenumbering setup locally?

A workaround would be to have a second layout.tex file, just for this document, 
but I much prefer not to.

Regards,
Malte.

___
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] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar

Aditya, thankx,
BUT here is correction of my previous statement:

Wolfgang's solution: \setuphead [section, subsection] [placehead = hidden]
works correctly and does not insert any vertical space!!!
Unfortunately, it works in my minimal example only, but in my real 
application, this option does not work because the title added another 
level of numbering.


In my real application works properly choice: \setuphead [section, 
subsection] [placehead = no],

but that in turn inserts vertical space above the subsubsection title.

Aditya's option \setuphead [section, subsection] [placehead = empty] for 
me cause freezing LuaTEX.


(I compile MkIV TL2010, because my real source application is now with 
Standalone (minimals) version incompatible)


Jaroslav Hajtmar




Dne 15.9.2012 18:23, Aditya Mahajan napsal(a):

Try \setuphead[...][placehead=empty]

Aditya

On Sat, 15 Sep 2012, Jaroslav Hajtmar wrote:


Hello Wolfgang,
I feel that Your solution insert some vertical space above 
subsubsection text. Is it possible to get rid of it somehow?

I try \removeunwantedspaces, \blank[back] etc., but without efect.

Thanx Jaroslav

Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a):

Thanx Sietse.
I wikified it! (http://wiki.contextgarden.net/Command/setuphead).
This is my first attempt :-).
I finally get to it. It's very simple.
I'll try over there now and give good advice.

Jaroslav Hajtmar


Dne 15.9.2012 14:48, Sietse Brouwer napsal(a):

Hi Jaroslav,

While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

That might be because the wiki uses mkii by default; to use mkiv write


If you can't get an example to work at all, simply write the code 
inside

...,
instead. The picture of the output is nice to have, but not essential.
The code is still useful.

Cheers,
Sietse


Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

Thanks again
Jaroslav



On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar  
wrote:

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

Thanks again
Jaroslav


Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):


Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:



Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 
2.3.4 -
it mean with section and also subsection number) without 
\section{} and

\subsection{} command using previously?

I need to start a separate section number from a certain number 
(inserted

into an existing document)

Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]

\starttext

%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla

\stoptext


How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

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




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

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Aditya Mahajan

Try \setuphead[...][placehead=empty]

Aditya

On Sat, 15 Sep 2012, Jaroslav Hajtmar wrote:


Hello Wolfgang,
I feel that Your solution insert some vertical space above subsubsection 
text. Is it possible to get rid of it somehow?

I try \removeunwantedspaces, \blank[back] etc., but without efect.

Thanx Jaroslav

Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a):

Thanx Sietse.
I wikified it! (http://wiki.contextgarden.net/Command/setuphead).
This is my first attempt :-).
I finally get to it. It's very simple.
I'll try over there now and give good advice.

Jaroslav Hajtmar


Dne 15.9.2012 14:48, Sietse Brouwer napsal(a):

Hi Jaroslav,

While I was looking, I could not find it. I wanted to put your example 
into
the wiki, but the wiki shows the numbers and hidden sections, so I did 
not

there yet.

That might be because the wiki uses mkii by default; to use mkiv write


If you can't get an example to work at all, simply write the code inside
...,
instead. The picture of the output is nice to have, but not essential.
The code is still useful.

Cheers,
Sietse


Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your example 
into
the wiki, but the wiki shows the numbers and hidden sections, so I did 
not

there yet.

Thanks again
Jaroslav



On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar  wrote:

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your example 
into
the wiki, but the wiki shows the numbers and hidden sections, so I did 
not

there yet.

Thanks again
Jaroslav


Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):


Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:



Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 2.3.4 
-

it mean with section and also subsection number) without \section{} and
\subsection{} command using previously?

I need to start a separate section number from a certain number 
(inserted

into an existing document)

Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]

\starttext

%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla

\stoptext


How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

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


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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 



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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

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


Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar

Hello Wolfgang,
I feel that Your solution insert some vertical space above subsubsection 
text. Is it possible to get rid of it somehow?

I try \removeunwantedspaces, \blank[back] etc., but without efect.

Thanx Jaroslav

Dne 15.9.2012 16:36, Jaroslav Hajtmar napsal(a):

Thanx Sietse.
I wikified it! (http://wiki.contextgarden.net/Command/setuphead).
This is my first attempt :-).
I finally get to it. It's very simple.
I'll try over there now and give good advice.

Jaroslav Hajtmar


Dne 15.9.2012 14:48, Sietse Brouwer napsal(a):

Hi Jaroslav,

While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

That might be because the wiki uses mkii by default; to use mkiv write


If you can't get an example to work at all, simply write the code inside
...,
instead. The picture of the output is nice to have, but not essential.
The code is still useful.

Cheers,
Sietse


Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

Thanks again
Jaroslav



On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar  
wrote:

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your 
example into
the wiki, but the wiki shows the numbers and hidden sections, so I 
did not

there yet.

Thanks again
Jaroslav


Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):


Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:



Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 
2.3.4 -
it mean with section and also subsection number) without 
\section{} and

\subsection{} command using previously?

I need to start a separate section number from a certain number 
(inserted

into an existing document)

Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]

\starttext

%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla

\stoptext


How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

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



___ 

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] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar

Thanx Sietse.
I wikified it! (http://wiki.contextgarden.net/Command/setuphead).
This is my first attempt :-).
I finally get to it. It's very simple.
I'll try over there now and give good advice.

Jaroslav Hajtmar


Dne 15.9.2012 14:48, Sietse Brouwer napsal(a):

Hi Jaroslav,

   

While I was looking, I could not find it. I wanted to put your example into
the wiki, but the wiki shows the numbers and hidden sections, so I did not
there yet.
 

That might be because the wiki uses mkii by default; to use mkiv write


If you can't get an example to work at all, simply write the code inside
...,
instead. The picture of the output is nice to have, but not essential.
The code is still useful.

Cheers,
Sietse

   

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your example into
the wiki, but the wiki shows the numbers and hidden sections, so I did not
there yet.

Thanks again
Jaroslav
 



On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar  wrote:
   

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your example into
the wiki, but the wiki shows the numbers and hidden sections, so I did not
there yet.

Thanks again
Jaroslav


Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):

 

Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:


   

Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 2.3.4 -
it mean with section and also subsection number) without \section{} and
\subsection{} command using previously?

I need to start a separate section number from a certain number (inserted
into an existing document)

Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]

\starttext

%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla

\stoptext

 

How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

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


___
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] View all numbers of sub(...)section

2012-09-15 Thread Sietse Brouwer
Hi Jaroslav,

> While I was looking, I could not find it. I wanted to put your example into
> the wiki, but the wiki shows the numbers and hidden sections, so I did not
> there yet.

That might be because the wiki uses mkii by default; to use mkiv write


If you can't get an example to work at all, simply write the code inside
...,
instead. The picture of the output is nice to have, but not essential.
The code is still useful.

Cheers,
Sietse

> Thanx Wolfgang.
> Thank you. Everything works.
> While I was looking, I could not find it. I wanted to put your example into
> the wiki, but the wiki shows the numbers and hidden sections, so I did not
> there yet.
>
> Thanks again
> Jaroslav



On Sat, Sep 15, 2012 at 1:34 PM, Jaroslav Hajtmar  wrote:
> Thanx Wolfgang.
> Thank you. Everything works.
> While I was looking, I could not find it. I wanted to put your example into
> the wiki, but the wiki shows the numbers and hidden sections, so I did not
> there yet.
>
> Thanks again
> Jaroslav
>
>
> Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):
>
>> Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:
>>
>>
>>>
>>> Hello ConTeXist.
>>> Is there possibility view all subsubsection number (ie in format 2.3.4 -
>>> it mean with section and also subsection number) without \section{} and
>>> \subsection{} command using previously?
>>>
>>> I need to start a separate section number from a certain number (inserted
>>> into an existing document)
>>>
>>> Thanx Jaroslav Hajtmar
>>>
>>> Here is my example:
>>>
>>>
>>> \setupheadnumber[section][2]
>>> \setupheadnumber[subsection][3] %
>>> \setupheadnumber[subsubsection][4] %
>>> \setuppagenumber[number=234]
>>>
>>> \starttext
>>>
>>> %\section{} % I can't view section here
>>>
>>> %\subsection{} % I can't view subsection here too
>>>
>>> \subsubsection{TEST}
>>>
>>> I would like get 2.3.5 TEST
>>>
>>> blablabla
>>>
>>> \stoptext
>>>
>>
>> How about this:
>>
>> \setupheadnumber[section]  [1]
>> \setupheadnumber[subsection]   [2]
>> \setupheadnumber[subsubsection][4]
>>
>> \setuphead[section,subsection][placehead=hidden]
>> \setuphead[subsubsection] [placehead=yes]
>>
>> \starttext
>>
>> \section{}
>>
>> \subsection{}
>>
>> \subsubsection{TEST}
>>
>> \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
> ___
___
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] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar

Thanx Wolfgang.
Thank you. Everything works.
While I was looking, I could not find it. I wanted to put your example 
into the wiki, but the wiki shows the numbers and hidden sections, so I 
did not there yet.


Thanks again
Jaroslav


Dne 15.9.2012 12:37, Wolfgang Schuster napsal(a):

Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar:

   

Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 2.3.4 - it 
mean with section and also subsection number) without \section{} and 
\subsection{} command using previously?

I need to start a separate section number from a certain number (inserted into 
an existing document)

Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]

\starttext

%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla

\stoptext
 

How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

\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] View all numbers of sub(...)section

2012-09-15 Thread Wolfgang Schuster

Am 15.09.2012 um 11:46 schrieb Jaroslav Hajtmar :

> Hello ConTeXist.
> Is there possibility view all subsubsection number (ie in format 2.3.4 - it 
> mean with section and also subsection number) without \section{} and 
> \subsection{} command using previously?
> 
> I need to start a separate section number from a certain number (inserted 
> into an existing document)
> 
> Thanx Jaroslav Hajtmar
> 
> Here is my example:
> 
> 
> \setupheadnumber[section][2]
> \setupheadnumber[subsection][3] %
> \setupheadnumber[subsubsection][4] %
> \setuppagenumber[number=234]
> 
> \starttext
> 
> %\section{} % I can't view section here
> 
> %\subsection{} % I can't view subsection here too
> 
> \subsubsection{TEST}
> 
> I would like get 2.3.5 TEST
> 
> blablabla
> 
> \stoptext

How about this:

\setupheadnumber[section]  [1]
\setupheadnumber[subsection]   [2]
\setupheadnumber[subsubsection][4]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection] [placehead=yes]

\starttext

\section{}

\subsection{}

\subsubsection{TEST}

\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] View all numbers of sub(...)section

2012-09-15 Thread Jaroslav Hajtmar

Hello ConTeXist.
Is there possibility view all subsubsection number (ie in format 2.3.4 - 
it mean with section and also subsection number) without \section{} and 
\subsection{} command using previously?


I need to start a separate section number from a certain number 
(inserted into an existing document)


Thanx Jaroslav Hajtmar

Here is my example:


\setupheadnumber[section][2]
\setupheadnumber[subsection][3] %
\setupheadnumber[subsubsection][4] %
\setuppagenumber[number=234]


\starttext


%\section{} % I can't view section here

%\subsection{} % I can't view subsection here too

\subsubsection{TEST}

I would like get 2.3.5 TEST

blablabla



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


Re: [NTG-context] footnote numbers turn red

2012-07-31 Thread Martin Althoff
OK, was using: 2012.07.21 16:50 MKIV.

Ran an update (now 2012.07.27 16:41 MKIV). Problem was in another place though 
(working on several docs at the moment).

A module had the line:

\setupfootnotes[textcolor=black]

Then adding this what you gave at a later point:

\setupinteraction
  [state=start,
  color=darkblue,
  contrastcolor=green]

only changed the footnote at the bottom of the page to green, not in the text 
body. That remained black. This cross dependence had confused me. 

Is that the intent contrastcolor as given on?

http://wiki.contextgarden.net/Command/setupinteraction

Martin


> Not here with 2012.07.27 16:41. Which context version are you

> running?
> 
___
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] footnote numbers turn red

2012-07-31 Thread Marco Patzer
On 2012-07-31 Martin Althoff  wrote:

> With the definition, as you give it, the footnote numbers at the
> bottom of the page turn green, but the ones in the text remain
> black.

Not here with 2012.07.27 16:41. Which context version are you
running?


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] footnote numbers turn red

2012-07-31 Thread Martin Althoff
Hi Marco,
Thanks for that. Though it seems that is only part of the situation. With the 
definition, as you give it, the footnote numbers at the bottom of the page turn 
green, but the ones in the text remain black. I deleted all generated files 
just to be sure.

Martin

>>  The footnote numbers turn red(ish) as soon as \setupinteraction is 

> present.
>> 
>>  Is that intended?
> 
> Yes, it is. There is a special setting, when the link appears on the
> same page, it's contrastcolor.
> 
> \setupinteraction
>   [state=start,
>    color=darkblue,
>    contrastcolor=green]
___
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] footnote numbers turn red

2012-07-31 Thread Marco Patzer
On 2012-07-31 Martin  wrote:

Hi Martin,

> The footnote numbers turn red(ish) as soon as \setupinteraction is present.
> 
> Is that intended?

Yes, it is. There is a special setting, when the link appears on the
same page, it's contrastcolor.

\setupinteraction
  [state=start,
   color=darkblue,
   contrastcolor=green]


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] footnote numbers turn red

2012-07-31 Thread Martin

The footnote numbers turn red(ish) as soon as \setupinteraction is present.

Is that intended?

thanks for replies!

Martin

with
ConTeXt  ver: 2012.07.21 16:50 MKIV  fmt: 2012.7.21


example:

\setupinteraction[state=start,color=darkblue,style=\tf]

\starttext
some text\footnote{a footnote}
\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
___


Re: [NTG-context] wrong page numbers when using arranging

2012-06-12 Thread Hans Hagen

On 12-6-2012 12:08, Pavel Dohnal wrote:

Hello,
I am using \setuparranging and it causes me an error in referencing to pages.
I want place number of page into text but this page number is wrong.
As you can see in attached example, "Chapter 2" is printed on page 3
but command \at prints page 4.
Could you please advise how to get the correct page number for
"Chapter 2"? That is page number 3?
Thank you
   Pavel Dohnal


\setuppapersize [A5][A4,landscape]
\setuparranging[2SIDE]

\starttext
Chapter 1 - \at[chapter1]\\
Chapter 2 - \at[chapter2]\\
Chapter 3 - \at[chapter3]\\
Chapter 4 - \at[chapter4]\\
Chapter 5 - \at[chapter5]\\


\chapter[chapter1]{Chapter 1}
{\input knuth }
\chapter[chapter2]{Chapter 2}
{\input knuth }
\chapter[chapter3]{Chapter 3}
{\input knuth }
\chapter[chapter4]{Chapter 4}
{\input knuth }
\chapter[chapter5]{Chapter 5}
{\input knuth }
\stoptext


you need to process the file with --arrange to make sure that the last 
run does not adapt the multi-pass data


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] wrong page numbers when using arranging

2012-06-12 Thread Pavel Dohnal
Hello,
I am using \setuparranging and it causes me an error in referencing to pages.
I want place number of page into text but this page number is wrong.
As you can see in attached example, "Chapter 2" is printed on page 3
but command \at prints page 4.
Could you please advise how to get the correct page number for
"Chapter 2"? That is page number 3?
Thank you
  Pavel Dohnal


\setuppapersize [A5][A4,landscape]
\setuparranging[2SIDE]

\starttext
Chapter 1 - \at[chapter1]\\
Chapter 2 - \at[chapter2]\\
Chapter 3 - \at[chapter3]\\
Chapter 4 - \at[chapter4]\\
Chapter 5 - \at[chapter5]\\


\chapter[chapter1]{Chapter 1}
{\input knuth }
\chapter[chapter2]{Chapter 2}
{\input knuth }
\chapter[chapter3]{Chapter 3}
{\input knuth }
\chapter[chapter4]{Chapter 4}
{\input knuth }
\chapter[chapter5]{Chapter 5}
{\input knuth }
\stoptext


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

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-18 Thread luigi scarso
2012/3/18 Pablo Rodríguez :
> On 06/03/12 20:27, luigi scarso wrote:
>> 2012/3/6 Pablo Rodríguez mailto:oi...@web.de>>
>>
>>     On page 7 lines are numbered from lowest to highest values. A purist
>>     might consider this wrong, but this is unlikely to happen on a real
>>     book, since (I guess) line numbers on headers only make sense when they
>>     two different series cannot be on the same page.
>>
>>     Many thanks for your help,
>>
>> I see but ... how do you want to manage this situation?
>
> Hi Luigi,
>
> sorry, but it seems that my reply to your question wasn't explaining at all.
>
> I'm really interested in your hack (from
> http://www.ntg.nl/pipermail/ntg-context/2012/065588.html).
>
> I would really appreciate, if the hack could print in the header the
> numbers from the first or the last lines that appear on page. It might
> not be the lowest and highest values and it lines may not show numbers
> (due to step=5).
>
> Many thanks for your help,
hm I think to understand, but I need an example ( "I have this but I
want that") with the code that  you are using  .


-- 
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] is it possible to have first and last line numbers from page?

2012-03-18 Thread Pablo Rodríguez
On 06/03/12 20:27, luigi scarso wrote:
> 2012/3/6 Pablo Rodríguez mailto:oi...@web.de>>
> 
> On page 7 lines are numbered from lowest to highest values. A purist
> might consider this wrong, but this is unlikely to happen on a real
> book, since (I guess) line numbers on headers only make sense when they
> two different series cannot be on the same page.
> 
> Many thanks for your help,
> 
> I see but ... how do you want to manage this situation? 

Hi Luigi,

sorry, but it seems that my reply to your question wasn't explaining at all.

I'm really interested in your hack (from
http://www.ntg.nl/pipermail/ntg-context/2012/065588.html).

I would really appreciate, if the hack could print in the header the
numbers from the first or the last lines that appear on page. It might
not be the lowest and highest values and it lines may not show numbers
(due to step=5).

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 06/03/12 20:27, luigi scarso wrote:
> 2012/3/6 Pablo Rodríguez
> 
> On page 7 lines are numbered from lowest to highest values. A purist
> might consider this wrong, but this is unlikely to happen on a real
> book, since (I guess) line numbers on headers only make sense when they
> two different series cannot be on the same page.
> 
> Many thanks for your help,
> 
> I see but ... how do you want to manage this situation ? 

In that particular case, I have no idea. I number lines by chapter, so
it is impossible that I would face this situation.

The canonical way to handle that would be to get the number from first
line on the page and number from last line on the page. The header would
be in that case "198--27", which doesn't make any sense.

Since this is a hack for other purpose, you can simply ignore it.

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread luigi scarso
2012/3/6 Pablo Rodríguez 

>
> On page 7 lines are numbered from lowest to highest values. A purist
> might consider this wrong, but this is unlikely to happen on a real
> book, since (I guess) line numbers on headers only make sense when they
> two different series cannot be on the same page.
>
> Many thanks for your help,
>
> I see but ... how do you want to manage this situation ?
-- 
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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 06/03/12 19:48, luigi scarso wrote:
> 2012/3/6 Pablo Rodríguez
> 
> Luigi, I'm afraid it doesn't work as expected in the real file
> 
> I'm not surprised 

My fault, because I didn' realize that numbers only appeared on each
fifth line.

> Lines are numbered there with [step=5]. So I get in headers only
> actually numbered lines, although it header should contain the real line
> numbers (even with the line number isn't shown on that line).
> 
> How would it the the code in that case? (Sorry for asking this, but I'm
> afraid I cannot code in lua [or in any other language].)
> 
> Do you have an example ?

Adapting from your code:

\startluacode
document.my_name_space = document.my_name_space or {}
document.my_name_space.pages = document.my_name_space.pages or {}
local f =  io.open(file.addsuffix(tex.jobname,"tuc") )
print('>>>>> ',f)
if f==nil then
 --[=[ do nothin ]=]
else
 f:close()
 local tuc = dofile(file.addsuffix(tex.jobname,"tuc"))
 local data =  tuc.structures.references.collected[""]
 local  w
 local pages = document.my_name_space.pages
 local realpage,ref
 for k, v in  pairs(data) do
   w=string.gmatch(k,'LIN:(\%d+):\%d+')
   ref = tonumber(w())
   realpage = tostring(v.references.realpage)
   pages[realpage]= pages[realpage] or {}
   table.insert(pages[realpage],ref)
 end
 for page,array in pairs(pages) do
   table.sort(array)
 end
end
\stopluacode

\definemarking[linenumber]
\define\LinenumberCommand
 
{\normalexpanded{\setmarking[linenumber]{\linenumber}}\pagereference[LIN:\linenumber:\currentpage]}

\setuplinenumbering[command=\LinenumberCommand,step=5]

\startsetups linenumber
 \startluacode
 local l=0;
 if document.my_name_space == nil then return end;
 if document.my_name_space.pages == nil then return end;
 local pages = document.my_name_space.pages;
 for _,_ in  pairs(pages) do l=l+1 end;
 if l== 0 then return end;
 --[=[ OK, we have some data to print ]=]
 local array = pages[tostring(tex.count.realpageno)]
 l=0;
 if array ==nil then return end;
 for _,_ in  pairs(array) do l=l+1 end;
 if l>0 then context(array[1].." -- "..array[l]) end;
 \stopluacode
\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

\dorecurse{6}{\input tufte\par}

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\stoptext

On page 7 lines are numbered from lowest to highest values. A purist
might consider this wrong, but this is unlikely to happen on a real
book, since (I guess) line numbers on headers only make sense when they
two different series cannot be on the same page.

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread luigi scarso
2012/3/6 Pablo Rodríguez 

> On 05/03/12 15:12, luigi scarso wrote:
> > 2012/3/4 Pablo Rodríguez
> > If you allow me one more question: is showing the numbers on the same
> > page they refer to beyond the limits of TeX/LuaTeX?
> >
> > Absolutely no. As Hans said, a quick/dirty trick is possible: just
> > mark the object with \pagereference[]. The data is stored
> > into the *tuc file, which can be read from the second pass.
>
> Luigi, I'm afraid it doesn't work as expected in the real file
>
> I'm not surprised

> Lines are numbered there with [step=5]. So I get in headers only
> actually numbered lines, although it header should contain the real line
> numbers (even with the line number isn't shown on that line).
>
> How would it the the code in that case? (Sorry for asking this, but I'm
> afraid I cannot code in lua [or in any other language].)



> Many thanks for your help,
>
Do you have an example ?

-- 
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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 15:12, luigi scarso wrote:
> 2012/3/4 Pablo Rodríguez
> If you allow me one more question: is showing the numbers on the same
> page they refer to beyond the limits of TeX/LuaTeX?
> 
> Absolutely no. As Hans said, a quick/dirty trick is possible: just
> mark the object with \pagereference[]. The data is stored
> into the *tuc file, which can be read from the second pass.

Luigi, I'm afraid it doesn't work as expected in the real file

Lines are numbered there with [step=5]. So I get in headers only
actually numbered lines, although it header should contain the real line
numbers (even with the line number isn't shown on that line).

How would it the the code in that case? (Sorry for asking this, but I'm
afraid I cannot code in lua [or in any other language].)

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 15:12, luigi scarso wrote:
> 2012/3/4 Pablo Rodríguez:
> [...]
> Many thanks for your reply, Wolfgang.
> 
> If you allow me one more question: is showing the numbers on the same
> page they refer to beyond the limits of TeX/LuaTeX?
> 
> Absolutely no. As Hans said, a quick/dirty trick is possible: just
> mark the object with \pagereference[]. The data is stored
> into the *tuc file, which can be read from  the second pass.

Many thanks for the code, Luigi.

My question was to basic, but I wondered why this didn't worked.

> Of course, "it's possible " doesn't mean "it's the right context
> way".

It does the work until it's implemented in ConTeXt.

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 11:39, Hans Hagen wrote:
> On 4-3-2012 11:20, Pablo Rodríguez wrote:
>> \starttext
>> \startlinenumbering
>> \dorecurse{10}{\input zapf\par\input knuth}
>> \stoplinenumbering
>> \stoptext
> 
> currently it's not possible but it's no big deal to add that feature at 
> some point as it's a matter of keeping track of first/last numbers; for 
> the page it's trivial but as we also support numbering in columns and 
> other places some housekeeping is needed (read: a quick hack is possible 
> but I will only do a proper solution)

Many thanks for your reply, Hans.

I think that implemented a proper ConTeXt solution would be useful for
other users.

I would really appreciate it, if a solution could be implemented.

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] is it possible to have first and last line numbers from page?

2012-03-05 Thread luigi scarso
2012/3/4 Pablo Rodríguez 

> On 03/04/2012 12:04 PM, Wolfgang Schuster wrote:
> > Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:
> >>
> >> I wanted to be able to have in the headers the first and last line
> >> number from page. This feature is extremely useful when typesetting some
> >> kinds of poetry.
> >> [...]
> >> Is that possible to achieve with ConTeXt?
> >
> > Yes but it’s not usable because the numbers are always shown on the next
> page.
>
> Many thanks for your reply, Wolfgang.
>
> If you allow me one more question: is showing the numbers on the same
> page they refer to beyond the limits of TeX/LuaTeX?
>

Absolutely no. As Hans said, a quick/dirty trick is possible: just mark the
object
with \pagereference[]. The data is stored into the *tuc file,
which can be read
from  the second pass.
Then always run with
$>context --purgeall ; context .mkiv
Of course, "it's possible " doesn't mean "it's the right context way".

\startluacode
document.my_name_space = document.my_name_space or {}
document.my_name_space.pages = document.my_name_space.pages or {}
local f =  io.open(file.addsuffix(tex.jobname,"tuc") )
print('>>>>> ',f)
if f==nil then
 --[=[ do nothin ]=]
else
 f:close()
 local tuc = dofile(file.addsuffix(tex.jobname,"tuc"))
 local data =  tuc.structures.references.collected[""]
 local  w
 local pages = document.my_name_space.pages
 local realpage,ref
 for k, v in  pairs(data) do
   w=string.gmatch(k,'LIN:(\%d+):\%d+')
   ref = tonumber(w())
   realpage = tostring(v.references.realpage)
   pages[realpage]= pages[realpage] or {}
   table.insert(pages[realpage],ref)
 end
 for page,array in pairs(pages) do
   table.sort(array)
 end
end
\stopluacode


\definemarking[linenumber]
\define\LinenumberCommand
 
{\normalexpanded{\setmarking[linenumber]{\linenumber}}\pagereference[LIN:\linenumber:\currentpage]}

\setuplinenumbering[command=\LinenumberCommand]

\startsetups linenumber
%   \doiftext {
%   \getmarking[linenumber]
%   }
%   {
%   \getmarking[linenumber][first] –
\getmarking[linenumber][last]
%   }
 \startluacode
 local l=0;
 if document.my_name_space == nil then return end;
 if document.my_name_space.pages == nil then return end;
 local pages = document.my_name_space.pages;
 for _,_ in  pairs(pages) do l=l+1 end;
 if l== 0 then return end;
 --[=[ OK, we have some data to print ]=]
 local array = pages[tostring(tex.count.realpageno)]
 l=0;
 if array ==nil then return end;
 for _,_ in  pairs(array) do l=l+1 end;
 if l>0 then context(" nr. "..array[1].." --- "..array[l]) end;
 \stopluacode
\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

\dorecurse{6}{\input tufte\par}

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\resetmarking[linenumber]

\dorecurse{6}{\input tufte\par}

\stoptext

--
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] is it possible to have first and last line numbers from page?

2012-03-05 Thread Hans Hagen

On 4-3-2012 11:20, Pablo Rodríguez wrote:

\starttext
\startlinenumbering
\dorecurse{10}{\input zapf\par\input knuth}
\stoplinenumbering
\stoptext


currently it's not possible but it's no big deal to add that feature at 
some point as it's a matter of keeping track of first/last numbers; for 
the page it's trivial but as we also support numbering in columns and 
other places some housekeeping is needed (read: a quick hack is possible 
but I will only do a proper solution)


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] is it possible to have first and last line numbers from page?

2012-03-04 Thread Pablo Rodríguez
On 04/03/12 14:44, Wolfgang Schuster wrote:
> Am 04.03.2012 um 13:15 schrieb Pablo Rodríguez:
>> [...]
>> If you allow me one more question: is showing the numbers on the same
>> page they refer to beyond the limits of TeX/LuaTeX?
>>
>> I'm asking this to know whether such a feature could be implemented some
>> day in ConTeXt.
> 
> It’s a problem with the way how line numbering works.

Thanks for your reply, Wolfgang.

Would it be possible to make something similar with margin data or pure
margin sectioning commands? Only interested in knowing whether this
could work.

Thanks again for your help,


Pablo

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] is it possible to have first and last line numbers from page?

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 13:15 schrieb Pablo Rodríguez:

> On 03/04/2012 12:04 PM, Wolfgang Schuster wrote:
>> Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:
>>> 
>>> I wanted to be able to have in the headers the first and last line
>>> number from page. This feature is extremely useful when typesetting some
>>> kinds of poetry.
>>> [...]
>>> Is that possible to achieve with ConTeXt?
>> 
>> Yes but it’s not usable because the numbers are always shown on the next 
>> page.
> 
> Many thanks for your reply, Wolfgang.
> 
> If you allow me one more question: is showing the numbers on the same
> page they refer to beyond the limits of TeX/LuaTeX?
> 
> I'm asking this to know whether such a feature could be implemented some
> day in ConTeXt.

It’s a problem with the way how line numbering works.

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] is it possible to have first and last line numbers from page?

2012-03-04 Thread Pablo Rodríguez
On 03/04/2012 12:04 PM, Wolfgang Schuster wrote:
> Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:
>>
>> I wanted to be able to have in the headers the first and last line
>> number from page. This feature is extremely useful when typesetting some
>> kinds of poetry.
>> [...]
>> Is that possible to achieve with ConTeXt?
> 
> Yes but it’s not usable because the numbers are always shown on the next page.

Many thanks for your reply, Wolfgang.

If you allow me one more question: is showing the numbers on the same
page they refer to beyond the limits of TeX/LuaTeX?

I'm asking this to know whether such a feature could be implemented some
day in ConTeXt.

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] is it possible to have first and last line numbers from page?

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:

> I have asked this question before (more than twice), after I found no
> answer in the ConTeXt reference manual, the wiki or the mailing list.
> 
> I wanted to be able to have in the headers the first and last line
> number from page. This feature is extremely useful when typesetting some
> kinds of poetry.
> 
> The most basic sample would be:
> 
> \starttext
> \startlinenumbering
> \dorecurse{10}{\input zapf\par\input knuth}
> \stoplinenumbering
> \stoptext
> 
> Is that possible to achieve with ConTeXt?


Yes but it’s not usable because the numbers are always shown on the next page.

\definemarking[linenumber]

\define\LinenumberCommand
  {\normalexpanded{\setmarking[linenumber]{\linenumber}}}

\setuplinenumbering[command=\LinenumberCommand]

\startsetups linenumber

\doiftext {
\getmarking[linenumber]
}
{
\getmarking[linenumber][first] – \getmarking[linenumber][last]
}

\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

\dorecurse{6}{\input tufte\par}

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\resetmarking[linenumber]

\dorecurse{6}{\input tufte\par}

\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] is it possible to have first and last line numbers from page?

2012-03-04 Thread Pablo Rodríguez
I have asked this question before (more than twice), after I found no
answer in the ConTeXt reference manual, the wiki or the mailing list.

I wanted to be able to have in the headers the first and last line
number from page. This feature is extremely useful when typesetting some
kinds of poetry.

The most basic sample would be:

\starttext
\startlinenumbering
\dorecurse{10}{\input zapf\par\input knuth}
\stoplinenumbering
\stoptext

Is that possible to achieve with ConTeXt?

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
___


[NTG-context] line numbers or margin data in headers

2012-02-19 Thread Pablo Rodríguez
Hi there,

I'm trying to get a feature similar to those headers that display the
first and last entry on a give page.

I would like to do the same with line numbers on pages, which is
especially useful for poetry.

How could i change this in the following sample?

\setupheadertexts[line--numbers]
\starttext
\startlinenumbering
\dorecurse{50}{\input knuth\par}
\stoplinenumbering
\stoptext

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
___


[NTG-context] line numbers in header

2012-01-23 Thread Pablo Rodríguez
Hi there,

I'm trying to get a header that contains the numbers of first numbered
line on each page and the number of the last numbered line on that page.
This is especially useful for poetry.

Here is a minimal sample of what I'm trying to do:

\setupheadertexts[line--numbers]
\starttext
\startlinenumbering
\dorecurse{50}{\input knuth\par}
\stoplinenumbering
\stoptext

What should I add instead of "line--numbers"?

I have tried to search in the reference on the reference manual and the
wiki, but I didn't find anything that could help.

Many thanks for your help,


Pablo
-- 
http://www.oudeis.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] Constraint in line numbers

2011-12-22 Thread Fulvio Satta
Il giorno Thu, 22 Dec 2011 09:32:01 +0100
luigi scarso  ha scritto:

> On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
>  wrote:
> >
> > Am 21.12.2011 um 18:19 schrieb Fulvio:
> >
> >> Hi, this is my first message in this ml ;)
> >>
> >> Well, I've a stupid constraint in a work: I must limit the number
> >> of lines in a page. I have to have 32-35 lines on each page.
> >>
> >> Now, the task isn't too complex in principle, I can work on
> >> interline sizes and glues, but this way is a little bit tricky.
> >> I wonder if there is a better (and elegant) way to manage the
> >> problem.
> >
> > You can the number of lines on a page with the \setuplayout command.
> >
> > \setuplayout[lines=20]
> > \starttext
> > \dorecurse{100}{Line \recurselevel\par}
> > \stoptext
> >
> > Wolfang
> Of course there is a static  idea of "line" that depends on the
> current font and a dynamic idea of row that depends on the current
> document: here is an exaggerated example
> 
> \setuplayout[lines=20]
> \newdimen\T \T=1.5mm
> \starttext
> \dorecurse{40}{\ruledvbox{Line \recurselevel}\par}
> \dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height
> \recurselevel\T depth \recurselevel\T}\par}
> \stoptext
> 

Very good hints, thank you! I'll investigate on them in the next few
days! :)

Fulvio


signature.asc
Description: PGP signature
___
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] Constraint in line numbers

2011-12-22 Thread luigi scarso
On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
 wrote:
>
> Am 21.12.2011 um 18:19 schrieb Fulvio:
>
>> Hi, this is my first message in this ml ;)
>>
>> Well, I've a stupid constraint in a work: I must limit the number of
>> lines in a page. I have to have 32-35 lines on each page.
>>
>> Now, the task isn't too complex in principle, I can work on interline
>> sizes and glues, but this way is a little bit tricky.
>> I wonder if there is a better (and elegant) way to manage the problem.
>
> You can the number of lines on a page with the \setuplayout command.
>
> \setuplayout[lines=20]
> \starttext
> \dorecurse{100}{Line \recurselevel\par}
> \stoptext
>
> Wolfang
Of course there is a static  idea of "line" that depends on the current font
and a dynamic idea of row that depends on the current document: here
is an exaggerated example

\setuplayout[lines=20]
\newdimen\T \T=1.5mm
\starttext
\dorecurse{40}{\ruledvbox{Line \recurselevel}\par}
\dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height
\recurselevel\T depth \recurselevel\T}\par}
\stoptext

-- 
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] Constraint in line numbers

2011-12-21 Thread Wolfgang Schuster

Am 21.12.2011 um 18:19 schrieb Fulvio:

> Hi, this is my first message in this ml ;)
> 
> Well, I've a stupid constraint in a work: I must limit the number of
> lines in a page. I have to have 32-35 lines on each page.
> 
> Now, the task isn't too complex in principle, I can work on interline
> sizes and glues, but this way is a little bit tricky.
> I wonder if there is a better (and elegant) way to manage the problem.

You can the number of lines on a page with the \setuplayout command.

\setuplayout[lines=20]
\starttext
\dorecurse{100}{Line \recurselevel\par}
\stoptext

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


<    1   2   3   4   5   6   7   8   9   10   >