ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Current text width?
Date: Mon, 07 Mar 2005 15:28:08 +0000	[thread overview]
Message-ID: <422C7308.5010301@capdm.com> (raw)

Hello all.

The following code (tested at contextgarden) illustrates my current problem:

--
\definetextbackground[TestBackground]
         [leftoffset=1em,rightoffset=1em,topoffset=8pt,
	bottomoffset=8pt,frame=on,location=paragraph]
\starttext
\starttextbackground[TestBackground]
Some text first, which behaves perfectly, and then a table:

\vbox{\bTABLE
\setupTABLE[column][1][width=0.3\textwidth]
\setupTABLE[column][2][width=0.7\textwidth]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the 
background offsets, like the text does. But it doesn't.\eTD\eTR
\eTABLE}
\stoptextbackground
\stoptext
--

The key is in the spec for column widths. I would like all the widths to 
be specified proportionally, but I need the right hook. I have tried 
\textwidth and \makeupwidth but neither seem to recognise the offsets 
introduced by the background. What I'd really like is a generalised 
solution, so that all tables just work no matter where they occur.

So - is there a parameter which represents the current width of the 
layout area, taking into account itemisations, textbackgrounds and 
anything else? Thanks.

[And thanks Hans for the earlier reference to details.pdf, which I am 
still trying to understand in order to allow my tables to extend into 
the margin. I'm working on it!]

Duncan
dh@capdm.com

             reply	other threads:[~2005-03-07 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07 15:28 Duncan Hothersall [this message]
     [not found] <20050307215318.4572E12800@ronja.ntg.nl>
2005-03-08  8:30 ` Duncan Hothersall

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=422C7308.5010301@capdm.com \
    --to=dh@capdm.com \
    --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).