[NTG-context] page number in \setuplist

2025-02-08 Thread Pablo Rodriguez via ntg-context
Dear list,

I would like to have chapters in bodypart to list two numbers, the
previous to the current page and the current page, such as in:

  14 · 15   24·25   50 · 51   100 · 101

I tried the following command, but I cannot get the previous to the
current page number:

  \setuplist[chapter]
[pagecommand={\the\numexpr\currentlistentrypagenumber-1\ ·}]

What am I missing here?

Many thanks for your help,

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] page number in margin

2025-01-24 Thread Thomas Meyer

Hi folks,

how is it possible to centre the page number vertically and horizontally 
in the outer text margin (even page on the left and odd page on the right)?


Any help is welcome.

Greetings Thomas



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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] page number

2024-05-26 Thread Charles Doherty via ntg-context
Dear Wolfgang,

I have a book in preparation with running heads.


Pagenumber  marking   |marking  Pagenumber

The chapter title page has empty headings. 

The publisher would like the page number centered on the Chapter title page. I 
manage to put it there but I don’t want it to run on the following pages. I 
have made various attempts but can’t manage it.

I have

\setuplayout[location=doublesided]
\setuppagenumbering[location=,alternative=doublesided]

\setupheadertexts[chapter][][pagenumber]
\setupheadertexts[{\getmarking[chapter]}][pagenumber]

Can anyone show me code to achieve this?

Thanks,
Charlie 



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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Nicola
On 2020-08-11, Pablo Rodriguez  wrote:
> On 8/11/20 10:11 PM, Nicola wrote:
>> Consider this example:
>>
>> \definemakeup[toc][align=middle]
>> \setuppagenumbering[alternative=doublesided]
>> \starttext
>>   \startfrontmatter
>> \startmakeup[toc]
>>   \placecontent
>> \stopmakeup
>> %\setuppagenumber[number=1]
>> \startchapter[title={A}]\stopchapter
>> \startchapter[title={B}]\stopchapter
>>   \stopfrontmatter
>> \stoptext
>>
>> The first entry in the ToC has page number 0. I can fix it by
>> uncommenting the commented line or by removing the makeup. Is this
>> expected behaviour? If so, why?
>
> Hi Nicola,
>
> makeups have pagestate set to stop by default.
>
> \definemakeup[toc][align=middle, pagestate=start] solves your issue.
>
> I hope it helps,

Yes, it does!

Thanks,
Nicola

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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Pablo Rodriguez
On 8/11/20 10:11 PM, Nicola wrote:
> Consider this example:
>
> \definemakeup[toc][align=middle]
> \setuppagenumbering[alternative=doublesided]
> \starttext
>   \startfrontmatter
> \startmakeup[toc]
>   \placecontent
> \stopmakeup
> %\setuppagenumber[number=1]
> \startchapter[title={A}]\stopchapter
> \startchapter[title={B}]\stopchapter
>   \stopfrontmatter
> \stoptext
>
> The first entry in the ToC has page number 0. I can fix it by
> uncommenting the commented line or by removing the makeup. Is this
> expected behaviour? If so, why?

Hi Nicola,

makeups have pagestate set to stop by default.

\definemakeup[toc][align=middle, pagestate=start] solves your issue.

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 : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Nicola
Consider this example:

\definemakeup[toc][align=middle]
\setuppagenumbering[alternative=doublesided]
\starttext
  \startfrontmatter
\startmakeup[toc]
  \placecontent
\stopmakeup
%\setuppagenumber[number=1]
\startchapter[title={A}]\stopchapter
\startchapter[title={B}]\stopchapter
  \stopfrontmatter
\stoptext

The first entry in the ToC has page number 0. I can fix it by
uncommenting the commented line or by removing the makeup. Is this
expected behaviour? If so, why?

Nicola


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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread jbf
Thanks Wolfgang. It seems I was almost there, but had forgotten the 
braces for \pagenumber!  I am grateful for the observation. \framed is 
definitely the preferred solution.


Julian

On 15/5/20 1:28 am, Wolfgang Schuster wrote:

jbf schrieb am 14.05.2020 um 07:30:

Hi list,

I am trying to achieve a layout where there is a brief line above the 
bottom-centered page number (of a double-sided document). I am able 
to achieve the centered bottom-located page number easily and 
obviously enough with:


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfooter
  [style=bold]

And I was able to achieve a result with a short line above where the 
page number should be - but by adopting the solution below I have now 
lost the page number.


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfootertexts[{\framed[frame=off,topframe=on,width=.5\textwidth]}]

You forgot the braces for the argument of \framed.
So then I thought that having left out any reference to page numbers 
I had better put it in, so I added [pagenumber] to the above, but I 
ended up with two page numbers, one centered, the other to the inner 
or outer margins (depending on recto/verso), and the line was 
likewise to the right or left of the centred number. So clearly not 
what I want.


Maybe the solution lies with some combination of the above I haven't 
thought of, or maybe there is another solution altogether. Any thoughts?


1. Add a rule at the top of the footer.

\setuppagenumbering
  [location=footer]

\setupfooter
  [text]
  [before=\hrule]

\starttext
\page[dummy]
\stoptext


2. Put the page number in a frame (preferred method).

\setuppagenumbering
  [location=]

\setupfootertexts
  [{\framed[width=max,frame=off,topframe=on]{\pagenumber}}]

\starttext
\page[dummy]
\stoptext

Wolfgang


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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread Wolfgang Schuster

jbf schrieb am 14.05.2020 um 07:30:

Hi list,

