From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82601 Path: news.gmane.org!not-for-mail From: "Stephens, Kenny" Newsgroups: gmane.comp.tex.context Subject: Re: split natural table Date: Wed, 22 May 2013 02:58:48 +0000 Message-ID: <24ABE1070A5A4041884908141E95A66BB9678669@HSUEX14MBX1.hsutx.edu> References: <24ABE1070A5A4041884908141E95A66BB967806F@HSUEX14MBX1.hsutx.edu>, Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369191556 5055 80.91.229.3 (22 May 2013 02:59:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 02:59:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 22 04:59:17 2013 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 1UezGn-0004v8-8W for gctc-ntg-context-518@m.gmane.org; Wed, 22 May 2013 04:59:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D8DC101F1; Wed, 22 May 2013 04:59:16 +0200 (CEST) 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 wsbgDsw3lTkN; Wed, 22 May 2013 04:59:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 85BC7101E4; Wed, 22 May 2013 04:59:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DD91101E4 for ; Wed, 22 May 2013 04:59:07 +0200 (CEST) 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 OFG+Qt771FeP for ; Wed, 22 May 2013 04:59:00 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 9FFA0101E0 for ; Wed, 22 May 2013 04:58:50 +0200 (CEST) Original-Received: from mail.hsutx.edu (mail.hsutx.edu [209.165.224.134]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4M2wlb3023276 for ; Wed, 22 May 2013 04:58:49 +0200 Original-Received: from HSUEX14HUB.hsutx.edu (10.16.1.151) by mail.hsutx.edu (10.16.1.124) with Microsoft SMTP Server (TLS) id 8.2.255.0; Tue, 21 May 2013 21:58:48 -0500 Original-Received: from HSUEX14MBX1.hsutx.edu ([::1]) by HSUEX14HUB.hsutx.edu ([::1]) with mapi id 14.02.0298.004; Tue, 21 May 2013 21:58:48 -0500 Thread-Topic: [NTG-context] split natural table Thread-Index: AQHOVkedqjqvPiR6k0CHsAJGR+itzJkQgNLy In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [184.79.73.173] X-Bayes-Prob: 0.9901 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=209.165.224.134; country=US; region=TX; city=Abilene; postalcode=79698; latitude=32.4751; longitude=-99.7348; metrocode=662; areacode=325; http://maps.google.com/maps?q=32.4751,-99.7348&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJCOWMLa - b4253dfbdde5 - 20130522 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82601 Archived-At: ________________________________________ From: ntg-context-bounces@ntg.nl [ntg-context-bounces@ntg.nl] on behalf of = Wolfgang Schuster [schuster.wolfgang@gmail.com] Sent: Tuesday, May 21, 2013 12:20 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] split natural table Am 21.05.2013 um 18:55 schrieb "Stephens, Kenny" >: I use a natural table to format my page header. I have another natural tabl= e in the body. When the body=92s table is split onto the second page it int= erferes with the formatting of the header=92s table, but only the header-ta= ble on the first page. I=92ve included an example. Run as-is, the header ha= s the correct format. Uncomment the last row of the body table to see the i= ncorrect header formatting. This behavior also occurs using live.contextgar= den.net (today, 2013-05-21). The incorrect header table format occurs with =93split=3Dyes=94 and =93spli= t=3Drepeat=94 for the body table. If =93split=3Dno=94 then the header table= keeps the correct format. TexLive 2012 (updated 2013-05-20 to frozen version) LuaTeX beta-0.70.2-2012052410 ConTeXt: 2012.05.30 11:26 MkIV fmt: 2012.9.13 \setuppapersize[letter][letter] \setuplayout[topspace=3D0pt, header=3D42pt, headerdistance=3D6pt, ] \setuppagenumbering[location=3D] \setupwhitespace[none] \define\syllabusheader{% \vskip0.1mm \bTABLE[frame=3Doff,width=3D\textwidth] \setupTABLE[c][1][width=3Dfit, align=3Draggedright,style=3D{\bfb\ss}] \setupTABLE[c][2][width=3Dbroad,align=3Dcenter, style=3D{\bfd\ss}] \setupTABLE[c][3][width=3Dfit, align=3Draggedleft, style=3D{\bfb\ss}] \bTR \bTD Left \eTD \bTD Center \eTD \bTD Right \eTD \eTR \eTABLE } \setupheadertexts[{\framed[corner=3D09,width=3Dbroad,align=3Dcenter,height= =3D\headerheight]% {\syllabusheader}}] This is a known problem when you use the same table environment in the body= and for the header, you can use \framed to get the same result without these problems (it=92s a= lso faster). \startsetups[header] \startframed[corner=3D09,width=3Dmax,height=3Dmax,align=3D{middle,low},fore= groundstyle=3D\ss\bfb,offset=3D1ex] \startoverlay {\leftaligned {Left}} {\midaligned {Middle}} {\rightaligned{Right}} \stopoverlay \stopframed \stopsetups \setupheadertexts[\texsetup{header}] Wolfgang ---------------------------------------------------------------------------= --------------------------------------- This fails for me. I commented my approach and replaced it with yours. Here= is what that section of the file now looks like: %\define\syllabusheader{% % \vskip0.1mm % \bTABLE[frame=3Doff,width=3D\textwidth] % \setupTABLE[c][1][width=3Dfit, align=3Draggedright,style=3D{\bfb\ss}] % \setupTABLE[c][2][width=3Dbroad,align=3Dcenter, style=3D{\bfd\ss}] % \setupTABLE[c][3][width=3Dfit, align=3Draggedleft, style=3D{\bfb\ss}] % \bTR \bTD Left \eTD \bTD Center \eTD \bTD Right \eTD \eTR % \eTABLE % } %\setupheadertexts[{\framed[corner=3D09,width=3Dbroad,align=3Dcenter,height= =3D\headerheight]% % {\syllabusheader}}] \startsetups[header] \startframed[corner=3D09,width=3Dmax,height=3Dmax,align=3D{middle,low},for= egroundstyle=3D\ss\bfb,offset=3D1ex] \startoverlay {\leftaligned {Left}} {\midaligned {Middle}} {\rightaligned{Right}} \stopoverlay \stopframed \stopsetups \setupheadertexts[\texsetup{header}] But I get the error: ! Undefined control sequence. \texsetup = {header}{}{}{} \firstoftwoarguments #1#2->#1 = \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes = \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}} \egroup = ...tk \v!header \v!text \c!middletext } \hss }\hskip -\makeupwidt= h... \dododoplacelayouttextline ...#2 #3}\hbox to #1{#4 }\stoplayoutcomponent \ge= t... ... l.46 \eTABLE But I like your idea. It is definitely cleaner and faster is always nice. Kenny ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________