[NTG-context] help with \flushsubcolumnsets[spread]

2025-03-23 Thread Pablo Rodriguez via ntg-context
relevant parts): \setuphead[chapter] [before={\blank[none, preference]\testcolumn[5]}, after={\blank[none, samepage]}] Well, the problem is that only the Greek text appears at the end of the first page (no translation is shown at the end of the first or second page), and all

[NTG-context] Re: parallel texts with columnsets

2025-02-07 Thread Hans Hagen via ntg-context
llel][R][2] \startsetups balance:example \balancetopskip\strutht \balancebottomskip \strutdp \stopsetups \setuphead [chapter] [before=\blank[2*line]\testcolumn[5], after=\blank[line,samepage], page=] \setuppagenumbering [alternative=doublesided] \starttext

[NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm
section (to add \testcolumn, \blank etc. to work around no.2). Is there any? (2) Page/column breaking is odd in that the preferred breaking point seems to be one entry too early, i.e. the last entry of one letter end up in the next column and the previous column is one line too short. It

[NTG-context] Issue with initial (new beta)

2015-11-20 Thread josephcanedo
}{ \setupinitial[location=text, n=4] \placeinitial \input{ward} \setupinitial[location=text, n=6] \placeinitial \input{knuth} } \stopmixedcolumns \stoptext Admitedly this example has lots of lettrines. I added some \testcolumn to fix that, but now some columns are not balanced (page 3) \starttext

[NTG-context] Best way to prevent wrong column/page break with par starting with \starthanging

2015-11-19 Thread josephcanedo
Dear all, I am using \starthanging to implement dropcaps (with small pdf files). I use this Inside mixedcolumns (2 columns). I’d like to know if there is a better way than \testcolumn[N], N being the number of lines of the dropcap, to prevent the location of dropcap being cut between end

Re: [NTG-context] Orphans/Widows in the Index

2014-07-05 Thread Jan Tosovsky
and{#1}% >\endgroup >\blank[\v!samepage]% >\registerparameter\c!after >\par >\nobreak} > > That (2) case can be fixed by a small change: > \testcolumn[3]\registerparameter\c!command{#1}% > > But when tested on this MWE, you can see a drawback - t

Re: [NTG-context] Conditional keep-with-next rules

2014-06-27 Thread Jan Tosovsky
nge.com/questions/185059/preventing-page-break-after-th e-first-or-before-the-last-list-item That solution with \pagecheck looks promising, but it has to be implemented on ConTeXt/Lua side. It requires adding 'checking' commands to proper places. Only ConTeXt knows the item tree, it can cou

[NTG-context] testcolumn error

2014-06-27 Thread Jan Tosovsky
Dear All, the following MWE works fine, but when that 'First line' is uncommented, I am getting 'Undefined control sequence' error in the console (ConTeXt - 2014.06.22). \starttext \startcolumns[n=2] %First Line \testcolumn[2]\input{tufte} \stopcolumns \stoptext Any ide

Re: [NTG-context] Orphans/Widows in the Index

2014-06-25 Thread Jan Tosovsky
a}#1% {\registerparameter\c!before % bugged, why does leftskip gets set: \vskip\lineheight\goodbreak\vskip-\lineheight \begingroup \useregisterstyleandcolor\c!style\c!color \dontleavehmode \strut \iflocation \dosetdirectpagereference{\currentregister:\v!section:#1}% \fi

[NTG-context] Bug: Overlapping Text