I am trying to achieve a layout where there is a brief line above the 
bottom-centered page number (of a double-sided document). I am able to 
achieve the centered bottom-located page number easily and obviously 
enough with:


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfooter
  [style=bold]

And I was able to achieve a result with a short line above where the 
page number should be - but by adopting the solution below I have now 
lost the page number.


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfootertexts[{\framed[frame=off,topframe=on,width=.5\textwidth]}]

You forgot the braces for the argument of \framed.
So then I thought that having left out any reference to page numbers I 
had better put it in, so I added [pagenumber] to the above, but I 
ended up with two page numbers, one centered, the other to the inner 
or outer margins (depending on recto/verso), and the line was likewise 
to the right or left of the centred number. So clearly not what I want.


Maybe the solution lies with some combination of the above I haven't 
thought of, or maybe there is another solution altogether. Any thoughts?


1. Add a rule at the top of the footer.

\setuppagenumbering
  [location=footer]

\setupfooter
  [text]
  [before=\hrule]

\starttext
\page[dummy]
\stoptext


2. Put the page number in a frame (preferred method).

\setuppagenumbering
  [location=]

\setupfootertexts
  [{\framed[width=max,frame=off,topframe=on]{\pagenumber}}]

\starttext
\page[dummy]
\stoptext

Wolfgang

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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] page number with brief centered line above

2020-05-13 Thread jbf

Hi list,

I am trying to achieve a layout where there is a brief line above the 
bottom-centered page number (of a double-sided document). I am able to 
achieve the centered bottom-located page number easily and obviously 
enough with:


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfooter
  [style=bold]

And I was able to achieve a result with a short line above where the 
page number should be - but by adopting the solution below I have now 
lost the page number.


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfootertexts[{\framed[frame=off,topframe=on,width=.5\textwidth]}]

So then I thought that having left out any reference to page numbers I 
had better put it in, so I added [pagenumber] to the above, but I ended 
up with two page numbers, one centered, the other to the inner or outer 
margins (depending on recto/verso), and the line was likewise to the 
right or left of the centred number. So clearly not what I want.


Maybe the solution lies with some combination of the above I haven't 
thought of, or maybe there is another solution altogether. Any thoughts?


Julian

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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page number woes

2019-09-05 Thread Mari Voipio
Well, this was total waste of space from my part. When I found a
working file in a different project and copied the code over I
realized that my problem code should never have worked: I had
\setuppagenumber[stop] when I should have had
\setuppagenumber[state=stop]. Adding "state=" to my non-working code
solved all the problems and page numbering works the way I want to
have it.

And, as Wolfgang explained, I really don't need
\setuppagenumber[state=start] in the beginning of bodymatter, so now I
can even clean up my code a bit. Thank you, Wolfgang, I think I
understand blocks better now.

Mari


On Tue, Sep 3, 2019 at 7:03 PM Wolfgang Schuster
 wrote:
>
> Mari Voipio schrieb am 02.09.2019 um 13:07:
> > Hello!
> >
> > I have a document where I want the page numbers to start from the
> > first page of chapter one. There's bunch of stuff before that,
> > including a table of contents. This has worked fine:
> >
> > \startproduct prd-pr23
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \component pr23-cover_front_web
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex
> > \stopbodymatter
> >
> > \stopproduct
> >
> >
> > However, now I need to switch to using a full-page pdf as cover page
> > and changing that one line messes up with my page numbering, now TOC
> > appears as page 1 and chapter one starts from page 2 in my test file.
> >
> >
> > \startproduct prd-pr23
> >
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex % third chapter (DTR)
> > \stopbodymatter
> >
> > \stopproduct
> >
> > What is it that I don't see? I tried moving the cover page before the
> > \startfrontmatter, but that didn't change anything, TOC still starts
> > on page 2 when it shouldn't have a page number at all. Why does
> > switching the cover page from .tex to \pagefigure have such an effect
> > and how can I counteract it?
> >
> > Mari
> The \setuppagenumber command takes an assignment as argument but in your
> example you pass keywords to it.
>
> When you change the setting in the frontmatter to
> \setuppagenumber[state=stop] the numbers disappear. Since settings in a
> sectionblock are local there is no need to enable the counter in the
> bodypart because the previous setting is forgotten.
>
> When I look in your attached files I see that some file contain the
> setting \setuppagenumber[state=stop] which disabled the page counter.
>
> Wolfgang
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page number woes

2019-09-03 Thread Wolfgang Schuster

Mari Voipio schrieb am 02.09.2019 um 13:07:

Hello!

I have a document where I want the page numbers to start from the
first page of chapter one. There's bunch of stuff before that,
including a table of contents. This has worked fine:

\startproduct prd-pr23

\startfrontmatter
\setuppagenumber[stop]
\component pr23-cover_front_web
\component blank.tex
\component c-contents
\stopfrontmatter

\startbodymatter
\setuppagenumber[start]
\component dtr_pg.tex
\stopbodymatter

\stopproduct


However, now I need to switch to using a full-page pdf as cover page
and changing that one line messes up with my page numbering, now TOC
appears as page 1 and chapter one starts from page 2 in my test file.


\startproduct prd-pr23


\startfrontmatter
\setuppagenumber[stop]
\startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
\component blank.tex
\component c-contents
\stopfrontmatter

\startbodymatter
\setuppagenumber[start]
\component dtr_pg.tex % third chapter (DTR)
\stopbodymatter

\stopproduct

What is it that I don't see? I tried moving the cover page before the
\startfrontmatter, but that didn't change anything, TOC still starts
on page 2 when it shouldn't have a page number at all. Why does
switching the cover page from .tex to \pagefigure have such an effect
and how can I counteract it?

