On 07/28/2017 02:22 AM, Gerion Entrup wrote: > 2. Own title format > I've set an own title format for chapters, like described in the wiki. > Unfortunately this applies to the table of contents and bibliography as well. > Below a minimal example, that reproduces it: > ``` > \setupinteraction[state=start] > > \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on] > {\vbox{\headtext{chapter} #1\blank#2}}} > > \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, > header=empty, page=mychapterpagebreak] > \setupheadtext[chapter=Chapter, content=Table of Contents] > > \starttext > \completecontent > \page[yes] > > \startchapter[title=foo] > > \stoptext > ``` > How can I prevent the printing of "Chapter" in the table of contents and > bibliography?
Hi Gerion, play with the sample, in order to see what fits you best: \setupinteraction[state=start] \define[2]\MyChapter{\framed[frame=off,bottomframe=on,topframe=on] {\vbox{\headtext{chapter} #1\blank[small]#2}}} \setuphead[chapter][command=\MyChapter, style={\switchtobodyfont[24pt,ss]}, header=empty, page=mychapterpagebreak] \startsectionblockenvironment[bodypart] \setupheadtext[chapter=Chapter] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheadtext[chapter=Appendix] \stopsectionblockenvironment \starttext \startfrontmatter \chapter{Table of Contents}\placecontent \stopfrontmatter \startbodymatter \startchapter[title=foo] \stopbodymatter \startappendices \chapter{Bibliography} \stopappendices \startbackmatter \chapter{Bibliography} \stopbackmatter \stoptext > 5. Numbering of floats > I want a numbering for my figures in this format: > way=bychapter, prefixsegments=chapter > > I guess, this is the default, but I've explicitly set it. > In some captions the prefix is ignored. For example there are 5 figures in > chapter 2, then the captions of the figures (the text is in German) are: > Abbildung 2.1 foo > Abbildung 2.2 bar > Abbildung 3 foobar > Abbildung 4 otherfoo > Abbildung 5 lastfoo > > Is there anything, I can do, to prevent this? I cannot reproduce the problem you mention: \mainlanguage[de] \starttext \dorecurse{5}{\chapter{Kapitel} \placefigure{Eine Kuh}{\externalfigure[cow.pdf]}} \chapter{Kapitel} \dorecurse{5}{\placefigure{Eine andere Kuh} {\externalfigure[cow.pdf]}} \dorecurse{5}{\chapter{Kapitel} \placefigure{Noch eine andere Kuh}{\externalfigure[cow.pdf]}} \stoptext In general, please provide minimal samples of code that show your problem. 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 : ntg-context@ntg.nl / 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 ___________________________________________________________________________________