ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Pagenumbers and labels
@ 2006-01-13 21:58 Idris Samawi Hamid
  2006-01-16 17:19 ` Fwd: " Idris Samawi Hamid
  0 siblings, 1 reply; 7+ messages in thread
From: Idris Samawi Hamid @ 2006-01-13 21:58 UTC (permalink / raw)


Dear syndicate,

Three questions (test file attached):

1. A pagenumbering problem: I have

\setuppagenumbering[way=bytext]

Good: The page numbers are continuous and do not restart with each new  
part;

Bad:  The page numbers are still prefaced by the part number, e.g.

1-24, 1-25, 2-26, 2-27 etc.

I want, rather, just 24, 25, 26, 27 etc....


2. I want the chapter numerals to ignore the part, so I get

Part 2, Chapter 3, Chapter 4.


3. I would to keep "Part 1" "Part 2" in the TOC, but no numeral at all in  
the main text. I got rid of the "Part" label in the main text, but not the  
numeral.

incrementnumber=no

works but then the TOC loses the "Part"s altogether.

Thnx in advance

Best
Idris

====================================================
% output=pdf interface=en

\setuphead[part][number=yes,
                  bodypartlabel={},
                  page=right,
                  continue=yes,
                  ownnumber=no,
                  incrementnumber=yes,
                  placehead=yes]

\setuppagenumbering[way=bytext]

\definecombinedlist[summary][part,chapter][textstyle=\tf]

\starttext

\placesummary

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\stoptext

====================================================

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Fwd: Pagenumbers and labels
  2006-01-13 21:58 Pagenumbers and labels Idris Samawi Hamid
@ 2006-01-16 17:19 ` Idris Samawi Hamid
  2006-01-16 18:14   ` Taco Hoekwater
  2006-01-16 21:44   ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Idris Samawi Hamid @ 2006-01-16 17:19 UTC (permalink / raw)


Dear cabal,

Got no answer yet, resending-)

Best
Idris

------- Forwarded message -------
From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: ntg-context@ntg.nl
Cc:
Subject: [NTG-context] Pagenumbers and labels
Date: Fri, 13 Jan 2006 14:58:48 -0700

Dear syndicate,

Three questions (test file attached):

1. A pagenumbering problem: I have

\setuppagenumbering[way=bytext]

Good: The page numbers are continuous and do not restart with each new
part;

Bad:  The page numbers are still prefaced by the part number, e.g.

1-24, 1-25, 2-26, 2-27 etc.

I want, rather, just 24, 25, 26, 27 etc....


2. I want the chapter numerals to ignore the part, so I get

Part 2, Chapter 3, Chapter 4.


3. I would to keep "Part 1" "Part 2" in the TOC, but no numeral at all in
the main text. I got rid of the "Part" label in the main text, but not the
numeral.

incrementnumber=no

works but then the TOC loses the "Part"s altogether.

Thnx in advance

Best
Idris

====================================================
% output=pdf interface=en

\setuphead[part][number=yes,
                   bodypartlabel={},
                   page=right,
                   continue=yes,
                   ownnumber=no,
                   incrementnumber=yes,
                   placehead=yes]

\setuppagenumbering[way=bytext]

\definecombinedlist[summary][part,chapter][textstyle=\tf]

\starttext

\placesummary

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\part{Test}

\chapter{Knuth}

\dorecurse{7}{\input knuth\par }

\chapter{More Knuth}

\dorecurse{7}{\input knuth\par }

\stoptext

====================================================
-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fwd: Pagenumbers and labels
  2006-01-16 17:19 ` Fwd: " Idris Samawi Hamid
@ 2006-01-16 18:14   ` Taco Hoekwater
  2006-01-16 23:53     ` Idris Samawi Hamid
  2006-01-16 21:44   ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2006-01-16 18:14 UTC (permalink / raw)


Idris Samawi Hamid wrote:
> Dear cabal,
> 
> Got no answer yet, resending-)

It sounds to me like you only need the 'appearance' of
Parts to be present, instead of the 'actual' divisions.