2014-04-01 Thread Thangalin
Hi, The second page of the following document has overlapping text in the second column (this has been as minimal as I can get): \setuphead[section][before={\testcolumn[4]},] \starttext \startmixedcolumns[align=right, balance=yes, grid=strut,] \dorecurse{5}{ \startsection \startitemize

[NTG-context] Strange behaviour with columnar itemized text

2014-02-27 Thread Thangalin
---- \setuphead[section][before={\testcolumn[3]},] \defineitemgroup[Instructions][inbetween={\blank[.25em]},] \starttext \startmixedcolumns[ align=right, balance=yes, grid=strut, ] \dorecurse{5}{ \startsection[title={Section},] \startInstructions \item{Preheat the oven to 400°F}\i

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-12-05 Thread Lars Huttar (SIL gmail)
On 12/3/2013 4:40 PM, Hans Hagen wrote: > On 12/3/2013 3:10 PM, Lars Huttar wrote: >> ... >> Thanks again for your work on this. >> We're continually reevaluating whether we can use the beta or need to >> stick with the stable version. At the moment, it looks like we'll be >> sticking with the stab

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-12-03 Thread Hans Hagen
}{\input ward \par} \testcolumn[10][-1pt] % 10 lines - 1pt slack \dorecurse{2}{\input ward \par} \stopmixedcolumns \stoptext Ok. It looks like the second parameter to \testcolumn is now required (it didn't used to be). i'll fix that What does this slack value do? Does it mea

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-12-03 Thread Lars Huttar
\dorecurse{4}{\input ward \par} > > \testcolumn[10][-1pt] % 10 lines - 1pt slack > > \dorecurse{2}{\input ward \par} > > \stopmixedcolumns > > \stoptext Ok. It looks like the second parameter to \testcolumn is now required (it didn't used to be). What does this slack value

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Hans Hagen
On 11/29/2013 12:26 PM, Lars Huttar (SIL gmail) wrote: On 11/28/2013 1:34 PM, Hans Hagen wrote: That macro was never meant for mixed columns. I made a variant that works ok in mixed columns which will be in the next beta. Excellent. I will give it a try. I see a context-setup-win64 dated 201

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Lars Huttar (SIL gmail)
On 11/28/2013 1:34 PM, Hans Hagen wrote: > > That macro was never meant for mixed columns. I made a variant that > works ok in mixed columns which will be in the next beta. > Excellent. I will give it a try. I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may wait for the next

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-28 Thread Hans Hagen
eason we couldn't get column balancing to work in columnsets). However one thing we do miss from columnsets is the control over widows & orphans in two ways: \testcolumn, and \setupcolumnsetlines. \testcolumn[n] allowed us to do a conditional column break, so when we were about to start a

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-26 Thread Lars Huttar
e do miss from columnsets is the control over >>>>> widows >>>>> & orphans in two ways: \testcolumn, and \setupcolumnsetlines. >>>>> \testcolumn[n] allowed us to do a conditional column break, so >>>>> when we >>>>> were ab

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-23 Thread Hans Hagen
On 11/22/2013 11:37 PM, Lars Huttar wrote: On 11/22/2013 4:59 PM, Hans Hagen wrote: On 11/20/2013 11:12 PM, Lars Huttar wrote: On 11/20/2013 4:47 PM, Lars Huttar wrote: However one thing we do miss from columnsets is the control over widows & orphans in two ways: \testcolumn,

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-22 Thread Lars Huttar
On 11/22/2013 4:59 PM, Hans Hagen wrote: > On 11/20/2013 11:12 PM, Lars Huttar wrote: >> On 11/20/2013 4:47 PM, Lars Huttar wrote: >>> However one thing we do miss from columnsets is the control over widows >>> & orphans in two ways: \testcolumn, and \setupco

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-22 Thread Hans Hagen
On 11/20/2013 11:12 PM, Lars Huttar wrote: On 11/20/2013 4:47 PM, Lars Huttar wrote: However one thing we do miss from columnsets is the control over widows & orphans in two ways: \testcolumn, and \setupcolumnsetlines. \testcolumn[n] allowed us to do a conditional column break, so when we

Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
On 11/20/2013 4:47 PM, Lars Huttar wrote: > However one thing we do miss from columnsets is the control over widows > & orphans in two ways: \testcolumn, and \setupcolumnsetlines. > \testcolumn[n] allowed us to do a conditional column break, so when we > were about to start

[NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
to work in columnsets). However one thing we do miss from columnsets is the control over widows & orphans in two ways: \testcolumn, and \setupcolumnsetlines. \testcolumn[n] allowed us to do a conditional column break, so when we were about to start a new subsection heading, we could prevent it b

Re: [NTG-context] starting headings at top of column

2008-12-17 Thread Hans Hagen
- Avoid orphans: when starting a new section, if there's not enough room left in the current column, do a column break before outputting the section heading. I've tried \testcolumn[n], but it doesn't seem to work right. What are the units of the argument to \testcolumn? We also do

[NTG-context] starting headings at top of column

2008-12-17 Thread Lars Huttar
at the top of a column and do a conditional \vskip based on that?(*) - Avoid orphans: when starting a new section, if there's not enough room left in the current column, do a column break before outputting the section heading. I've tried \testcolumn[n], but it doesn't seem to work ri

Re: [NTG-context] widow/orphan control in columns?

2008-12-02 Thread Hans Hagen
ce [4] but couldn't find information about \testpage. >> Is there a corresponding command to conditionally produce a column break? >> >> Thanks, >> Lars > > I just looked at the implementation of \testpage in base/page-ini.tex > and found \testcolumn.

Re: [NTG-context] widow/orphan control in columns?

2008-12-02 Thread Lars Huttar
\testpage. > Is there a corresponding command to conditionally produce a column break? > > Thanks, > Lars I just looked at the implementation of \testpage in base/page-ini.tex and found \testcolumn. I imagine that should be analogous to \testpage, but hesitate to rely on an undocumente

Re: [NTG-context] misbehaving \column

2008-10-03 Thread Wolfgang Schuster
>> This time I cannot think of any workaround :( >>>>> Well, in the worst case I can still insert a table. >>>>> >>>>> \starttext >>>>> \section{first} >>>>> \dorecurse{80}{dummy } >>>>&

Re: [NTG-context] misbehaving \column

2008-10-03 Thread Mojca Miklavec
>> >>>> \starttext >>>> \section{first} >>>> \dorecurse{80}{dummy } >>>> \startcolumns >>>> \externalfigure[dummy][width=\textwidth] >>>> \input tufte >>>> \column >>> >>>

Re: [NTG-context] misbehaving \column

2008-10-03 Thread Wolfgang Schuster
lowing >>> \column simply jumps to the next page. >>> This time I cannot think of any workaround :( >>> Well, in the worst case I can still insert a table. >>> >>> \starttext >>> \section{first} >>> \dorecurse{80}{dummy } >>> \startco

Re: [NTG-context] misbehaving \column

2008-10-03 Thread Mojca Miklavec
think of any workaround :( >> Well, in the worst case I can still insert a table. >> >> \starttext >> \section{first} >> \dorecurse{80}{dummy } >> \startcolumns >> \externalfigure[dummy][width=\textwidth] >> \input tufte >> \column > > \colu

Re: [NTG-context] misbehaving \column

2008-10-03 Thread Wolfgang Schuster
t; \starttext > \section{first} > \dorecurse{80}{dummy } > \startcolumns > \externalfigure[dummy][width=\textwidth] > \input tufte > \column \column[preference] or \testcolumn[0] > \input tufte > \