ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Design Department <design@enquora.com>
To: ntg-context@ntg.nl
Subject: Table placement with forced width
Date: Mon, 13 Apr 2009 13:31:09 -0600	[thread overview]
Message-ID: <6e2989c20904131231m28c66111j89e3d5dbf3a20d38@mail.gmail.com> (raw)

Hi all,

I need a table that is 2/3 \pagewidth and placed against the right page margin.

\SetTableToWidth{6in}
\setuptables[split=repeat]
\starttablehead
\NC Description \NC Quantity \NC Units \NC Rate \NC Amount \NC \NR
\HL
\stoptablehead
\starttabletail
\NC \SL This ticket is not an invoice. Pay on receipt of invoice.
\NC\FOUR \NC\NR
\stoptabletail

\placetable[right,5*line,split=repeat][tab:costs]{}
\starttables[|l|c|c|c|r|]
\NC 1 man unit \NC 4 \NC hr \NC 125.00 \NC 500.00 \NC \NR
\NC Kilometre charges \NC 100 \NC km \NC .85 \NC 85.00 \NC \NR
\NC Field Kit \NC 1 \NC day \NC 50.0 \NC 50.00 \NC \NR
\HL
\NC \bold{Total:} (all work performed on this ticket, before taxes)
\NC\THREE \NC \$ 635.00 \NC \NR
\stoptables

The table flows into, and off the right margin area. What am I doing wrong?
Also, \SetTableToWidth{.67\pagewidth} produces an error. Is there a
way to specify a fraction of \pagewidth?

Even though this example is short, the table may run to multiple pages
and I need both headers and footers to repeat.
I also need to eventually shade alternate row backgrounds.
Is there a better table macro choice?

-- 
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:[~2009-04-13 19:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-13 19:31 Design Department [this message]
2009-04-14  8:40 ` [***SPAM***] " Bill Long
2009-04-14 16:21   ` Design Department
2009-04-14 16:48 ` Wolfgang Schuster
2009-04-14 17:21   ` Design Department

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=6e2989c20904131231m28c66111j89e3d5dbf3a20d38@mail.gmail.com \
    --to=design@enquora.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).