If so, you could consider defining your own '\part' macro that
does a \writetolist. You can do that with something as simple as
this:

   \newcount\mypart
   \def\part#1{\page[right] \advance\mypart 1
      \expanded{\writetolist[part]{\the\mypart}{#1}}}

Cheers, Taco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fwd: Pagenumbers and labels
  2006-01-16 17:19 ` Fwd: " Idris Samawi Hamid
  2006-01-16 18:14   ` Taco Hoekwater
@ 2006-01-16 21:44   ` Hans Hagen
  2006-01-16 23:47     ` Idris Samawi Hamid
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-01-16 21:44 UTC (permalink / raw)


Idris Samawi Hamid wrote:

> Dear cabal,
>
> Got no answer yet, resending-)
>
> Best
> Idris
>
> ------- Forwarded message -------
> From: "Idris Samawi Hamid" <ishamid@colostate.edu>
> To: ntg-context@ntg.nl
> Cc:
> Subject: [NTG-context] Pagenumbers and labels
> Date: Fri, 13 Jan 2006 14:58:48 -0700
>
> Dear syndicate,
>
> Three questions (test file attached):
>
> 1. A pagenumbering problem: I have
>
> \setuppagenumbering[way=bytext]
>
doesn't partnumber=no work?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fwd: Pagenumbers and labels
  2006-01-16 21:44   ` Hans Hagen
@ 2006-01-16 23:47     ` Idris Samawi Hamid
  0 siblings, 0 replies; 7+ messages in thread
From: Idris Samawi Hamid @ 2006-01-16 23:47 UTC (permalink / raw)


On Mon, 16 Jan 2006 14:44:36 -0700, Hans Hagen <pragma@wxs.nl> wrote:

> partnumber=no

Ahh! Now I understand what the italics `sectionnumber' key means-)

\setuppagenumbering[way=bytext,partnumber=no]

In any case, it does not work-(
Yes, the pagenumbering works but the TOC still has the part numbers. I  
also tried

\definecombinedlist[summary][part,chapter][textstyle=\tf,partnumber=no]

but still, partnumerals in the TOC. Is this a bug?

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fwd: Pagenumbers and labels
  2006-01-16 18:14   ` Taco Hoekwater
@ 2006-01-16 23:53     ` Idris Samawi Hamid
  2006-01-17  8:01       ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Idris Samawi Hamid @ 2006-01-16 23:53 UTC (permalink / raw)


On Mon, 16 Jan 2006 11:14:20 -0700, Taco Hoekwater <taco@elvenkind.com>  
wrote:

> Idris Samawi Hamid wrote:
>> Dear cabal,
>>  Got no answer yet, resending-)
>
> It sounds to me like you only need the 'appearance' of
> Parts to be present, instead of the 'actual' divisions.
>
> If so, you could consider defining your own '\part' macro that
> does a \writetolist. You can do that with something as simple as
> this:
>
>    \newcount\mypart
>    \def\part#1{\page[right] \advance\mypart 1
>       \expanded{\writetolist[part]{\the\mypart}{#1}}}

Thank you for the tip. I really need to practice low-level TeX coding  
more, ConTeXt has made me lazy...

Are there any manuals for with clear examples explaining the proper use of  
\expanded, \unexpanded, etc.?

:-)))

All the best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fwd: Pagenumbers and labels
  2006-01-16 23:53     ` Idris Samawi Hamid
@ 2006-01-17  8:01       ` Taco Hoekwater
  0 siblings, 0 replies; 7+ messages in thread
From: Taco Hoekwater @ 2006-01-17  8:01 UTC (permalink / raw)


Hi,

Idris Samawi Hamid wrote:
> Are there any manuals 

no, not really. The low-level TeX is in the TeXbook, of course,
but the context API macros are not documented yet outside
the source.

> ... clear examples 

the context source contains lots of examples of API use. :-)

> explaining the proper use   of  \expanded, \unexpanded, etc.?

Hopefully, eventually there will be a manual. This is the
"API project" Hans, Patrick and I sometimes talk about.
It is somehow rather hard to get it off the ground. :-(

Taco

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-17  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-13 21:58 Pagenumbers and labels Idris Samawi Hamid
2006-01-16 17:19 ` Fwd: " Idris Samawi Hamid
2006-01-16 18:14   ` Taco Hoekwater
2006-01-16 23:53     ` Idris Samawi Hamid
2006-01-17  8:01       ` Taco Hoekwater
2006-01-16 21:44   ` Hans Hagen
2006-01-16 23:47     ` Idris Samawi Hamid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).