Mari
The \setuppagenumber command takes an assignment as argument but in your 
example you pass keywords to it.


When you change the setting in the frontmatter to 
\setuppagenumber[state=stop] the numbers disappear. Since settings in a 
sectionblock are local there is no need to enable the counter in the 
bodypart because the previous setting is forgotten.


When I look in your attached files I see that some file contain the 
setting \setuppagenumber[state=stop] which disabled the page counter.


Wolfgang

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

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Page number woes

2016-03-15 Thread Pablo Rodriguez
On 03/14/2016 03:43 PM, Mari Voipio wrote:
> Greetings all!
> 
> I have a book setup that worked perfectly as long as the inside cover
> was only one page long. But then we added information to the inside
> cover and had to split the information on two pages. The so called
> inside cover works fine, the TOC works fine, but the main text part
> (starting with Intro) begins now on page 2 when it should be on page
> 1. And this happens even when the TOC is two pages long, which is a
> bit weird (I would assume that if it counts TOC into page numbers,
> two-page TOC would mean that Intro starts on page 3, but nope, it
> still starts on page 2).
> [...]

Hi Mari,

how about adding "\setcounter[userpage][1]" just before the introduction?

Just in case it might help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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 number woes

2016-03-15 Thread Wolfgang Schuster

Mari Voipio 
14. März 2016 um 15:43
Greetings all!

I have a book setup that worked perfectly as long as the inside cover
was only one page long. But then we added information to the inside
cover and had to split the information on two pages. The so called
inside cover works fine, the TOC works fine, but the main text part
(starting with Intro) begins now on page 2 when it should be on page
1. And this happens even when the TOC is two pages long, which is a
bit weird (I would assume that if it counts TOC into page numbers,
two-page TOC would mean that Intro starts on page 3, but nope, it
still starts on page 2).

The minimal sample attached to this message is really ugly as it
doesn't contain any of the environment files, but the problem is
visible here just as well as in the real thing - if I make the second
page of the inside cover disappear, Intro starts on page 1 as it
should. If the so called inside cover is two pages long, Intro starts
on page 2. (The file to be compiled is prd-pr43-general_test.tex, the
others are component files.)

It is quite possible the TOC file is the culprit and it has been pure
luck that everything has worked until now... I don't understand the
page mechanism in ConTeXt well enough to see where the problem is.

I noticed that my ConTeXt version is pretty old: "ConTeXt ver:
2015.02.03 23:55 MKIV beta" (hmm... I didn't update at ConTeXt meeting
as I usually do, stupid me.)
I'd rather not update just now (production in sensitive phase), but if
you think the problem will go away with an update, I'll do it.

Move your intro text after the \startfrontmatter command everything before
it doesn’t belong to any sectionblock.

You can also omit \startext and \stoptext commands when you \startcomponent
etc. because they already do the work of \starttext.

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

maillist : [email protected] / 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 number in the edge

2012-09-03 Thread Marco Patzer
Hi,

moving the page number into the edge in the following way seems
straightforward, but fails. “edge” is not recognised as “margin” or
“header” is. I wonder why.

Is this intended or am I misusing the command?

\setuplayout
  [backspace=5cm,
   width=10cm,
   edge=1cm]

\setuppagenumbering
  [location={header, edge}] % fails: centred in the header
  % [location={header, margin}] % works

% also works
%\setupheadertexts
  %[edge] [] [pagenumber]

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


Marco

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

maillist : [email protected] / 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 number in margin

2011-11-30 Thread Henning Hraban Ramm

Am 2011-11-29 um 19:18 schrieb Hans Hagen:

As you know your way around context the following example probably  
helps a bit figuring it out ...



Thank you very much! I had a bit of a thinker's block - idea to use a  
framed was missing. I'm using ConTeXt far too seldom.



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

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

maillist : [email protected] / 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 number in margin

2011-11-29 Thread Hans Hagen

On 27-11-2011 13:40, Henning Hraban Ramm wrote:

Hi again,

I’d like to get my page numbers in the margin.
This works:
\setuppagenumbering[alternative=doublesided,location=margin]

But that way it’s on the bottom of the footer margin; I'd like it on the
top.

Second variant: Even better, I’d like my page number at the bottom of
the text margin. How can I achieve that?

location option "marginedge" doesn’t seem to do anything, as far as i
can tell, and "inright" is the same as "margin".


As you know your way around context the following example probably helps 
a bit figuring it out ...


\showframe

\setuppagenumbering[alternative=doublesided,location=]

\setupfooter[strut=]

\setupfootertexts[margin][][\setups{whatever}]

\startsetups whatever
\framed[height=\vsize,width=\hsize]{\pagenumber}
\stopsetups

\starttext

test \page test \page

\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 : [email protected] / 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 number in margin

2011-11-27 Thread Henning Hraban Ramm

Hi again,

I’d like to get my page numbers in the margin.
This works:
\setuppagenumbering[alternative=doublesided,location=margin]

But that way it’s on the bottom of the footer margin; I'd like it on  
the top.


Second variant: Even better, I’d like my page number at the bottom of  
the text margin. How can I achieve that?


location option "marginedge" doesn’t seem to do anything, as far as i  
can tell, and "inright" is the same as "margin".


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

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

maillist : [email protected] / 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 number placement in multiline TOC entry

2011-11-07 Thread Wolfgang Schuster

Am 07.11.2011 um 16:09 schrieb Andreas Harder:

> 
> On 07.11.2011, at 15:51, Michael Guravage wrote:
> 
>> Greetings,
>> 
>> At the recent ConTeXt workshop someone mentioned that they had achieved 
>> placing a pagenumber to the right of the first line of a multiline table of 
>> contents entry. Can anyone describe how to acomplish this?
> 
> Hi,
> 
> something like this?

