From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72116 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Hello world title not flush left - beginner question? Date: Thu, 3 Nov 2011 16:38:52 +0100 Message-ID: <09B9E1F9-BB3B-4C0D-9E34-F1A97DAB6E28@googlemail.com> References: <20111103141534.GC1412@iram-ha-003840.extra.cea.fr> <20111103145113.GE1412@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320334752 32635 80.91.229.12 (3 Nov 2011 15:39:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2011 15:39:12 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan Braslau Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 03 16:39:08 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 1RLzNi-0006q9-Ss for gctc-ntg-context-518@m.gmane.org; Thu, 03 Nov 2011 16:39:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E6C8CB0A8; Thu, 3 Nov 2011 16:39:05 +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 M-NEdIeZ5Ww0; Thu, 3 Nov 2011 16:39:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52A3BCB05F; Thu, 3 Nov 2011 16:39:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BD7ECB097 for ; Thu, 3 Nov 2011 16:39:00 +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 zik4PV2hTTcy for ; Thu, 3 Nov 2011 16:38:55 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 65B34CB05F for ; Thu, 3 Nov 2011 16:38:55 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA3FcreT027773 for ; Thu, 3 Nov 2011 16:38:54 +0100 Original-Received: by eye4 with SMTP id 4so1670818eye.14 for ; Thu, 03 Nov 2011 08:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=5nNRPXQpJy8WiXLpDf4D18MGEmufdHca4HPROk/JKP8=; b=sGGVhsGJVg9j4pPWvR2sTYvsmCuayGuR42b/pzSYqxowOOtepf1Df4DAC0CpTMaJcY CSOwMrv+JEC8k8y/h4lW17jw7yOjaqE9IC7HWupm08QjrwKksOV0PqLblLhZzW3D5Kxo OTr8IClxr28PdnweB1bVIVQ2TrH+oBX2WMCHs= Original-Received: by 10.14.16.1 with SMTP id g1mr1037005eeg.77.1320334733782; Thu, 03 Nov 2011 08:38:53 -0700 (PDT) Original-Received: from [192.168.2.35] (p5482DC55.dip.t-dialin.net. [84.130.220.85]) by mx.google.com with ESMTPS id o4sm16865107eeb.0.2011.11.03.08.38.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 08:38:52 -0700 (PDT) In-Reply-To: <20111103145113.GE1412@iram-ha-003840.extra.cea.fr> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFQDCSjN - 2fc50a28d80a - 20111103 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:72116 Archived-At: Am 03.11.2011 um 15:51 schrieb Alan Braslau: > On Thu, Nov 03, 2011 at 03:33:48PM +0100, Wolfgang Schuster wrote: >> = >> How is a framedtext more logical than a dictum or epigraph environment, >> with my solution you can also change the definition of the code to place >> the epigraph format without any change in the text while your framed text >> is always a framedtext (I know you can avoid this with a named framedtex= t) >> and changes to the layout require more work. >> = > = > Thanks for the explanation. > = > It is not too logical, however, to define a dictum or epigraph *before* t= he start of a new section or chapter. An author does not really think this = way. Of course, it is logical to define a dictum or epigraph environment th= at can be used as in: > = > \startchapter [title=3DChapter title] > = > \startepigraph > \input ward > \stopepigraph > = > \stopchapter The are reasons to put the epigraph environment before and after \startchap= ter but the purpose of my example was the inside section key and for this i= needed to before \startchapter. > It is indeed overkill to use a buffer as in your example. However, there = may be a very good reason to more closely tie the epigraph to the typesetti= ng of the chapter title. I could then see something like: > = > \startchapter [title=3D{Chapter title},epigraph=3D{\input ward}] > = > although I'm sure that the above (untested) syntax would cause problems > with \input... (and probably a \par would be needed somewhere). For a longer text \startchapter isn=92t prefect but you can load a text wit= h a reference from \startchapter, e.g. with this modification of my former = example you can load a previously set buffer with the dictum key. \def\startdictum {\dosingleempty\dostartdictum} \def\dostartdictum[#1]% {\dostartbuffer[dictum\iffirstargument:#1\fi][startdictum][stopdictum]} \setuphead [title] [insidesection=3D\texsetup{dictum}] \startsetups dictum \doifelsebuffer{dictum:\structureuservariable{dictum}} {\startframedtext[right][frame=3Doff,offset=3Dnone,width=3D.5\textwidth= ,foregroundstyle=3D\itx] \getbuffer[dictum:\structureuservariable{dictum}] \stopframedtext} {\doifelsebuffer{dictum} {\startframedtext[right][frame=3Doff,offset=3Dnone,width=3D.5\textwi= dth,foregroundstyle=3D\itx] \getbuffer [dictum] \resetbuffer[dictum] \stopframedtext} {\donothing}} \stopsetups \startdictum[zapf] \input zapf \stopdictum \starttext \starttitle[title=3DThis is a heading with a epgigraph below][dictum=3Dzapf] \input knuth \stoptitle \stoptext Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________