From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74462 Path: news.gmane.org!not-for-mail From: Martin Bruchanov Newsgroups: gmane.comp.tex.context Subject: Two columns type problem Date: Mon, 13 Feb 2012 14:17:05 +0100 Message-ID: <20120213131705.GA10561@regnet.cz> Reply-To: bruxy@regnet.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1094477690==" X-Trace: dough.gmane.org 1329139048 29927 80.91.229.3 (13 Feb 2012 13:17:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 13:17:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 13 14:17:27 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwvmW-0002Rg-IB for gctc-ntg-context-518@m.gmane.org; Mon, 13 Feb 2012 14:17:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0382FCB20D; Mon, 13 Feb 2012 14:17:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id t-OJQxdgoG+F; Mon, 13 Feb 2012 14:17:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11DCFCB207; Mon, 13 Feb 2012 14:17:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8658CB203 for ; Mon, 13 Feb 2012 14:17:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mm0EKYqZhyGX for ; Mon, 13 Feb 2012 14:17:13 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id A3E35CB207 for ; Mon, 13 Feb 2012 14:17:13 +0100 (CET) Original-Received: from ip-89-176-106-125.net.upcbroadband.cz (ip-89-176-106-125.net.upcbroadband.cz [89.176.106.125]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1DDH63w017281 for ; Mon, 13 Feb 2012 14:17:12 +0100 Original-Received: from ip-89-176-106-125.net.upcbroadband.cz (ip-89-176-106-125.net.upcbroadband.cz [127.0.0.1]) by ip-89-176-106-125.net.upcbroadband.cz (8.14.5/8.14.5) with ESMTP id q1DDH5p6010607 for ; Mon, 13 Feb 2012 14:17:05 +0100 Original-Received: (from bruxy@localhost) by ip-89-176-106-125.net.upcbroadband.cz (8.14.5/8.14.5/Submit) id q1DDH5DB010606 for ntg-context@ntg.nl; Mon, 13 Feb 2012 14:17:05 +0100 X-Authentication-Warning: ip-89-176-106-125.net.upcbroadband.cz: bruxy set sender to bruxy@regnet.cz using -f X-Echelon: bomb FBI assasinate president virus Roswell kill William Gates CIA SEMTEX Unix Security nailbomb evil hypnosis meta-hacker l0ck Information Terrorism User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.176.106.125; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05Gxph652 - 5d6cca6b9a24 - 20120213 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74462 Archived-At: --===============1094477690== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I'm using: current version: 2012.02.08 21:58 but this problem happens in more versions. See example document: http://bruxy.regnet.cz/tmp/twocols_fight.pdf http://bruxy.regnet.cz/tmp/twocols_fight.ctex After 4th chapter, there is unwanted blank page. The blank=20 page appears every time, when the chapter is on the top of page. I want to prepare two columns layout, but chapters should be overlaid over two cols. I played also with \definecolumns and columnset environment, but columns were not balanced and doesn't work as I expected. The source code: 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- \mainlanguage[cz] \language[cz]=20 \enableregime[utf] % latin2 \pdfminorversion=3D4 % verze pdf \setupbodyfont[9pt] % \setuppapersize[A4, portrait][A4, portrait] % A3, A4, A5, A6; landscape \setuplayout[ width=3D175mm, height=3D285mm, %285mm topspace=3D5mm, header=3D5mm, headerdistance=3D10mm, footer=3D11mm, %10mm bottomspace=3D5mm, bottom=3D0mm, ] % Pouziti barev \setupcolors[state=3Dstart] \setupcolor[rgb] \setupinterlinespace[medium] \setupwhitespace[medium] \setuptabulate[header=3Drepeat] \setupbodyfontenvironment[default][em=3Ditalic] \startuseMPgraphic{PageDeco}=20 size :=3D 8mm; pickup pencircle scaled 0.5mm; draw fullcircle scaled size; % shifted (0,-25mm); label(textext("\pagenumber"), (0,0)); %shifted (0,-25mm); krizy :=3D -size/2 - size/4; =09 draw (0, -size/2)--(0, -size); draw (0,krizy)--(-size/4,krizy); draw (0,krizy)--(size/4,krizy); \stopuseMPgraphic \defineoverlay[PageDeco][\uniqueMPgraphic{PageDeco}] \def\Page#1{ \framed[background=3D{PageDeco}, align=3Dcenter,=20 frame=3Doff] {~}%\vbox{\bf\rm\switchtobodyfont[48pt] \color[ChapterNumber]{#1}}} } \setuppagenumbering[% alternative=3Ddoublesided, location=3D{footer, center}, % header, middle, inleft, inmargin command=3D\Page, ] \setupinteraction[state=3Dstart,color=3Dblack] % klikaci dokument \setupurl[style=3Dtype,color=3Dblack] \setupcombinedlist[content][level=3D1,alternative=3Dc]=20 \setuplist[chapter][width=3D10mm,style=3Dbold] \setupwhitespace[none]=20 % velikost odsazeni \setupindenting[small,next] % none, small, medium, bix, next, first, [rozmer] \indenting[yes] % Nastaveni hlavicky \setupheader[style=3D\tfx\sc] \startuseMPgraphic{NumberDeco}=20 size :=3D 1.5cm; pickup pencircle scaled 2mm; draw fullcircle scaled size; % shifted (0,-25mm); label(textext("\bf\ss\switchtobodyfont[28pt] \namedheadnumber{chapter}"), (0mm,0mm)); %shifted (0,-25mm); z0 =3D (size/2 * cos(45), size/2 * sin(45)); z1 =3D (size/2 * cos(45), size/2 * sin(45)) + (size/2, size/2); linecap :=3D butt; draw z0--z1; linecap :=3D squared; draw z1--z1+(-size/2,0); draw z1--z1+(0,-size/2); \stopuseMPgraphic \defineoverlay[NumberDeco][\uniqueMPgraphic{NumberDeco}] \def\MyChapter#1#2{ %2 -- text, 1 -- cislo \framedtext[width=3D\overlaywidth, offset=3D10pt, strut=3Dno, frame=3Doff, % bottomframe=3Don, align=3Dright]{% \vbox{#2}\vbox{#1} } } \def\Cislovani#1{ \framed[background=3D{NumberDeco}, width=3D3cm, offset=3D5mm, align=3Dcenter,=20 frame=3Doff] {~}%\vbox{\bf\rm\switchtobodyfont[48pt] \color[ChapterNumber]{#1}}} } \setuphead[chapter][ numbercommand=3D\Cislovani, style=3D{\bf\switchtobodyfont[28pt]\ss}, before=3D{\blank[0.5cm]}, after=3D{\blank[0.5cm]}, page=3Dno, ] \def\uv#1{\quotation{#1}} \setupcaption[location=3Dnone] %\definecolumnset[two][n=3D2]=20 \def\bdvoj{ \startcolumns[n=3D2] %\startcolumnset[two] } =20 \def\edvoj{ \stopcolumns %\stopcolumnset } \starttext \setuppagenumber[state=3Dstop] \startfrontmatter \blank[5cm,force] \startalignment[middle] {\switchtobodyfont[32pt] Two cols fight} \stopalignment \stopfrontmatter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%= %%%%% \startbodymatter \setuppagenumber[state=3Dstart,number=3D5] \setupbackgrounds[header][text][frame=3Doff,bottomframe=3Don] \setupheadertexts[{My two col book}][chapter] \title{Obsah} \placelist[chapter][alternative=3Dc,interaction=3Dno] \page \dorecurse{10} { \chapter{Pokus} =09 \bdvoj \input knuth \input knuth \edvoj } \stopbodymatter \stoptext 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- 8<---- Thanks for help... --=20 Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk85DVEACgkQoXZMTYEH7VN+AgCeMtfvQBwOY9g2/dCvNd2aR4Jx ncUAniiKV0CzMk31XXRAKAhIU7Fqgy8u =z2cj -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- --===============1094477690== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1094477690==--