Le 03 août à 08:29:55 Jean Magnan de Bornier <jm.born...@free.fr> écrit notamment:
| Le 02 août à 16:19:01 Wolfgang Schuster <schuster.wolfg...@googlemail.com> écrit notamment: > | | Am 02.08.2011 um 16:10 schrieb Jean Magnan de Bornier: | > | | > Hi all | | > | | > I'm trying to setup captions for figures with mkiv. I found this page on the wiki: | | > | | > http://wiki.contextgarden.net/Reference/en/setupnumbering | | > | | > Using both these: | | > | | > \setupcaptions[way=bysection,prefixsegments=section] | | > \setupformulae[way=bysection,prefixsegments=section] | | > | | > formulae are numbered as expected but captions are not, the prefix is | | > lacking. | > | | Does it help when you add “prefix=yes” to \setupcaptions? | > | | When this doesn’t work you should provide a minimal example. > | No; here is where I stand after some more trial and errors: | - On my small testfile when adding chapters and sections I get a prefix (section | number); however I want the chapter number as prefix, which is the | standard practice and I don't see how to do that with mkiv (obviously it | is doable...) | - On my big real file I have no prefix, I only hope I will find out why by myself... After lots of checking on my project I came to this, which looks like a bug: Project is eg: .......................... \startproduct Test \environment env_test \startfrontmatter \component bla \stopfrontmatter \startbodymatter \component test1 \component test2 \stopbodymatter \stopproduct ......................... If files test1.tex and test2.tex begin with \starttext and end with \stoptext: \setupcaptions works as expected regarding prefix If files test1.tex and test2.tex begin with \startcomponent and end with \stopcomponent: \setupcaptions does not work as expected regarding prefix (no prefix at all) \setupformulae not affected bye, -- Jean ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________