Am Freitag, 28. Juli 2017, 17:05:59 CEST schrieb Pablo Rodriguez: > 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 Thank you, that works for me.
> > 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. Was not that simple, but I found the problem, that causes it: subsubsections without numbers. Here is a minimal example: ``` \mainlanguage[de] \setuphead[subsubsection][number=off] \setupcaptions[way=bychapter, prefixsegments=chapter] \starttext \startchapter[title=Kapitel] \placefigure{Eine Kuh}{\externalfigure[cow.pdf]} \startsection[title=Abschnitt] \startsubsection[title=Unterabschnitt] \placefigure{Eine Kuh}{\externalfigure[cow.pdf]} \startsubsubsection[title=Und hier gibts ein Problem] \placefigure{Eine Kuh}{\externalfigure[cow.pdf]} \stopsubsubsection \startsubsubsection[title=Und hier gibts ein Problem] \stopsubsubsection \stopsubsection \stopsection \stopchapter \stoptext ``` Is there a way to fix this? Gerion ___________________________________________________________________________________ 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 ___________________________________________________________________________________