[NTG-context] small fontsize and \definecolumnsetspan cause columns to jump (bug?)
Hi, if the fontsize is smaller than ~11pt and there is \startcolumnsetspan used, then the two first lines of the second column are not aligned to the grid (they jump). Making the font bigger, or deleting the \startcolumnsetspan can both fix the problem. It seems like a bug to me, but maybe I'm doing something wrong. Any idea about how to align all the lines in this specific table? I'm using it in a whole chapter in a small book with poems and on a small format the jump is visible. \showgrid \setupbodyfont[10pt] %\setupbodyfont[12pt] % works ok \setuppapersize[A8] % just to make this visible \setuplayout[grid=yes] \definecolumnset[example2][n=6, width=20mm] \definecolumnsetspan[title][n=6] \starttext \startcolumnset[example2] \startcolumnsetspan[title] Jumpy table \blank[line] \stopcolumnsetspan \input ward \stoptext Andrej ___ 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 ___
[NTG-context] How to define a section title, after the section title appears?
I have a document with conditionally-generated content. There are some situations when I need the section title to change according to the content displayed within that section. For instance, the 14th section that appears in *every* chapter is either called "Cause and Effect" if the conditions decide to place macros \altMa, \altMb, or \altMc inside, but becomes called "Compare and Contrast" if one of a dozen other macros are pladed there. - The macros are defined in an entirely different macros.tex file. - The whole document is in a recurse loop, so \recurselevel or \chaptertitleis can give the current chapter number. I tried defining chapter titles inside the macros, `\setvalue{title\recurselevel}{Cause and Effect}`, but \getvalue{title\recurselevel}` couldn't find the defined value. I tried just defining in each macro \define\thesectiontitleis{Compare and Contrast}, but that only affects things AFTER the macro is called, so the wrong titles appear. How do I very simply make a section title change according to what content is inside it? --Joel ___ 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 ___
[NTG-context] Table of Contents empty for unknown reason
I need to display a table of contents, but only displaying chapters. Here is my minimum working example: \starttext \startfrontmatter \startchapter[title={Contents}] \placelist[chapter] \stopchapter \completecontent \stopfrontmatter \startbodymatter \startchapter[title={Title 1}] \input knuth \stopchapter \stopbodymatter \stoptext For reasons I don't understand, both \placelist[chapter] and \completecontent display the title, but are otherwise empty of contents. I believe the code was working before an update. I used ConTeXt live though and confirmed this code even doesn't work there. Why isn't it rendering the table of contents? --Joel ___ 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 ___