* Re: TOC: alternatives (Was: continous chapter numbering)
@ 2007-11-14 1:44 Jeff Smith
2007-11-14 1:53 ` luigi scarso
2007-11-14 12:06 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: Jeff Smith @ 2007-11-14 1:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Nov 13, 2007 4:51 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> % continue chapter numberind over parts
> \setuphead[part][resetnumber=no]
Thanks, that was simple in the end...
Now, a real TOC question/problem.
Reading through old posts and docs, I remain unconvinced as to what is
the best solution between creating my own lists or customizing the
standard Alternatives. But even then, is the latter possible?
I only need to modify two slight details with alternative c (or b, not
sure yet if I use the dots or not). When creating my own lists, I try
to emulate alternative c but I still am not satisfied with what I come
up with.
First off, I don't want the chapter/section numbers to align on the
left, I want them to indent with the text.
Second, I don't want the chapter number in my section numberings. So,
instead of the following (here I don't bother with the page numbers) :
I Chapter One
I-1 First Section
I-1.1 First Subsection
I-1.2 Second Subsection
I-2 Section Section
II Chapter Two
II-1 First section
II-1.1 First subsection
II-2.1 Section subsection
I'd like to have:
I. Chapter One
1. First Section
1.1. First Subsection
1.2. Second Subsection
2. Section Section
II. Chapter Two
1. First section
1.1. First subsection
2.1. Section subsection
If I make my own lists, I don't know how to align the page number to
the right, like alternative=b/c does, and I can't find how to have a
linebreak with single linespacing after an entry (my document doesn't
use single linespacing and so it interefered with my TOC
explorations). Alternative=b/c does everything I need, minus the two
details mentionned above. So, it would seem easier if I could just
modify it. Is it possible?
Thanks again!
Jeff
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TOC: alternatives (Was: continous chapter numbering)
2007-11-14 1:44 TOC: alternatives (Was: continous chapter numbering) Jeff Smith
@ 2007-11-14 1:53 ` luigi scarso
2007-11-14 12:06 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: luigi scarso @ 2007-11-14 1:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 838 bytes --]
On Nov 14, 2007 2:44 AM, Jeff Smith <ascarel@gmail.com> wrote:
> On Nov 13, 2007 4:51 AM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
> > % continue chapter numberind over parts
> > \setuphead[part][resetnumber=no]
>
> Thanks, that was simple in the end...
>
> Now, a real TOC question/problem.
>
> Reading through old posts and docs, I remain unconvinced as to what is
> the best solution between creating my own lists or customizing the
> standard Alternatives. But even then, is the latter possible?
>
Yes with \setuplist .
For example I have used this
\def\PartCommand#1#2#3{%
\framed[width=broad,
frame=off,
align={right,lohi}]{\bfd #2\quad#3}}
\setuplist[part]
[alternative=none,
partnumber=no,
before={\blank[1em]},
command={\PartCommand},]
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1479 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TOC: alternatives (Was: continous chapter numbering)
2007-11-14 1:44 TOC: alternatives (Was: continous chapter numbering) Jeff Smith
2007-11-14 1:53 ` luigi scarso
@ 2007-11-14 12:06 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2007-11-14 12:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/11/14, Jeff Smith <ascarel@gmail.com>:
> On Nov 13, 2007 4:51 AM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
> > % continue chapter numberind over parts
> > \setuphead[part][resetnumber=no]
>
> Thanks, that was simple in the end...
>
> Now, a real TOC question/problem.
>
> Reading through old posts and docs, I remain unconvinced as to what is
> the best solution between creating my own lists or customizing the
> standard Alternatives. But even then, is the latter possible?
>
> I only need to modify two slight details with alternative c (or b, not
> sure yet if I use the dots or not). When creating my own lists, I try
> to emulate alternative c but I still am not satisfied with what I come
> up with.
>
> First off, I don't want the chapter/section numbers to align on the
> left, I want them to indent with the text.
>
> Second, I don't want the chapter number in my section numberings. So,
> instead of the following (here I don't bother with the page numbers) :
>
> I Chapter One
> I-1 First Section
> I-1.1 First Subsection
> I-1.2 Second Subsection
> I-2 Section Section
> II Chapter Two
> II-1 First section
> II-1.1 First subsection
> II-2.1 Section subsection
>
> I'd like to have:
>
> I. Chapter One
> 1. First Section
> 1.1. First Subsection
> 1.2. Second Subsection
> 2. Section Section
> II. Chapter Two
> 1. First section
> 1.1. First subsection
> 2.1. Section subsection
>
> If I make my own lists, I don't know how to align the page number to
> the right, like alternative=b/c does, and I can't find how to have a
> linebreak with single linespacing after an entry (my document doesn't
> use single linespacing and so it interefered with my TOC
> explorations). Alternative=b/c does everything I need, minus the two
> details mentionned above. So, it would seem easier if I could just
> modify it. Is it possible?
\setuppagenumbering[way=bytext,partnumber=no]
\setuphead[part][resetnumber=no]
\setuphead[part,chapter,section,subsection][stopper={.}]
\setuplist[part,chapter,section,subsection][stopper={.}]
\setuplist
[part,chapter,section,subsection,subsubsection]
[partnumber=no]
\setuplabeltext[part=]
\setuplist[part][width=2em,distance=0pt]
\setuplist[chapter][margin=2em]
\setuplist[section][margin=4em]
\setuplist[subsection][margin=5em]
\starttext
\completecontent
\dorecurse{4}
{\part{Part}
\dorecurse{4}
{\chapter{Chapter}
\dorecurse{2}{\section{Section}}}}
\stoptext
For explanations of the example look into core-sec.tex and core-lst.tex.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-14 12:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 1:44 TOC: alternatives (Was: continous chapter numbering) Jeff Smith
2007-11-14 1:53 ` luigi scarso
2007-11-14 12:06 ` Wolfgang Schuster
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).