columnset layout distortion
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 =============================================================
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 -----------------------------------------------------------------
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 =======================================================
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 -----------------------------------------------------------------
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 =======================================================
participants (2)
-
Hans Hagen
-
Vit Zyka