ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <dw@trichotomic.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centering last line of paragraph
Date: Sun, 09 Nov 2008 15:11:05 -0800	[thread overview]
Message-ID: <ad61e271339096a37c617b233316b997@localhost> (raw)
In-Reply-To: <alpine.DEB.1.00.0811091535350.19302@nqv-yncgbc>

On Sun, 9 Nov 2008 15:46:48 -0500 (EST), Aditya Mahajan <adityam@umich.edu>
wrote:
> On Sun, 9 Nov 2008, Wolfgang Schuster wrote:
> 
>>
>> Am 09.11.2008 um 20:18 schrieb <dw@trichotomic.net>
>> <dw@trichotomic.net>:
>>
>>> Hi all,
>>>
>>> For some long-winded subtitles, I need a paragraph shape which has
>>> flush
>>> sides except the last line, which is centered. I haven't come across
>>> any
>>> solutions for this... any clues?
>>
>>
>> http://www.tug.org/pracjourn/2008-2/asknelly/
> 
> Based on this, I had once used
> 
> 
> \installalign {centerlast}{\leftskip=.3pc plus 1fil
>                             \rightskip=.3pc plus -1fil
>                             \parfillskip=0pt plus 2fil}
> 
> 
> and then use \setupalign[centerlast] or \startalignment[centerlast]. This

> does not work as a parameter of align={..} in \framed etc, but I did not 
> look into it, since I did not need it.
> 
> Aditya

Thanks for the responses. I too found that article, but didn't know how to
apply it in context. I am using hanging punctuation and hz, which doesn't
work within a \startalignment[centerlast] \stopalignment environment (I've
tried a few combinations, and also setupalign with all three). Any ideas on
this one?

Best,
David
___________________________________________________________________________________
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
___________________________________________________________________________________


      reply	other threads:[~2008-11-09 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-09 19:18 dw
2008-11-09 19:55 ` Wolfgang Schuster
2008-11-09 20:46   ` Aditya Mahajan
2008-11-09 23:11     ` dw [this message]

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=ad61e271339096a37c617b233316b997@localhost \
    --to=dw@trichotomic.net \
    --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).