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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to