> \start
> \setuppagenumbering[numberseparator=/]
> \placecombinedlist[Xontents]
> \stop

Ah, I see, \placecombinedlist uses the value of numberseparator active
at the time it is called! Thanks.

> indeed, since left/right is cosmetics an dit's easier to add that than
> to remov eit when you dont wan it, so:
> \setuplist[Appchapter][pagecommand=A]
> % or cleaner: pagecommand=\AppPrefix and \def\AppPrefix#1{A\enspace#1}

I had experimented with that, and it certainly works (I chose the second
option, but dropped the \enspace), BUT... the page numbers column in the
table of contents is now mis-aligned. I've pasted my revised minimal
test file below, and if you run that you can see that things have gone
squiggly. The frontmatter and appendices are aligned further to the
right than the chapters and backmatter. Weird.

I looked at the source and as far as I can tell the default pagecommand
is just \strut#1, so I don't understand how alignment has been changed
by redefining it, but it certainly seems to have.

> wikiable:

Will do; would be great to fix (or at least understand) the alignment
before I do though, for completeness. :-)



Minimal test, now mostly working thanks to Hans:

%% Tested on live.contextgarden
%% change appendix numbering from Character to numbers
%% define new chapter-like heads for different sections
%% set up individual content lists and labels
\setuplabeltext[en][chapter={Module }]
\setuplabeltext[en][Appchapter={Appendix }]
%% set up the combined list
%% page numbering is output using the explicit \completepagenumber
%% command in the footer because the final output has rather
%% complicated footers which incorporate the page number.
%% page numbering is set up for each section
\Frontchapter{Test Intro}
\dorecurse{3}{\input tufte\par}
%% for the body and appendices we prefix the chapternumber and a '/'
\chapter{Test Chapter}
\dorecurse{3}{\input tufte\par}
\chapter{Another Test Chapter}
\dorecurse{3}{\input tufte\par}
\Appchapter{Test Appendix}
\dorecurse{3}{\input tufte\par}
%% for the backmatter we just prefix I/ (it's going to be the index)
\dorecurse{3}{\input tufte\par}

ntg-context mailing list

Reply via email to