From: Hans van der Meer <hansm@science.uva.nl>
Subject: Re: framed and align=no
Date: Thu, 29 Jun 2006 12:44:29 +0200 [thread overview]
Message-ID: <34EE12B5-1988-45DE-9E3F-94A069C2E286@science.uva.nl> (raw)
In-Reply-To: <44A2A430.5070006@elvenkind.com>
On Jun 28, 2006, at 17:45, Taco Hoekwater wrote:
>
> Hans van der Meer wrote:
>>
>> I get the impression that although "align=no", there still is a
>> \hfil
>> put in at the right.
>
> Yes, but it is an implied fil, from \parfillskip. Because you limited
> the width of the \framed, it is processed in vertical mode, so
> \parfillskip is added to the end of the paragraph.
>
> This should help:
>
> \unprotect
> % for core-spa.tex
> \setvalue{\@@ragged@@command\v!disable}%
> {\appendtoks \raggedright \parfillskip\zeropoint
> \to\everyraggedcommand}
> \protect
>
> \starttext
> \framed[width=4cm,align=disable] {\hfil xyz}
> \stoptext
Thanks. I installed it and it works. Witness the examples below.
Will this be installed in next ConTeXt versions? I would be grateful.
One question of naming:
I think "none" is a better descriptive name then "disable"
\leftaligned{\framed[width=4cm,align=no]{xyz} "no" comes out to the
left}
\leftaligned{\framed[width=4cm,align=no]{\hfil xyz} "no+hfil" comes
out in the middle}
\leftaligned{\framed[width=4cm,align=no]{\hfil xyz\hfil} "no+hfil
+hfil" comes out left of the middle}
\leftaligned{\framed[width=4cm,align=none]{xyz} "none" comes out to
the left}
\leftaligned{\framed[width=4cm,align=none]{\hfil xyz} "none+hfil"
comes out to the right}
\leftaligned{\framed[width=4cm,align=none]{\hfil xyz\hfil} "none+hfil
+hfil" comes out in the middle}
Hans van der Meer
next prev parent reply other threads:[~2006-06-29 10:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-28 15:16 Hans van der Meer
2006-06-28 15:45 ` Taco Hoekwater
2006-06-28 22:24 ` Hans Hagen
2006-06-29 10:44 ` Hans van der Meer [this message]
2006-06-29 11:53 ` Hans Hagen
2006-06-29 15:16 ` Hans van der Meer
2006-07-03 11:07 ` Hans van der Meer
2006-07-04 15:24 ` Hans Hagen
2006-06-28 22:21 ` Hans Hagen
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=34EE12B5-1988-45DE-9E3F-94A069C2E286@science.uva.nl \
--to=hansm@science.uva.nl \
--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).