From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50715 Path: news.gmane.org!not-for-mail From: afsmith Newsgroups: gmane.comp.tex.context Subject: sections, subsections, indenting, startnarrower, alignment Date: Fri, 22 May 2009 14:40:00 -0700 Message-ID: <5df5befa0905221440i7248c5b5y82e18d9a3b1dc687@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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243028456 12982 80.91.229.12 (22 May 2009 21:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 21:40:56 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Fri May 22 23:40:49 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 1M7cTx-0007zg-Lk for gctc-ntg-context-518@m.gmane.org; Fri, 22 May 2009 23:40:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B155F1FED9; Fri, 22 May 2009 23:40:48 +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 14486-01; Fri, 22 May 2009 23:40:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D40961FEC6; Fri, 22 May 2009 23:40:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F2471FEC6 for ; Fri, 22 May 2009 23:40:10 +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 13714-01-2 for ; Fri, 22 May 2009 23:40:02 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 57CE11FEC3 for ; Fri, 22 May 2009 23:40:02 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.155]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n4MLdr4U005678 for ; Fri, 22 May 2009 23:39:53 +0200 Original-Received: by yw-out-1718.google.com with SMTP id 5so1129813ywm.74 for ; Fri, 22 May 2009 14:40:00 -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=wXLj6kZRebY61PMCePUdRDjHZUK7Htt6UXjYiE4V7uA=; b=s0IfzVAcEKiLOfrM3HbBSj1sevQrwLEhj9ScnlfWYe6sYEsw5Ey5Oq9NhxZmfrrYf4 wzKp3wnQ8zJaL8UHjZSXYPV4KLVOlO5UappY6ky1gLpICIg1Y+17MRyKiXpvmTth0r5K 4r7sqr+5I1JJQ98eEEAJqwoVNTxML3gb+1358= 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=LTD4mZpNb9UTX5GqLKG4NxMDMaY6urQ+aVHbkAl5wtsOHJPDlfJBrbLLsF7t34u8SN Zu8hMchOxezptXNxQ8e/TlWPyGCdQGBYRQVzBGZYkHxPfDEHvEnvgW1d8+R7yfNZvXhm 2oNshYdioEYkHqsMTg2W0TmLO9Rg7pVY22u9U= Original-Received: by 10.90.113.11 with SMTP id l11mr3510195agc.117.1243028400466; Fri, 22 May 2009 14:40:00 -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: 230203094 - 93539c1e8790 - 20090522 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:50715 Archived-At: 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=\localhsize, align=normal, rulethickness=1pt] \setuphead[mysubject][style={\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 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________