From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67212 Path: news.gmane.org!not-for-mail From: "Tom" Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc. Date: Sun, 20 Mar 2011 09:37:00 -0400 Message-ID: <01ba01cbe703$e3f16f80$abd44e80$@com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300628244 7199 80.91.229.12 (20 Mar 2011 13:37:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 13:37:24 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 20 14:37:20 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1Iop-000160-FJ for gctc-ntg-context-518@m.gmane.org; Sun, 20 Mar 2011 14:37:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCD31CAB39; Sun, 20 Mar 2011 14:37:10 +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 JpeS37U-ttUE; Sun, 20 Mar 2011 14:37:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0BE91CAB24; Sun, 20 Mar 2011 14:37:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CEBFFCAB24 for ; Sun, 20 Mar 2011 14:37:06 +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 xVGRR5yaJLPT for ; Sun, 20 Mar 2011 14:36:55 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 2D749CAB23 for ; Sun, 20 Mar 2011 14:36:55 +0100 (CET) Original-Received: from smtp1.ctinetworks.com (smtp1.ctinetworks.com [205.166.61.208]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2KDb03I018611 for ; Sun, 20 Mar 2011 14:37:01 +0100 Original-Received: from TomPC (dsl-206-251-4-126.dsl0.crls.pa.net [206.251.4.126]) by smtp1.ctinetworks.com (Postfix) with ESMTP id 8BD7658595D for ; Sun, 20 Mar 2011 09:36:56 -0400 (EDT) X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcvnA+OSBG6q4kb2TVuPR3o5uA3NSw== Content-Language: en-us X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: 8BD7658595D.A2B06 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-SpamCheck: X-ctinetworks-Watermark: 1301492219.29503@IwwktLp5vBvLsq4Wk5EvJQ X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=205.166.61.208; country=US; region=PA; city=Mechanicsburg; latitude=40.2134; longitude=-77.0098; metrocode=566; areacode=717; http://maps.google.com/maps?q=40.2134,-77.0098&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eElpB09I - f25b260c6c5e - 20110320 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:67212 Archived-At: Minimals MKIV ignores the structureenvironment blocks when the suffix is 'matter' but applies them if the suffix is 'part.' Furthermore, they are applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc. blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks. The following code executes but does not apply the environment block commands. Commenting out the three \startstructureblockenvironment commands with 'matter" arguments and uncommenting the three 'part' commands will cause the environment block commands to be executed. Ironically, the \start-\stop pairs between \starttext and \stoptext error if 'part' is used but execute if 'matter.' \def\MyFrontMatterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,align=middle,width=broad] {\switchtotypeface[ChapterStart] #2}} \def\MyChapterCommand#1#2% #1 is number, #2 is text {\framed[frame=off,bottomframe=on,topframe=off] {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2}}}}} \definepagebreak[mychapterpagebreak][yes,header,right] \startstructureblockenvironment[frontmatter] %ignored if frontmatter, applied if frontpart %\startstructureblockenvironment[frontpart] \setuppagenumbering[state=start,location=bottom,conversion=romannumerals] \setuphead[chapter] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.5in]}] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] %ignored if bodymatter, applied if bodypart %\startstructureblockenvironment[bodypart] \setuppagenumbering[alternative=doublesided,location=] \setuppagenumbering[state=start,location=bottom,conversion=numbers] \setuphead[chapter] [command=\MyChapterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, after={\blank[0.5in]},before={\blank[force,1.0in]} \placeinitial] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] %ignored if back, applied if backpart %\startstructureblockenvironment[backpart] \setuphead[title] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.25in]}] \setuphead[chapter] [command=\MyFrontMatterCommand,textstyle=\ss\bfd, header=empty,footer=chapter,page=mychapterpagebreak, number=no,after={\blank[0.25in]}] \stopstructureblockenvironment \starttext \startfrontmatter % errors if startfrontpart %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \chapter{Introduction} \input knuth \stopfrontmatter \startbodymatter %errors if startbodypart \chapter{I Was Born} \input knuth \chapter{I Observe} Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus elementum, elementum non. \stopbodymatter \startbackmatter %errors if startbackpart \title{Appendices} \page[blank] \completeindex \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___________________________________________________________________________________ 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 ___________________________________________________________________________________