Hans wrote some code for Thomas A. Schmitz (the one how showed it at the 
conference) but it never went into the core.

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

maillist : [email protected] / 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 number placement in multiline TOC entry

2011-11-07 Thread Andreas Harder

On 07.11.2011, at 15:51, Michael Guravage wrote:

> Greetings,
> 
> At the recent ConTeXt workshop someone mentioned that they had achieved 
> placing a pagenumber to the right of the first line of a multiline table of 
> contents entry. Can anyone describe how to acomplish this?

Hi,

something like this?

\define[3]\ChapterList
  {\bTABLE[offset=0pt,rulethickness=0pt,strut=yes,frame=off,width=broad]
 \bTR
   \bTD[width=2em] \begstrut#1\endstrut \eTD
   \bTD\begstrut#2\endstrut \eTD
   \bTD[width=2em,align={left,high}] \begstrut#3\endstrut \eTD
 \eTR
   \eTABLE}

\setuplist[chapter][alternative=command,command=\ChapterList]

\starttext \showframe
  \placelist[chapter]
  \dorecurse{3}{\chapter{Some very long title. Some very long title. Some very 
long title. Some very long title. Some very long title. }}
\stoptext

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

maillist : [email protected] / 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 number placement in multiline TOC entry

2011-11-07 Thread Michael Guravage
Greetings,

At the recent ConTeXt workshop someone mentioned that they had achieved
placing a pagenumber to the right of the first line of a multiline table of
contents entry. Can anyone describe how to acomplish this?

With kind regards,

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

maillist : [email protected] / 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 number conversion not working in MKIV?

2010-08-02 Thread Hans Hagen

On 2-8-2010 5:28, Riobard wrote:

Hi,

The following code is expected to produce roman numerals "i" in the footer. I always get 
the number "1" instead. Anybody knows what I'm doing wrong? Thanks very much!

\starttext
\setuppagenumber[number=1]
\setuppagenumbering[conversion=romannumerals,location=footer]
some text
\stoptext


\setupuserpagenumber[numberconversion=romannumerals]


-
  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 : [email protected] / 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 number conversion not working in MKIV?

2010-08-02 Thread Riobard
Hi, 

The following code is expected to produce roman numerals "i" in the footer. I 
always get the number "1" instead. Anybody knows what I'm doing wrong? Thanks 
very much! 

\starttext
\setuppagenumber[number=1]
\setuppagenumbering[conversion=romannumerals,location=footer]
some text
\stoptext




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

maillist : [email protected] / 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 number updates

2009-06-04 Thread richard . stephens

Hello again,

I want to set up a header which stretches across the margins as well as the
text area, so I've defined a layer for use as a background, as follows:

\setuplayout[backspace=3.5cm,leftmargin=0.5cm,leftmargindistance=1.0cm]
\definelayer[pagenumber][width=3cm,height=3cm]
\startsetups layer
\setlayer[pagenumber]{Page \pagenumber}
\stopsetups
\setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber]

\starttext
\dorecurse{4}{\page[empty]}
\stoptext

Unfortunately, the page numbers are all '1'.

If I change the line:

\setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber]

to

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

the page numbering works, so I can get what I want by adjusting the offsets
of the layer.
My question is: should the first one work?

Regards,

Richard


Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number in the middle of the margin

2009-05-27 Thread Hans Hagen

Flavien Lambert wrote:

Sorry, I wasn't clear. \midalign{} put the page number in the (horizontal)
middle of the margin in the bottom. What I would like to do is to put the
page number in the vertical middle of the page.

2009/5/27 Hans Hagen 


Flavien Lambert wrote:


Dear all, as said by the title of the e-mail, I try to put the page number
in the middle (both vertically and horizontally) of the margin. I tried a
custom command like
\def\mypagenumber#1{%
\vfill #1 \vfill
}
\setuppagenumbering{location=margin,command=\mypagenumber}

but, unfortunately, I got an error message on the \vfill. Is there a
direct
way to place my page number ?


(no vfill in hmode)

\midaligned{#1}


then make a vbox of vsize around it




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number in the middle of the margin

2009-05-27 Thread Flavien Lambert
Sorry, I wasn't clear. \midalign{} put the page number in the (horizontal)
middle of the margin in the bottom. What I would like to do is to put the
page number in the vertical middle of the page.

2009/5/27 Hans Hagen 

> Flavien Lambert wrote:
>
>> Dear all, as said by the title of the e-mail, I try to put the page number
>> in the middle (both vertically and horizontally) of the margin. I tried a
>> custom command like
>> \def\mypagenumber#1{%
>> \vfill #1 \vfill
>> }
>> \setuppagenumbering{location=margin,command=\mypagenumber}
>>
>> but, unfortunately, I got an error message on the \vfill. Is there a
>> direct
>> way to place my page number ?
>>
>
> (no vfill in hmode)
>
> \midaligned{#1}
>
>
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>



-- 
Flavien.

"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number in the middle of the margin

2009-05-27 Thread Hans Hagen

Flavien Lambert wrote:

Dear all, as said by the title of the e-mail, I try to put the page number
in the middle (both vertically and horizontally) of the margin. I tried a
custom command like
\def\mypagenumber#1{%
\vfill #1 \vfill
}
\setuppagenumbering{location=margin,command=\mypagenumber}

but, unfortunately, I got an error message on the \vfill. Is there a direct
way to place my page number ?


(no vfill in hmode)

