Re: [NTG-context] another columnset issue (solved)
Hi again, I had the problem that my chapters always started on a left page, even if I just had page=yes. I found out I had to set page=no in my columnset as well as in \setuphead[chapter]. Seems like either the columnset or the columnsetspan always starts a new page. While testing I didn’t get a new page reliably, but I can’t reproduce it anymore. So, this works so far. I’m starting a new columnset for every chapter because I have chapters with 1-3 columns, the example is a simplification. HR \usemodule[visual] \setuppapersize[A5] \showframe[text] \definecolor[fakerulecolor][gray] \setuplayout[ grid=yes, ] \showgrid \setuphead[chapter][ page=no, beforesection={\startcolumnset[Two]}, aftersection={\stopcolumnset}, before={\startcolumnsetspan[TwoSpan]}, after={\stopcolumnsetspan}, ] \definecolumnset[Two][ n=2, page=no, ] \definecolumnsetspan[TwoSpan][n=2] \starttext \dorecurse{3}{ \startchapter{\fakewords{2}{5}} \dorecurse{3}{ \section{\fakewords{3}{10}} \fakewords{10}{50}\par \fakewords{10}{50}\par } \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 ___
Re: [NTG-context] alignment parameters
> Am 2020-01-20 um 05:57 schrieb Wolfgang Schuster > : >> I already learned that \setuplayout[grid=strut] makes more problems than it >> solves while fontfeature dimensions=strut is good;I should avoid frames in >> section titles (not necessarily, but it’s more controllable without); how to >> get more control over makeups and that columnsets are somewhat fastidious, >> esp. with floats… > > Use \setuplayout[grid=yes] when "grid=strut" doesn't work. That’s what I do. >> \setuppapersize[A6] >> \showframe[text] >> \setupalign[flushleft,broad,nothyphenated] >> \define[2]\MySection{\vbox{#2}} > > Put the alignment command in the box. > > \define[2]\MySection > {\vbox{\setupalign[flushleft,broad,nothyphenated]#2}} Oh yes, thank you! Could have tried that myself. Best, 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] alignment parameters
On Sun, 19 Jan 2020 22:44:02 +0100 Henning Hraban Ramm wrote: > > > Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster > > : > >>> > Hi, for my section titles I’m looking for the alignment parameters that > give me: > - left aligned > - no hyphenation (or only where I set breakpoints manually) > - no overfull hboxes > > At the moment I have > align={flushleft,extremestretch,nothyphenated} > (would use also hz and hanging, if they don’t interfere), > but in a few cases I still get section titles that are much wider than > the text column. > >>> > >>> align={flushleft,broad,nothyphenated} > >> > >> Thank you, but unfortunately it makes no difference. > > > > You have to provide a minimal example. > > I know. My project setup is just so extensive, and there are several problems > that I'm trying to isolate since days… > I was hoping for an easy solution in this case. > > I already learned that \setuplayout[grid=strut] makes more problems than it > solves while fontfeature dimensions=strut is good;I should avoid frames in > section titles (not necessarily, but it’s more controllable without); how to > get more control over makeups and that columnsets are somewhat fastidious, > esp. with floats… Use \setuplayout[grid=yes] when "grid=strut" doesn't work. > Still open: this one, different behaviour of \blank in before vs. command, > chapters always starting on left pages despite page=no (a side effect of the > columnset, I guess), and floats, floats, floats. > > But here we are: > > > \setuppapersize[A6] > \showframe[text] > \setupalign[flushleft,broad,nothyphenated] > \define[2]\MySection{\vbox{#2}} Put the alignment command in the box. \define[2]\MySection {\vbox{\setupalign[flushleft,broad,nothyphenated]#2}} Wolfgang ___ 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] columnset issues
> Am 2020-01-19 um 23:38 schrieb Henning Hraban Ramm : > – Sometimes the multi-line section title is moved into the previous paragraph. > These issues get fixed with grid=yes. BTW: If you use grid=strut, the section title is always moved up into the previous paragraph, i.e. it’s always handled like one line. HR ___ 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] columnset issues
Hi again. I use columnsets and wanted to setup my section titles to have one blank line before and none after them. If I use before={\blank[line]}, I sometimes don’t get that blank line. If I use \blank in my section command, I get it always, but also if the section starts on top of a column. How can I reliably get one blank line before a section title, but not on the top of a column? That’s the original problem. The MWE also shows: – There’s irregular space at the top of columns, esp. on the first page. – Sometimes the multi-line section title is moved into the previous paragraph. These issues get fixed with grid=yes. The original problem is also fixed in the MWE if I enable grid mode, there are just sometimes two blank lines instead of one. In my actual project I get one or zero lines. Couldn’t reproduce that in a MWE. \usemodule[visual] \setuppapersize[A5] \showframe[text] \definecolor[fakerulecolor][gray] %\setuplayout[grid=yes] %\showgrid \define[2]\MySection{\vbox{% \definecolor[fakerulecolor][blue] %\blank[line,max]% {\strut #2}\par }} \setuphead[section][ command=\MySection, before={\blank[line]}, %before=, after=, style=\tf, ] \definecolumnset[Two][n=2] \starttext % \startcolumnset[Two] \dorecurse{10}{ \section{\fakewords{3}{15}} \fakewords{10}{50}\par \fakewords{10}{50}\par \fakewords{10}{50}\par } \stopcolumnset \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 ___
Re: [NTG-context] alignment parameters
> Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster > : >>> Hi, for my section titles I’m looking for the alignment parameters that give me: - left aligned - no hyphenation (or only where I set breakpoints manually) - no overfull hboxes At the moment I have align={flushleft,extremestretch,nothyphenated} (would use also hz and hanging, if they don’t interfere), but in a few cases I still get section titles that are much wider than the text column. >>> >>> align={flushleft,broad,nothyphenated} >> >> Thank you, but unfortunately it makes no difference. > > You have to provide a minimal example. I know. My project setup is just so extensive, and there are several problems that I'm trying to isolate since days… I was hoping for an easy solution in this case. I already learned that \setuplayout[grid=strut] makes more problems than it solves while fontfeature dimensions=strut is good; I should avoid frames in section titles (not necessarily, but it’s more controllable without); how to get more control over makeups and that columnsets are somewhat fastidious, esp. with floats… Still open: this one, different behaviour of \blank in before vs. command, chapters always starting on left pages despite page=no (a side effect of the columnset, I guess), and floats, floats, floats. But here we are: \setuppapersize[A6] \showframe[text] \setupalign[flushleft,broad,nothyphenated] \define[2]\MySection{\vbox{#2}} \setuphead[section][ command=\MySection, %align={flushleft,broad,nothyphenated}, ] \starttext \section{Rübenheimer Klimaschutz\-kommission interveniert wohlwollend.} % It should break "Klimaschutz-komission" or put the whole word in the next line, % but it keeps the first two words together. \section{Ein Schwarzelf mit Gelatinewürfel zagt im Regen nie.} \section{Die Donau\-dampfschifffahrts\-gesellschaft lädt zum Tanztee.} \stoptext Best, 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] alignment parameters
On Sun, 19 Jan 2020 20:56:53 +0100 Henning Hraban Ramm wrote: > > > Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster > > : > > > > On Sun, 19 Jan 2020 13:59:15 +0100 > > Henning Hraban Ramm wrote: > > > >> Hi, for my section titles I’m looking for the alignment parameters that > >> give me: > >> - left aligned > >> - no hyphenation (or only where I set breakpoints manually) > >> - no overfull hboxes > >> > >> At the moment I have > >> align={flushleft,extremestretch,nothyphenated} > >> (would use also hz and hanging, if they don’t interfere), > >> but in a few cases I still get section titles that are much wider than the > >> text column. > > > > align={flushleft,broad,nothyphenated} > > Thank you, but unfortunately it makes no difference. You have to provide a minimal example. Wolfgang ___ 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] alignment parameters
> Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster > : > > On Sun, 19 Jan 2020 13:59:15 +0100 > Henning Hraban Ramm wrote: > >> Hi, for my section titles I’m looking for the alignment parameters that give >> me: >> - left aligned >> - no hyphenation (or only where I set breakpoints manually) >> - no overfull hboxes >> >> At the moment I have >> align={flushleft,extremestretch,nothyphenated} >> (would use also hz and hanging, if they don’t interfere), >> but in a few cases I still get section titles that are much wider than the >> text column. > > align={flushleft,broad,nothyphenated} Thank you, but unfortunately it makes no difference. Best, 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] alignment parameters
On Sun, 19 Jan 2020 13:59:15 +0100 Henning Hraban Ramm wrote: > Hi, for my section titles I’m looking for the alignment parameters that give > me: > - left aligned > - no hyphenation (or only where I set breakpoints manually) > - no overfull hboxes > > At the moment I have > align={flushleft,extremestretch,nothyphenated} > (would use also hz and hanging, if they don’t interfere), > but in a few cases I still get section titles that are much wider than the > text column. align={flushleft,broad,nothyphenated} Wolfgang ___ 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] alignment parameters
Hi, for my section titles I’m looking for the alignment parameters that give me: - left aligned - no hyphenation (or only where I set breakpoints manually) - no overfull hboxes At the moment I have align={flushleft,extremestretch,nothyphenated} (would use also hz and hanging, if they don’t interfere), but in a few cases I still get section titles that are much wider than the text column. Can I reduce the penalty for underfull hboxes? Or what else? In case it matters, this is within a columnset. Best, 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] multipage typing
On 1/19/2020 12:59 PM, Tomas Hala wrote: Hi all, content of typing environment is automatically broken at the end of a page, so is it no problem to typeset multipage code. But when I used startframedtext inside (see below), the multipage code was suppressed. Is there any way how to get over it? Best wishes, Tomáš \setupstartstop[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto,] search for textbackgrounds - 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 ___
[NTG-context] multipage typing
Hi all, content of typing environment is automatically broken at the end of a page, so is it no problem to typeset multipage code. But when I used startframedtext inside (see below), the multipage code was suppressed. Is there any way how to get over it? Best wishes, Tomáš \setupstartstop[DefaultSnippet][before=,after=,style=] \defineframedtext[MPtyping][background=color,backgroundcolor=gray,width=\makeupwidth,offset=2dd,loffset=6dd,roffset=6dd,frame=on,] \setuptyping[MP][before=\startMPtyping,after=\stopMPtyping,indentnext=auto,] ___ 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 ___