From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70552 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Alignment with inline headings Date: Wed, 10 Aug 2011 20:41:11 +0200 Message-ID: <3BF5D85F-628E-4B02-8937-84F477BB0952@googlemail.com> References: <2007E83C-0A1C-4129-81D2-A2C058B5F48E@ecp.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313001699 29062 80.91.229.12 (10 Aug 2011 18:41:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2011 18:41:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 10 20:41:35 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 1QrDif-0006WY-TF for gctc-ntg-context-518@m.gmane.org; Wed, 10 Aug 2011 20:41:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFF09CAECD; Wed, 10 Aug 2011 20:41: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 m2-pjF3L-Ttp; Wed, 10 Aug 2011 20:41:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40628CAEC9; Wed, 10 Aug 2011 20:41:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 920E9CAEC9 for ; Wed, 10 Aug 2011 20:41:28 +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 YtFT-QFZm0qD for ; Wed, 10 Aug 2011 20:41:17 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 30977CAEC7 for ; Wed, 10 Aug 2011 20:41:17 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7AIfF8V012427 for ; Wed, 10 Aug 2011 20:41:16 +0200 Original-Received: by fxg9 with SMTP id 9so1651343fxg.14 for ; Wed, 10 Aug 2011 11:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=1vRk1SSVxs6cI+/L5aC0H3GusaIQ3rqq75The19fXf4=; b=ZQiJ/M58ZJKLVHIv07UJly9YBw3pcSz71R4YtPbfF4oJSl5Rfdu1JZIW7nxaU5gsOK aZ4/U2vvL0PzNHHwjVa0USjhZ14D3FmDAOAXc/to3M0Hlf4xFZdBi1y7lJfnaG2Yb/va ohSJDzZLt1t6V+5+f+NepMYcACvzbbvBf/868= Original-Received: by 10.223.101.7 with SMTP id a7mr11530490fao.141.1313001675439; Wed, 10 Aug 2011 11:41:15 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482CB7E.dip.t-dialin.net [84.130.203.126]) by mx.google.com with ESMTPS id x13sm934471fah.5.2011.08.10.11.41.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 11:41:14 -0700 (PDT) In-Reply-To: <2007E83C-0A1C-4129-81D2-A2C058B5F48E@ecp.fr> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0dFiGFf2e - 547a4877974d - 20110810 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:70552 Archived-At: Am 10.08.2011 um 15:33 schrieb Jean-Philippe Rey: > = > 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 afte= r an inline header, i.e. in the following example, I would like each first = word (Lorem, Lorem, Suspendisse, Cras, Proin, ...) to start on the same col= umn. I tried different parameters of \setuphead (width, numberwidth, textwi= dth, distance, etc.) to no avail. >> = >> What do you want to achieve, you use \section but you don=92t specify a = title. >> = >> When you want a counter for each paragraph there are other solution depe= ndent on your requirements. > = > I understand that my example seems quite strange. It is because it is a m= inimal example extracted from a more complicated design. In the complete do= cuments, 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 de= pending on the presence of a title. > = > Examples of such document > = > - http://www.concours-centrale-supelec.fr/CentraleSupelec/2011/PC/sujets/= math2.pdf > II.A has a title but II.B has not > = > - http://www.concours-centrale-supelec.fr/CentraleSupelec/2011/PC/sujets/= phys1.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= am interested by any other ideas. \definelabel[test] \setupdescriptions [test] [text=3D, prefixsegments=3Dchapter:section, prefix=3Dyes, numberstopper=3D), prefixconnector=3D+, after=3D\space] \starttext \chapter{Chapter} \section{Section} \test One \test Two \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 ___________________________________________________________________________= ________