ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Rolf Marvin B e Lindgren" <r.m.b.lindgren@usit.uio.no>
Subject: Re: typesetting to grid in layer with widgets
Date: Fri, 12 Mar 2004 10:58:42 +0100	[thread overview]
Message-ID: <m265dabd4d.fsf@turin.local> (raw)
In-Reply-To: <6.0.1.1.2.20040311235949.01bf2630@server-1> (Hans Hagen's message of "Fri, 12 Mar 2004 00:04:45 +0100")

Hans Hagen <pragma@wxs.nl> writes:

> \setlayerframed
>    [text]
>    [...]
>    [framed settings]
>    {}

I'll have to consult the documentation of \setlayerframed then - which
again i fear is somewhat terse ... what goes in the [...] box there?  

> fields (and text in there) don't have a concept of a baseline
> (unfortunately), so depending on the situation, you may want to lower
> the text
> 
>    \hbox{\lower2pt\hbox{\field[...]}}

heh.  the field box remains fixed to the baseline while the predecing
text is raised :)  OK, a bit more twiddling can compensate for that
again.  perhaps a wee bit to klugey for my tase.  

> >(as a matter of fact, the problem with this approach is that text
> >cannot ever be centered becaue TeX need to know the dimensions at
> >typesetting time - which isn't known until the user has interacted.  is
> >there, say, JavaScript magic that could be done in order to have text
> >centered after it has been input?
> 
> doesn't align=middle work?

I'll give it a shot but too optimistic I am not.  should the \field
have align=middle as part of its setup parameters? 

> >I'd like to have a frame around the entire page.  Preferably, I'd like
> >to be able to place it using numerical coordinates (absolute or
> >relative, set to a layer or not).  Is this, or something close to it,
> >possible?
> 
> i often use metapost for that (see metafun manual)

OK.

thanks!

-- 
Rolf Lindgren                                            http://www.roffe.com/
roffe@tag.uio.no

      reply	other threads:[~2004-03-12  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-11  8:10 [Q] (newbie) " Rolf Marvin B e Lindgren
2004-03-11 23:04 ` Hans Hagen
2004-03-12  9:58   ` Rolf Marvin B e Lindgren [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=m265dabd4d.fsf@turin.local \
    --to=r.m.b.lindgren@usit.uio.no \
    --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).