From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70545 Path: news.gmane.org!not-for-mail From: Jean-Philippe Rey Newsgroups: gmane.comp.tex.context Subject: Re: Alignment with inline headings Date: Wed, 10 Aug 2011 15:33:27 +0200 Message-ID: <2007E83C-0A1C-4129-81D2-A2C058B5F48E@ecp.fr> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312983224 1895 80.91.229.12 (10 Aug 2011 13:33:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2011 13:33:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 10 15:33:40 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 1Qr8ug-0001Nw-DN for gctc-ntg-context-518@m.gmane.org; Wed, 10 Aug 2011 15:33:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7C67CAED0; Wed, 10 Aug 2011 15:33:37 +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 6oWdoJzLKPGD; Wed, 10 Aug 2011 15:33:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBE61CAEC6; Wed, 10 Aug 2011 15:33:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B4E0CAEC6 for ; Wed, 10 Aug 2011 15:33:32 +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 OyuPPFZVDDu5 for ; Wed, 10 Aug 2011 15:33:30 +0200 (CEST) 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 23094CAEBD for ; Wed, 10 Aug 2011 15:33:30 +0200 (CEST) Original-Received: from leopard.ecp.fr (leopard.ecp.fr [138.195.33.24]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7ADXTlb028111 for ; Wed, 10 Aug 2011 15:33:29 +0200 Original-Received: from [192.168.1.68] (123.7.126.78.rev.sfr.net [78.126.7.123]) by leopard.ecp.fr (Postfix) with ESMTP id EC67637C82; Wed, 10 Aug 2011 15:33:28 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=138.195.33.24; country=FR; region=A8; city=Chatenay-malabry; latitude=48.7667; longitude=2.2667; http://maps.google.com/maps?q=48.7667,2.2667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eFiBxt1m - af917ee78288 - 20110810 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:70545 Archived-At: Le 10 ao=FBt 2011 =E0 14:54, Wolfgang Schuster a =E9crit : > = > Am 10.08.2011 um 13:03 schrieb Jean-Philippe Rey: > = >> Hi, >> = >> I am looking for a way to vertically align the start of paragraphs after= an inline header, i.e. in the following example, I would like each first w= ord (Lorem, Lorem, Suspendisse, Cras, Proin, ...) to start on the same colu= mn. I tried different parameters of \setuphead (width, numberwidth, textwid= th, distance, etc.) to no avail. > = > What do you want to achieve, you use \section but you don=92t specify a t= itle. > = > When you want a counter for each paragraph there are other solution depen= dent on your requirements. I understand that my example seems quite strange. It is because it is a min= imal example extracted from a more complicated design. In the complete docu= ments, some sections have title, some not. When there is no title, I don't = want to have a number on a line by itself, so I put the headings inline. To= achieve this I wrote a macro that calls the appropriate heading style depe= nding on the presence of a title. Examples of such document - http://www.concours-centrale-supelec.fr/CentraleSupelec/2011/PC/sujets/ma= th2.pdf II.A has a title but II.B has not - http://www.concours-centrale-supelec.fr/CentraleSupelec/2011/PC/sujets/ph= ys1.pdf I.A.1) has a title but I.B.1) has not And here is a simplified version of the environment I am using (check the \= T macro) http://jury.concours-centrale-supelec.fr/sujets/sujetCCS.tex Using sections seemed the best way to achieve consistent numbering, but I a= m interested by any other ideas. -- = Jean-Philippe Rey Professeur - =C9cole Centrale Paris jean-philippe.rey@ecp.fr 92295 Ch=E2tenay-Malabry Cedex - France ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________