ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columnset layout distortion
@ 2005-06-20 13:53 Vit Zyka
  2005-06-20 15:31 ` Hans Hagen
  2005-06-20 21:25 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Vit Zyka @ 2005-06-20 13:53 UTC (permalink / raw)


Hallo,

I am working on our 40-anniversary scout group bulletin with a complex 
layout (twocolumn, footnotes, photos, pictures, flowing text in 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?

Thanks
vit

=======================================================
\setuplayout[
   height=fit,topspace=10mm,
   width=fit,backspace=20mm,
   margin=0pt,columndistance=5mm,
   lines=40,grid=yes,
]

\showframe

\startbuffer[A]
   \input thuan

%  {\input hawking }%
   {\ss\input hawking }%

   \input bryson
\stopbuffer

\definecolumnset[col][n=2]

\starttext
   \startcolumnset[col]
     \dorecurse{10}{\getbuffer[A]}%
   \stopcolumnset
\stoptext
=============================================================

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

* Re: columnset layout distortion
  2005-06-20 13:53 columnset layout distortion Vit Zyka
@ 2005-06-20 15:31 ` Hans Hagen
  2005-06-20 16:34   ` Vit Zyka
  2005-06-20 21:25 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-06-20 15:31 UTC (permalink / raw)


Vit Zyka wrote:
> Hallo,
> 
> I am working on our 40-anniversary scout group bulletin with a complex 
> layout (twocolumn, footnotes, photos, pictures, flowing text in 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?

the linedistance is expressed in ex, and ss has a different ex height

you may try to set the interlinespace to e.g. 14.4pt (or 1.2\bodyfontsize) or so

interesting 'bug/feature' btw, i need to think this over

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: columnset layout distortion
  2005-06-20 15:31 ` Hans Hagen
@ 2005-06-20 16:34   ` Vit Zyka
  0 siblings, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2005-06-20 16:34 UTC (permalink / raw)


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?
> 
> the linedistance is expressed in ex, and ss has a different ex height

I seee. Thank you Hans for a very quick response. My response (in case 
of sorting) is much much slower. I have only installed ruby and run your 
example with newtexexec.rb. It runs smoothly (with exception of 
generating format every run newtexexec.rb but - my guess, no time to 
check - it is due to ignoring engines in my texmf.cnf). But I will need 
sorting for name index in this project, so I will have to solve it 
sooner or later.

vit

> you may try to set the interlinespace to e.g. 14.4pt (or 
> 1.2\bodyfontsize) or so
> 
> interesting 'bug/feature' btw, i need to think this over
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
=======================================================
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

* Re: columnset layout distortion
  2005-06-20 13:53 columnset layout distortion Vit Zyka
  2005-06-20 15:31 ` Hans Hagen
@ 2005-06-20 21:25 ` Hans Hagen
  2005-06-21  9:29   ` columnset balancing, footnoterule in columnset, " Vit Zyka
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-06-20 21:25 UTC (permalink / raw)


Vit Zyka wrote:
> Hallo,
> 
> I am working on our 40-anniversary scout group bulletin with a complex 
> layout (twocolumn, footnotes, photos, pictures, flowing text in 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 following:

\setuplayout[height=middle,width=middle,grid=yes]

\starttext
   \startcolumnset
     \dorecurse{10}
       {\input thuan \endgraf
        \bgroup
        \ss\restoreinterlinespace
        \dorecurse{3}{\input hawking \endgraf}
        \egroup
        \input bryson \endgraf}
   \stopcolumnset
\stoptext

(tricky stuff)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

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

* columnset balancing, footnoterule in columnset, Re:  columnset layout distortion
  2005-06-20 21:25 ` Hans Hagen
@ 2005-06-21  9:29   ` Vit Zyka
  0 siblings, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2005-06-21  9:29 UTC (permalink / raw)


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-21  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20 13:53 columnset layout distortion Vit Zyka
2005-06-20 15:31 ` Hans Hagen
2005-06-20 16:34   ` Vit Zyka
2005-06-20 21:25 ` Hans Hagen
2005-06-21  9:29   ` columnset balancing, footnoterule in columnset, " 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).