ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columnset balancing
@ 2005-06-26 12:39 Vit Zyka
  2005-06-27  9:57 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Vit Zyka @ 2005-06-26 12:39 UTC (permalink / raw)


Hello Hans,

appologize my boring again with the same question about columnset 
balancing. But I would like to know what is the current stage of this 
feature. Seeing the code it seems to me some work in this direction was 
done but due to very complex and tricky stuff I am not able to 
recognize, how far from the goal it is.

Actually, what is my goal design?
+ two column layout
+ float spanning one or two columns
(both perfectly fullfilled by columnsets)
- each chapter head spans two columns
(it assumes stop columns, balancing, continuing on the same page without 
pagebreak, put chapter head, start columnset on the rest of the page)

It is feasible or I will have to abjured this idea?

Thank you for your responce in advance.
Vit

-------- Original Message --------
Subject: columnset balancing, footnoterule in columnset, Re: 
[NTG-context] columnset layout distortion
Date: Tue, 21 Jun 2005 11:29:31 +0200
From: Vit Zyka <vit.zyka@seznam.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
References: <42B6CA43.2060103@seznam.cz> <42B73452.2050402@wxs.nl>

Hans Hagen wrote:
> Vit Zyka wrote:
>> margin). I noticed weird behaviour. It is expressed by vertical shift 
>> of columns, please see the page 2 of
>>   http://typokvitek.com/tmp/layoutdistort.pdf
>>   source: http://typokvitek.com/tmp/layoutdistort.tex
>>
>> It seems that the problem is caused by switch to \ss font family 
>> continueing to a place of the page break. Any explanation/suggestion?
> 
> i made an \restoreinterlinespace mechanism so that you can do the 

Hans it is great! I have two next questions:

1) Am I missing something or columnsets do not provide balancing?
----------------------------------------
\definecolumnset[two]  [n=2,balance=yes]
\starttext
\startcolumnset[two]
    \dorecurse{6}{\input knuth \endgraf}
\stopcolumnset
\input zapf \endgraf
\stoptext
-----------------------------------------

2) Footnotes with settings \setupfootnotes[location=columns,rule=on]
between \columnset do not draw rule. I discover it is due to missing
\vbox. So this solve this problem for me, but it is not elegant and I do
not know if it can caused some side effect:
-------------------------------------------
\def\MyBeforeFootnote{\vbox\bgroup\blank}
\def\MyAfterFootnote{\egroup}
\setupfootnotes[
   location=columns,rule=on,rulethickness=.4pt,
   before=\MyBeforeFootnote,after=\MyAfterFootnote,
]
\unprotect
\def\normalnoterule
   {\endgraf %% <--- add
    \ifvmode
      \color
        [\noteparameter\c!rulecolor]
        {\vrule
           \!!width .2\hsize
           \!!height\noteparameter\c!rulethickness
           \!!depth \zeropoint}%
      \kern\strutdepth
    \fi
    \endgraf %% <--- add
}
\protect

\definecolumnset[col][n=2]

\starttext
   \startcolumnset[col]
     \input knuth
     \footnote{Donald E. Knuth}
   \stopcolumnset
\stoptext
------------------------------------------------

vit

=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-27 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-26 12:39 columnset balancing Vit Zyka
2005-06-27  9:57 ` Hans Hagen
2005-06-27 11:00   ` Vit Zyka
2005-06-27 11:55     ` Hans Hagen
2005-06-27 16:25       ` Vit Zyka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).