Hans, This didn't quite achieve what I was looking for. I was hoping for the formatting of circuit 4 in the output file test.pdf, rather than what was produced for circuit 8. I modified the definition of \spare so that by default a 15A breaker is assumed unless otherwise specified. However, a more pressing problem is this: If I remove the comments from the row previous, i.e., I have two rows for which I want nr=2, I get the strange artifact in test+.pdf where the second row gets wrapped up a row. Even with the comments in place, the last row is single height. What I really want are two double height rows similar to circuits 2 and 4 but for the entire row. advTHANKSance
Message: 1 Date: Wed, 23 Nov 2011 09:38:51 +0100 From: Hans Hagen
To: pavneet_arora@waroc.com, mailing list for ConTeXt users Subject: Re: [NTG-context] Natural Tables---Including a bit of cell style in a \define Message-ID:<4ECCB11B.2010805@wxs.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 22-11-2011 13:08, Pavneet Arora wrote:
I am creating documentation labeling the circuits of electrical and network panels for a project of mine.
Enclosed is a minimal example.
What I would like is to define two macros: \unused and \spare (\unused referring to a circuit with no breaker installed, while \spare referring to a circuit with a breaker, but no load). I wish these definitions to not only include the represented text and font directives, i.e., {\tt [Unused]}, but also shade the cell in a background color. However, I cannot seem to figure out how to do that. Including the `[background=color,backgroundcolor=gray]' in the \define seems to be expanded back simply as text.
Any suggestions?
\define\unused {\inframed [foregroundstyle=type, background=color, backgroundcolor=gray, frame=off] {[Unused]}}
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
-- ----- - Pavneet Arora