\midaligned{#1}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number in the middle of the margin

2009-05-27 Thread Willi Egger

Hi,

This I would approach with the layer-mechanism.

Willi
On May 27, 2009, at 3:40 PM, Flavien Lambert wrote:

Dear all, as said by the title of the e-mail, I try to put the page  
number in the middle (both vertically and horizontally) of the  
margin. I tried a custom command like

\def\mypagenumber#1{%
\vfill #1 \vfill
}
\setuppagenumbering{location=margin,command=\mypagenumber}

but, unfortunately, I got an error message on the \vfill. Is there  
a direct way to place my page number ?

Regards,

--
Flavien.

"Quantum objects are completely crazy but, at least, they are all  
crazy in the same way." R.P. Feynman.
__ 
_
If your question is of interest to others as well, please add an  
entry to the Wiki!


maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ 
ntg-context

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


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

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


[NTG-context] Page number in the middle of the margin

2009-05-27 Thread Flavien Lambert
Dear all, as said by the title of the e-mail, I try to put the page number
in the middle (both vertically and horizontally) of the margin. I tried a
custom command like
\def\mypagenumber#1{%
\vfill #1 \vfill
}
\setuppagenumbering{location=margin,command=\mypagenumber}

but, unfortunately, I got an error message on the \vfill. Is there a direct
way to place my page number ?
Regards,

-- 
Flavien.

"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Michael Bynum
Ah ha.  That works perfectly.  Thank you.
Mike



On Tue, Feb 3, 2009 at 11:21 AM, Wolfgang Schuster
 wrote:
>
> Am 03.02.2009 um 16:36 schrieb Michael Bynum:
>
>> Great that fixed it.  Sorry about the subject by the way.  I thought
>> it would auto add the mailing list prefix.
>>
>> I still can't get the total number of pages to work out right if I
>> have a title page.  I used standardmakeup to keep the title page from
>> being numbered, but it is still counted in \totalnumberofpages.
>
> Use \lastpagenumber.
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Wolfgang Schuster


Am 03.02.2009 um 16:36 schrieb Michael Bynum:


Great that fixed it.  Sorry about the subject by the way.  I thought
it would auto add the mailing list prefix.

I still can't get the total number of pages to work out right if I
have a title page.  I used standardmakeup to keep the title page from
being numbered, but it is still counted in \totalnumberofpages.


Use \lastpagenumber.

Wolfgang

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

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


Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Michael Bynum
Great that fixed it.  Sorry about the subject by the way.  I thought
it would auto add the mailing list prefix.

I still can't get the total number of pages to work out right if I
have a title page.  I used standardmakeup to keep the title page from
being numbered, but it is still counted in \totalnumberofpages.

\definelayer[headerfooter][width=\paperwidth,height=\paperheight]

\startsetups layer
\setlayer[headerfooter][preset=lefttop,x=4in,y=1in]%
 {\framed[frame=off,width=1.25in,align=middle,offset=none]{\tfd Page~
   \pagenumber~of~\totalnumberofpages}}
\stopsetups

\starttext

\startstandardmakeup
\tfd  THIS IS A TITLE PAGE
\page
\stopstandardmakeup

\setupbackgrounds[page][setups=layer,background={headerfooter}]

\dorecurse{2}{\page[empty]}
\stoptext



Mike



On Tue, Feb 3, 2009 at 4:36 AM, Wolfgang Schuster
 wrote:
>
> Am 03.02.2009 um 07:50 schrieb Michael Bynum:
>
>> I am trying to use a layer to insert a page number in my document, but
>> the page always displays page number 1.  It seems nothing that I have
>> tried has worked.  I also don't know how to exclude the first page
>> from the total number of pages count.  Here is the code I'm trying to
>> use.
>
>
> You can find a solution from Aditya under the following link:
>
> http://archive.contextgarden.net/message/20070714.145156.91a20ef2.en.html
>
> I wrote also for myself a short test file for myself a while ago.
>
> \definelayer[head][width=\paperwidth,height=\paperheight]
> \definelayer[nexthead][width=\paperwidth,height=\paperheight]
>
> \startsetups layer
>
> \doif   {\pagenumber}{1}{\setlayer[head][offset=2cm]{First page}}
> \doifnot{\pagenumber}{1}{\setlayer[nexthead][offset=2cm]{Page \pagenumber}}
>
> \stopsetups
>
> \setupbackgrounds[page][setups=layer,background={head,nexthead}]
>
> \starttext
> \dorecurse{4}{\page[empty]}
> \stoptext
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Wolfgang Schuster


Am 03.02.2009 um 07:50 schrieb Michael Bynum:


I am trying to use a layer to insert a page number in my document, but
the page always displays page number 1.  It seems nothing that I have
tried has worked.  I also don't know how to exclude the first page
from the total number of pages count.  Here is the code I'm trying to
use.



You can find a solution from Aditya under the following link:

http://archive.contextgarden.net/message/20070714.145156.91a20ef2.en.html

I wrote also for myself a short test file for myself a while ago.

\definelayer[head][width=\paperwidth,height=\paperheight]
\definelayer[nexthead][width=\paperwidth,height=\paperheight]

\startsetups layer

\doif   {\pagenumber}{1}{\setlayer[head][offset=2cm]{First page}}
\doifnot{\pagenumber}{1}{\setlayer[nexthead][offset=2cm]{Page  
\pagenumber}}


\stopsetups

\setupbackgrounds[page][setups=layer,background={head,nexthead}]

\starttext
\dorecurse{4}{\page[empty]}
\stoptext

Wolfgang

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

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


[NTG-context] Page number not updating in layer

