ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Framed texts
Date: Thu, 09 May 2002 20:43:15 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020509204014.02c652b8@server-1> (raw)
In-Reply-To: <157462384.20020424143432@bigfoot.com>

At 02:34 PM 4/24/2002 +0200, Giuseppe Bilotta wrote:
>
>GB> (2) when using a framedtext it's possible to choose wether to
>GB> align the box in the middle or shuffled left or right with the
>GB> first optional argument [left,middle,right]. It is not possible to
>GB> set this when defining the framedtext, though. Why?

The next release will offer "location=left|right|middle|none"; the next 
should work with the beta (not sure)

\def\dododostartframedtext[#1][#2][#3]%
   {\doifsomething{#2}{\setvalue{\??kd#1\c!plaats}{#2}}%
    \processaction % \v!laag en \v!diepte are already taken !
      [\getvalue{\??kd#1\c!plaats}]
      [  \v!links=>\letvalue{\??kd#1\c!links }\relax
                   \letvalue{\??kd#1\c!rechts}\hfill,
        \v!rechts=>\letvalue{\??kd#1\c!links }\hfill
                   \letvalue{\??kd#1\c!rechts}\relax,
        \v!midden=>\letvalue{\??kd#1\c!links }\hfill
                   \letvalue{\??kd#1\c!rechts}\hfill,
          \v!geen=>\letvalue{\??kd#1\c!links }\relax % new
                   \letvalue{\??kd#1\c!rechts}\relax]% new
    \letvalue{\??kd#1\c!plaats}\empty
    ....

(you definitely know where to patch this -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-05-09 18:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-15 15:01 Giuseppe Bilotta
2002-04-24 12:34 ` Giuseppe Bilotta
2002-05-09 18:43   ` Hans Hagen [this message]
2006-01-06 16:19 framed texts Hans van der Meer
2006-01-06 17:20 ` Peter Rolf
2006-01-06 20:43   ` Hans van der Meer
2006-01-07 12:50     ` 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=5.1.0.14.1.20020509204014.02c652b8@server-1 \
    --to=pragma@wxs.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).