In the table of context for my documents, I would like Chapters to
have page numbers with alternative=c. However, my Appendices are not
paginated so I do not want them to have page numbers in the TOC.
Since (apparently), Appendix inherits from Chapter, each Appendix is
listed in the TOC with leading dots and page number "0" regardless of
what I put in \setuplist [appendix] when using \placecontent or
\completecontent.
So I tried creating my own head (based on title) and list. Placing
this list under the TOC gives me the effect I want (Appendices are
listed without dots or page numbers). Unfortunately, setuplabeltext
doesn't seem to work on my newly defined head. I've tried all manner
of variations like:
\definelist [myappendixlist]
\setuplist [myappendixlist]
[pagenumber=no,alternative=b,label=yes,conversion=Character]
\definehead[myappendix][title]
\def\appendixlabel#1#2{Appendix #1: #2}
\setuphead[myappendix][command=\appendixlabel]
%
\setuplabeltext [en][myappendix=Appendix~]
\newcounter\myappendices
\long\def\myappendix#1%
{\ifhmode\unskip\fi
\doglobal\increment\myappendices\relax
\high{\myappendices}%
\expanded{\writetolist[myappendixlist]{\myappendices}}{#1}}
1) Is there a way to suppress the display of Appendix page numbers in
a TOC while retaining alternative=c for Chapters?
2) Assuming the answer to (1) is no, how do I enable display of
labels in my custom defined head?
Thanks, Neal
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context