From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50821 Path: news.gmane.org!not-for-mail From: afsmith Newsgroups: gmane.comp.tex.context Subject: sections, subsections, indenting, startnarrower, alignment Date: Tue, 26 May 2009 13:53:40 -0700 Message-ID: <5df5befa0905261353i325561dod63a80149fada322@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243371282 11862 80.91.229.12 (26 May 2009 20:54:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 20:54:42 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Tue May 26 22:54:40 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M93fU-0004yh-AV for gctc-ntg-context-518@m.gmane.org; Tue, 26 May 2009 22:54:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 335121FE3A; Tue, 26 May 2009 22:54:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28209-05; Tue, 26 May 2009 22:54:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 27D4C1FE28; Tue, 26 May 2009 22:54:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DB001FE28 for ; Tue, 26 May 2009 22:54:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00104-02 for ; Tue, 26 May 2009 22:53:47 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 1F5581FE25 for ; Tue, 26 May 2009 22:53:47 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.155]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4QKrgWq021905 for ; Tue, 26 May 2009 22:53:42 +0200 Original-Received: by yw-out-1718.google.com with SMTP id 5so2214803ywm.74 for ; Tue, 26 May 2009 13:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=IsrOWghWossFkDZQp6D4amTt0jNhCRerWQKtn2LqRNg=; b=I9TdsjudjBdjzmzmvKOM/kf/m7e/KrA9CW7SdKRSpHa4XY8YZIVJ8ZjiAppEj4tiRe fS36P7at3U0JXON0fckWBaUGlso/7Gg1STI9pq7LerHMtGhIuX6TTFTqTHElG+AnaWN+ rrCZWAppOmuB0LMzHfuJdNqb+yH9jJFv1v+sY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=oiHTuBraG79ZLEZBMXm24SFJDKM7l2JaqD61F27HvIA2T6tFSv0f8pofGhauRolQi2 Qg0f6ANf+sZ39ITH8cOFWiM3xNfXIqvX9dUW7VlLVZyb5J9xtP3Y4giV3wcSDyKQ10Ub F/km67CgCNgFXeNRmS7d6v+ukMhrc6N2iJpC8= Original-Received: by 10.90.101.17 with SMTP id y17mr7695461agb.102.1243371221540; Tue, 26 May 2009 13:53:41 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.46.155; 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: 232298821 - a93f9f10df90 - 20090526 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50821 Archived-At: I do not understand what you mean. Could you explain? I stopped trying to use sections because I read somewhere in the archives that sections cannot be used 'recursively' like this. I have instead been trying to use definitions. With regards to other approaches, I have been trying to use several different dimensions to solve this problem but none of them seem to work as expected inside the head of a definition inside a "narrowed", such as \localhsize and \makeupwidth, which mangle things in unexpected ways. Can anyone tell me however if there is some dimension that corresponds to the local amount of indentation (made with narrower)? -A > Wouldn't be easier to achieve this using section personalized section > numbering ? > > Best, > Ama=EBl > > > Le vendredi 22 mai 2009 =E0 14:40 -0700, afsmith a =E9crit : > > Hi again ntg-context. > > > > I have been working on my own CV/Resume module. Up until now I've just > > been asking about specific bits of the implementation of this thing I > > want to do, but perhaps that was a mistake as it hasn't really helped > > progress much, so: > > What I am trying to achieve is to define some three-argument command > > to give a section/subject header and a date, and then a block of text. > > The header and date should be on the same line, but aligned in either > > direction (subject aligned left, date aligned right) > > This block of text underneath it should be indented and able to > > include an instance of the same command. Let me try to explain the > > desired output in a little monospaced text diagram.. > > > > |(Subject)_______________________(Date)| > > |__(Subsubject)__________________(Date)| > > |____texttexttexttexttexttexttexttext__| > > |____textmoretextmoretextmoretexttext__| > > |__(Subsubject)__________________(Date)| > > |____texttexttexttexttexttextexttext___| > > |____textmoretextmoretextmoretexttext__| > > > > The "subject" and "subsubject" parts don't need to literally use > > "\subject" , for example I also tried to use "\start(description){..." > > for this purpose as well but that failed equally. Just something that > > works reasonably as a section header. > > > > I promise I have looked in the archives before asking :) for example > > http://www.mail-archive.com/ntg-context@ntg.nl/msg21111.html > > http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html > > http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html > > http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html > > > > And here is an example of something I was playing with... > > > > ------------------- > > \definehead[mysubject][subject] > > > > \defineframed[lrframe][ > > width=3D\localhsize, > > align=3Dnormal, > > rulethickness=3D1pt] > > > > \setuphead[mysubject][style=3D{\bf}] > > \define[3]\CHRONSUBJ > > {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}} > > \startnarrower[left]{#3}\stopnarrower} > > > > \showframe[text] > > \starttext > > \CHRONSUBJ > > {This happened from June 08 to June 09} > > {06/08--06/09} > > {\CHRONSUBJ > > {This happened from June 08 to December 08} > > {06/08--12/08} > > {\input tufte } > > \CHRONSUBJ > > {This happened from January 09 to June 09} > > {01/09--06/09} > > {\input zapf }} > > \stoptext > > ------------------- > > > > -A ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________