Re: [NTG-context] Protusion and spurios empty line
Am 02.10.2020 um 18:11 schrieb Hans Hagen: On 10/1/2020 4:58 PM, Denis Maier wrote: I'm getting emtpy lines after paragraph breaks, where the last character is just squeezed in. Looks like it has to do with the bidi mechanism. Commenting out this line removes the effect. (Somewhat long) Example below. Is there a fix for that? (\setupalign[tolerant,stretch] ... actually always advised when you use protrusion and/or expansion) I have that it my environment file already. Doesn't make a difference. Best, Denis ___ 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 ___
Re: [NTG-context] Protusion and spurios empty line
On 10/1/2020 4:58 PM, Denis Maier wrote: I'm getting emtpy lines after paragraph breaks, where the last character is just squeezed in. Looks like it has to do with the bidi mechanism. Commenting out this line removes the effect. (Somewhat long) Example below. Is there a fix for that? (\setupalign[tolerant,stretch] ... actually always advised when you use protrusion and/or expansion) i'll send you a patch to test Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] color problem
On 01/10/20, 20:55, Susanne G. Loeber wrote: > Dear Reader, > > I have a colored section, text in another color and a TikZ picture with a > differently colored node, following each other. However, either the node > gets the wrong color or the following paragraph, see example below. > > Is there something wrong with the section settings? How do I get all the > colors right without using a paragraph in between? From experience, this usually works: \prependvalue{starttikzpicture}{\dontleavehmode\forcecolorhack} Cheers, Henri > > \setuphead[chapter] > > [ > > style={\tfd}, > > color={A2plus}, > > ] > > \setuphead[section] > > [ > > style={\tfc}, > > color={A3plus}, > > ] > > > \definecolor[A1plus][h=5CAF00] > > \definecolor[A2plus][h=B6437E] > > \definecolor[A3plus][h=606ABD] > > \definecolor[A4plus][h=FFC700] > > \definecolor[A5plus][h=D0202B] > > \definecolor[A6plus][h=EF8600] > > \definecolor[A7plus][h=0082AA] > > > \setupcolors[textcolor=A1plus] > > > \usemodule[tikz] > > > > \starttext > > > \startchapter[title={Colour test}, ref=colourtest] > > > \startsection[title={Section}] > > \starttikzpicture > > \draw[text=A6plus] (0,0) rectangle (2,1) node[right] {node text should be > orange}; > > \stoptikzpicture > > > \par This a paragraph which gets the colour of the section for no reason. > > > \stopsection > > > \stopchapter > > > \startchapter[title={Colour test 2}, ref=colourtest] > > > \startsection[title={Another section }] > > > \par This a paragraph in the appropriate text color (green). > > > > \starttikzpicture > > \draw[text=A6plus] (0,0) rectangle (2,1) node[right] {node text is orange}; > > \stoptikzpicture > > > \stopsection > > > \stopchapter > > \stoptext > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Postponed footnotes and pagebreaks
Am 30.09.2020 um 19:03 schrieb Pablo Rodriguez: On 9/30/20 5:52 PM, Denis Maier wrote: Hi, postponing footnotes when using tables causes the footnote often to appear on the next page, which may not always be wanted. Is there a way to keep the footnote on the same page in these situations? Hi Denis, this options might help: \setupnote [footnote] [split=verystrict, scope=text] Thanks, I'll try. The problem is that I have multiplage tables, and I want the notes on the appropriate pages. I think postponed footnotes are actually called after the table is already finished so the notes always appear at the last page of the table, which in many cases is not what you'd want. Best, Denis ___ 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 ___
Re: [NTG-context] Best way to store text for later use
Am 18.09.2020 um 18:18 schrieb Hans van der Meer: A possibility is saving the data as text in a Lua-table. If you are not afraid to use some Lua, I can send my code for saving files and data for repeated use. Sorry, for answering only now. I've missed your response. That sounds interesting, and I'd be happy if you could send me your code. Best, Denis ___ 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 ___
Re: [NTG-context] footnotes in captions in floatcombinations
Coming back to this complex: > Am 20.09.2020 um 16:38 schrieb Henning Hraban Ramm : > > Didn’t find a setup that changes the alignment, though. The alignment problem is fixed, can’t remember in which release. But I still struggle with those footnotes, unfortunately I can’t tell the author “footnotes in captions are evil, don’t do that”. And I know it’s a really tricky edge case. FiCiFC work, if ... - there’s enough space on the page where the float is placed – page breaks don’t disturb the order of footnotes The latter means: If I use \placefigure[top]... in front of a paragraph full of footnotes, the paragraph starts on one page and the image gets placed on the next, then the footnote in the figure’s caption might have e.g. no.11, the paragraph uses footnote no.12 etc. The first footnote(s) of the paragraph find their place on the first page, the footnote(s) of the figure will never get placed, because its numbering is out of order. If I put \placefigure in the middle of the paragraph, I can keep the order of footnotes and get to see the footnote of the figure, but the paragraph is split into two. - Would it be possible to do the footnote numbering after the float placement, so that a footnote in a float keeps the reading order or numbers and gets its place on the right page? – As a workaround, how can I use \placefigure in the middle of a paragraph without breaking it? Hraban ___ 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 ___
Re: [NTG-context] color problem
Hi, > On 1 Oct 2020, at 20:55, Susanne G. Loeber wrote: > > Dear Reader, > > I have a colored section, text in another color and a TikZ picture with a > differently colored node, following each other. However, either the node gets > the wrong color or the following paragraph, see example below. > > Is there something wrong with the section settings? How do I get all the > colors right without using a paragraph in between? Some of the blackbox magic in the tikz module is confusing ConTeXt, it seems. This works: \draw (0,0) rectangle (2,1) node[right] {\color[A6plus]{node text should be orange}}; But that’s all I know. I do not understand the tikz module at all. Best wishes, Taco ___ 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 ___