2009-02-02 Thread Michael Bynum
I am trying to use a layer to insert a page number in my document, but
the page always displays page number 1.  It seems nothing that I have
tried has worked.  I also don't know how to exclude the first page
from the total number of pages count.  Here is the code I'm trying to
use.


\setupoutput[dvipsone]

\starttext

\definelayer[pagenumber]

\setuplayer
[pagenumber]
[width=\paperwidth,
height=\paperheight,
state=repeat]

\setlayer[pagenumber][preset=lefttop,x=4in,y=5.5in]%
 {\framed[width=1.25in,align=middle,offset=none]{\tfx Page
   \getnumber[page]~of~\totalnumberofpages}}

\setupbackgrounds
[page]
[background={pagenumber},state=start]

test
\page
test
\page
test

\stoptext


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

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


Re: [NTG-context] Page number on 'chapter' pages

2007-02-05 Thread Dave
> \startsetups [chapter:before]
>  \page[left]
>  \noheaderandfooterlines
>  \vbox to 35mm{}
>  \vbox{\blank
>  \startalignment[left,nothyphenated]
> \noindent \setups[chapter:quote]
>   \stopalignment}
>   \resetsetups[quote:text]
>   \page[right]
>   \noheaderandfooterlines
>  \stopsetups

The problem is with the two '\noheaderandfooterlines' lines.  Replaced
with '\setupheader[state=empty]'  and everything works fine.

Dave
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number on 'chapter' pages

2007-02-01 Thread Confused Scientist

Hi all,
I'm using ConTeXt to layout my phd thesis and I need to follow some rather
strict rules.  One of these is that every page must be numbered.  I'm having
some trouble adding numbers to the page where the chapter starts and the
preceding page (where I place a famous quotation).  Below are the
definitions in my environment.

Any ideas on how to add page numbers to these pages?

Thanks,
Dave

%%% cut

\setuppagenumbering[
 alternative=doublesided,
 style={\sc},
 location={footer, marginedge},
 partnumber=no,
 way=bytext]

%%% Formal title, Chapter #: Title
\definetext[chapter][footer][pagenumber]

\setuphead
 [chapter]
 [command=\MyChapterText,
  style={\switchtobodyfont[UtopiaTitling, 16pt]\sc},
  placehead=yes,
  color=black,
  number=yes,
  continue=no,
  distance=0pt,
  page=,
  header=nomarking,
  footer=chapter,
  distance=0pt,
  before=\setups{chapter:before}]

