ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Philippe Rey <jean-philippe.rey@ecp.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Alignment with inline headings
Date: Wed, 10 Aug 2011 15:33:27 +0200	[thread overview]
Message-ID: <2007E83C-0A1C-4129-81D2-A2C058B5F48E@ecp.fr> (raw)
In-Reply-To: <E7625C0F-E520-4DBE-BCAA-8B0A3DBAB6B3@googlemail.com>


Le 10 août 2011 à 14:54, Wolfgang Schuster a écrit :

> 
> 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 word (Lorem, Lorem, Suspendisse, Cras, Proin, ...) to start on the same column. I tried different parameters of \setuphead (width, numberwidth, textwidth, distance, etc.) to no avail.
> 
> What do you want to achieve, you use \section but you don’t specify a title.
> 
> When you want a counter for each paragraph there are other solution dependent on your requirements.

I understand that my example seems quite strange. It is because it is a minimal example extracted from a more complicated design. In the complete documents, 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 depending 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.

-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
jean-philippe.rey@ecp.fr          92295 Châtenay-Malabry Cedex - France



___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2011-08-10 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 11:03 Jean-Philippe Rey
2011-08-10 12:54 ` Wolfgang Schuster
2011-08-10 13:33   ` Jean-Philippe Rey [this message]
2011-08-10 18:41     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2007E83C-0A1C-4129-81D2-A2C058B5F48E@ecp.fr \
    --to=jean-philippe.rey@ecp.fr \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).