\def\MyChapterText#1#2%
 {\vbox to 35mm
   \bgroup{\leftaligned{\vbox{\headtext{chapter} #1\blank#2}}}\vss\egroup}
\setupheadtext[chapter=Chapter]

\startsetups [chapter:before]
 \page[left]
 \noheaderandfooterlines
 \vbox to 35mm{}
 \vbox{\blank
 \startalignment[left,nothyphenated]
   \noindent \setups[chapter:quote]
 \stopalignment}
 \resetsetups[quote:text]
 \page[right]
 \noheaderandfooterlines
\stopsetups

%%% cut
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Page number alignment in \placecontent

2006-11-02 Thread Ángel Luis García Fernández
Hi again,

you were right, Maarten-Jan. The problem was the following:

\setupindenting[medium]

I like the first line of each paragraph to be indented, so I put the above 
command in my "general config" file. The undesired effect is that it also 
indented the index lines, shifting them to the right. That's the reason why 
the page numbers appeared in the right margin (is this a bug? I mean, should 
ConTeXt break the index line instead of put the number in the margin?).

Now I have moved the \setupindenting command to the body section of my 
document, and the \setuplist options you wrote in the previous e-mail work ok 
(I forgot the "criterium=all" in the \setupcombinedlist command).

Thanks for your help,

Ángel Luis

> From: "M.J. Kallen" <[EMAIL PROTECTED]>
> Subject: Re: [NTG-context] ntg-context Digest, Vol 28, Issue 76
> Angel-Luis,
>
> I'm not sure why you do not get a table of contents, maybe try to add
> criterium=all to the \setupcombinedlist command and see if that works?
> Also, you have used \placecontent, which you can use instead of
> \completecontent.
>
> I've tried your settings using the live ConTeXt on the wiki and it works
> without the page numbers in the margin. Looking at your sample file, the
> lines with the sections are somehow shifted to the right. It is not
> possible to see why this is happening. Are you shure you have not added
> something somewhere to change the appearance of the list?
>
> Maarten-Jan
>
> - Original Message 
> From: ?ngel Luis Garc?a Fern?ndez <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, October 30, 2006 10:16:24 AM
>
>
> I tried that, but then nothing appears (empty index)
>
> Angel-Luis
>
> > Hi Angel-Luis,
> >
> > looks like you want a LaTeX-like table of contents. I achieved what I
> > think you want to achieve as well, using the following commands:
> >
> > % setup table of contents
> > \setupcombinedlist[content][alternative=c,level=section]
> >
> > % margins, widths and distances are setup such that section lines line up
> > with chapter text (change to your liking!)
> > \setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntit
> >le =yes,before=\blank]
> > \setuplist[section][margin=8mm,width=6mm,distance=2mm]
> >
> > % place the following in the relevant location
> > \completecontent
> >
> > Hope this ends up looking like you want it to!
> >
> > Maarten-Jan
> >
> > - Original Message 
> > From: ?ngel Luis Garc?a Fern?ndez <[EMAIL PROTECTED]>
> > To: [email protected]
> > Sent: Friday, October 27, 2006 10:16:21 PM
> > Subject: [NTG-context] Page number alignment in \placecontent
> >
> >
> > Hi all,
> >
> > sorry for bothering you with this, but I have a problem: I like this
> > style for my Index:
> >
> > \setuplist[chapter][style=bold]
> >
> > \placecontent[level=section,
> >   alternative=c,
> >   criterium=all,
> >   aligntitle=yes]
> >
> > But then the section page numbers are placed in the right margin of the
> > page instead of in the text area as the chapter page numbers are. (if you
> > want a sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16
> > KB)
> >
> > How can I manage to keep all the index structure while moving the section
> > page numbers to the left?
> >
> > ?ngel-Luis
> > ___
> > ntg-context mailing list
> > [email protected]
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
> >
> >
> >
> > --
> >
> > ___
> > ntg-context mailing list
> > [email protected]
> > http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Page number alignment in \placecontent

2006-10-28 Thread M.J. Kallen
Hi Angel-Luis,

looks like you want a LaTeX-like table of contents. I achieved what I think you 
want to achieve as well, using the following commands:

% setup table of contents
\setupcombinedlist[content][alternative=c,level=section]

% margins, widths and distances are setup such that section lines line up with 
chapter text (change to your liking!)
\setuplist[chapter][margin=0mm,width=6mm,distance=2mm,style=bold,aligntitle=yes,before=\blank]
\setuplist[section][margin=8mm,width=6mm,distance=2mm]

% place the following in the relevant location
\completecontent

Hope this ends up looking like you want it to!

Maarten-Jan

- Original Message 
From: Ángel Luis García Fernández <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, October 27, 2006 10:16:21 PM
Subject: [NTG-context] Page number alignment in \placecontent


Hi all,

sorry for bothering you with this, but I have a problem: I like this style for 
my Index:

\setuplist[chapter][style=bold]

\placecontent[level=section,
  alternative=c,
  criterium=all,
  aligntitle=yes]

But then the section page numbers are placed in the right margin of the page 
instead of in the text area as the chapter page numbers are. (if you want a 
sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB)

How can I manage to keep all the index structure while moving the section page 
numbers to the left?

Ángel-Luis
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number alignment in \placecontent

2006-10-27 Thread Ángel Luis García Fernández
Hi all,

sorry for bothering you with this, but I have a problem: I like this style for 
my Index:

\setuplist[chapter][style=bold]

\placecontent[level=section,
  alternative=c,
  criterium=all,
  aligntitle=yes]

But then the section page numbers are placed in the right margin of the page 
instead of in the text area as the chapter page numbers are. (if you want a 
sample: http://wwwdi.ujaen.es/~algarcia/page.pdf . It's just 16 KB)

How can I manage to keep all the index structure while moving the section page 
numbers to the left?

Ángel-Luis
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number disappears after \page[empty]

2005-05-15 Thread Paul Tremblay
My page number disappears for the first page after I issue a
\page[empy] command.

Here is an example from my file:

\page[empty] \part{}\setuppagenumbering[state=stop,
conversion=romannumerals]\setuppagenumber[number=3]\setupfootertexts[\vbox
{\centerline{\pagenumber{}}\vskip12pt }][][][]
\blank[12pt]\testpage[4]

The page number appears for subsequent pages.

Thanks

Paul


-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Page number in interaction menu

2005-04-15 Thread David Munger
Sorry to bother again, but could somebody please check if they get these
undesired page numbers within the interaction menu from this code?

It seems to me that it is a bug, unless there is some setup command
missing in my code.


Thanks for any help,

David


David Munger :
> Hello,
> 
> Is there a way to remove the page number from the interaction menu? I
> might be doing something wrong. Thanks for any clue.
> 
> Minimal example:
> 
> \setuppapersize   [S6][S6]
> \setuplayout [height=300pt, bottom=24pt]
> \setupbodyfont [20pt]
> 
> \setupinteraction [state=start, menu=on]
> \startinteractionmenu [bottom]
>   Menu: \placelist[chapter]
> [alternative=bottom,criterium=all,pagenumber=no]
> \stopinteractionmenu
> 
> \starttext
> \chapter{First}
> \page hello
> \chapter{Second}
> \stoptext
> 
> 
> Regards,
> 
> David
> 
> ___
> ntg-context mailing list
> [email protected]
> http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] page number in \cite

2005-04-13 Thread Robert Ullrey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks Eckhart, I am still somewhat new to the list so knowing now what 
an excellent archive it has is great.

Robert

On Apr 12, 2005, at 1:07 PM, Eckhart GuthÃhrlein wrote:

> Probably you've seen this one:
> http://archive.contextgarden.net/thread/20050217.043531.e1778ec1.html
>
> A little older:
> http://archive.contextgarden.net/thread/20010906.200738.c917d16a.html
>
> -- 
> Eckhart 
-BEGIN PGP SIGNATURE-
Version: PGP 8.1

iQA/AwUBQl0mZfFTYcwurb3FEQLVzQCfbNWH/shQabPDh/5tbayvbTYVm3gAoI7O
n6m67crP5zSv5gJClq1X+f6Z
=4NFD
-END PGP SIGNATURE-

___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] page number in \cite

2005-04-12 Thread Eckhart Guthöhrlein
On Tue, 12 Apr 2005 at 09:54:43-0700, Robert Ullrey wrote:
> I apologize because I swear I just saw the answer to this, but I can 
> not find it in my achieves. Is there a way, or work around, to place 
> pagenumbers in a \cite? For example, see (T. Hoekwater, 1994, pp 
> 12-14). I have use (I think) \cite[pp 127-129]{key} in Latex, what I 
> would love though is in ConTeXt to use \cite[hoekwater94{pp 123-129}] 
> to get {T.Hoekwater, 1994, pp 123-129).

Probably you've seen this one:
http://archive.contextgarden.net/thread/20050217.043531.e1778ec1.html

A little older:
http://archive.contextgarden.net/thread/20010906.200738.c917d16a.html

-- 
Eckhart
___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] page number in \cite

2005-04-12 Thread Robert Ullrey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I apologize because I swear I just saw the answer to this, but I can 
not find it in my achieves. Is there a way, or work around, to place 
pagenumbers in a \cite? For example, see (T. Hoekwater, 1994, pp 
12-14). I have use (I think) \cite[pp 127-129]{key} in Latex, what I 
would love though is in ConTeXt to use \cite[hoekwater94{pp 123-129}] 
to get {T.Hoekwater, 1994, pp 123-129).

I have a paper I am trying to meet the these guidelines on 


Thanks,
Robert

-BEGIN PGP SIGNATURE-
Version: PGP 8.1

iQA/AwUBQlv9WvFTYcwurb3FEQLGyQCgxo0FCBAob3CkNWHlg1wxdtphyigAn1ny
luOol3vLSlaH72hy/h7jCi5W
=ri1O
-END PGP SIGNATURE-

___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Page number in interaction menu

2005-04-10 Thread David Munger
Hello,

Is there a way to remove the page number from the interaction menu? I
might be doing something wrong. Thanks for any clue.

Minimal example:

\setuppapersize [S6][S6]
\setuplayout [height=300pt, bottom=24pt]
\setupbodyfont [20pt]

\setupinteraction [state=start, menu=on]
\startinteractionmenu [bottom]
  Menu: \placelist[chapter]
[alternative=bottom,criterium=all,pagenumber=no]
\stopinteractionmenu

\starttext
\chapter{First}
\page hello
\chapter{Second}
\stoptext


Regards,

David

___
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Page number in outer margin?

2004-04-12 Thread Willi Egger
Dear John,

I was playing with some code from the "details" manual. My intention was 
to make "thumbholes" i.e. a coloured mark with the chapter number on it 
at the edge of the page at each starting chapter. The idea is then to 
cut the pages before that mark ... Though there is certain progress I am 
unable to use the \headnumber[chapter] in a calculation to move the mark 
down the edge for each chapter until arrived at the bottom and then 
restart at the top ... (This is a wish of a bookbinder for preparing a 
manual ...)

But I was able to make your "problem" work with the same approach. 
Please refer to the attached file "bleedingpagenumber.tex". Though it 
does surely not win a price for beauty, it works. You will have to play 
with the different x and y, width and height components to move the 
pagenumber to the desired place. ...

Kind regards Willi

John Culleton wrote:
I want to place the page number vertically centered in the 
outer margin, with some prettyprinting. Does one do this 
with the \setpagenumber command, the \inmargin command, or 
some combination thereof?

I can figure out how to do it in plain TeX but I hate to 
revert to plain just for this feature.
% pagenumbers in the margin at half makeupheight
%
% Context file
% filename: bleedingpagenumber.tex
% W. Egger
% 12.04.2004

\setupoutput[pdftex]
\usetypescript[palatino][texnansi]
\setupbodyfont[palatino,rm,12pt]
\setuppapersize[A4][A3,portrait]
\setuplayout[location=middle]
\setupcolors[state=start]

\setuppagenumbering[state=start,location={footer,marginedge}]

\startreusableMPgraphic{Pagenumberbackground}
path p;
p := fullcircle scaled 50pt ;
fill p withcolor blue;
p := unitsquare xyscaled 50pt shifted (0,-25pt);
fill p withcolor blue;
setbounds currentpicture to boundingbox currentpicture leftenlarged 50pt ;
%   draw bbox currentpicture withcolor red ;
\stopreusableMPgraphic

\defineoverlay[Pagenumberbackground]
[\useMPgraphic{Pagenumberbackground}]

\definelayer
[Pagenumber]
[width=\rightmarginwidth,
height=\rightmarginwidth]

\startsetups Pagenumber
\setups[Pagenumber:Number]
\setups[Pagenumber:Finish]
\stopsetups

\startsetups Pagenumber:Number

\setlayerframed
[Pagenumber]
[x=1mm,
y=50pt,
location={right,top}]
[width=\dimexpr(\cutspace-\rightmargindistance),
height=\dimexpr(\cutspace-\rightmargindistance),
foregroundcolor=yellow,
background=Pagenumberbackground,
frame=on,
offset=none,
align={middle,lohi}]
{\framed[frame=on,
width=.8\rightmarginwidth,
align={left,lohi},
offset=8pt]
{\pagenumber}}%
\stopsetups


\startsetups Pagenumber:Finish
\framed
[width=\makeupwidth,
height=\headerheight,
background=Pagenumber,
frame=off]
{}
\stopsetups

\setuptexttexts[margin] [] [\setups{Pagenumber}]

\setupheadnumber[chapter][8]
\starttext
\showframe
\chapter{This is chapter no \headnumber[chapter]}
\chapter{This is chapter no \headnumber[chapter]}
\chapter{This is chapter no \headnumber[chapter]}
\chapter{This is chapter no \headnumber[chapter]}
\chapter{This is chapter no \headnumber[chapter]}

\stoptext

[NTG-context] Page number in outer margin?

2004-04-12 Thread John Culleton
I want to place the page number vertically centered in the 
outer margin, with some prettyprinting. Does one do this 
with the \setpagenumber command, the \inmargin command, or 
some combination thereof?

I can figure out how to do it in plain TeX but I hate to 
revert to plain just for this feature.
-- 
John Culleton
Able Typesetters and Indexers
http://wexfordpress.com

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context