ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pavneet Arora <pavneet_arora@waroc.com>
Cc: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Double height rows using natural tables?
Date: Thu, 24 Nov 2011 18:46:48 -0500	[thread overview]
Message-ID: <4ECED768.8070808@waroc.com> (raw)
In-Reply-To: <012201ccab00$1ae00360$50a00a20$@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 4853 bytes --]

 From an earlier version using `unnatural' tables, I have enclosed the output 
PDF.  This situation can arise anywhere in the panel/table where you have 
adjacent rows allow of which should be spanning a double row.  In this case 
circuits 15 and 16 occupy a double slot on the panel with a single breaker; 
hence the layout should reflect this.  How would this be best achieved in the 
natural table model?  Shouldn't we just be dealing with spans independently of 
worrying about whether other adjacent columns will also require a row span?

On 11-11-24 06:23 PM, Christian wrote:
> Now I don't get it :D What do you want to accomplish? Maybe an annotated screenshot would help?
>
> anyway, here's a another tip:
> \setupTABLE[r][4][topframe=on]
> \setupTABLE[r][6][topframe=on]
> \setupTABLE[r][8][topframe=on]
> \setupTABLE[r][10][topframe=on]
> \setupTABLE[r][12][topframe=on]
> \setupTABLE[r][16][topframe=on]
> =
> \setupTABLE[r][4,6,8,10,16][topframe=on]
>
>> Yes, I get that part.  Perhaps, a larger example will illustrate .
>>
>> Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  Note
>> that you have an assortment of cells spanning rows depending on breaker
>> size.
>> It is only by chance that in a particular case adjacent breaker might utilize the
>> full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits
>> 15 and 16 were both double-pole, it would be incorrect to label them as
>> 15A/15B and 16A/16B.  Then for that particular 'row' I would need double
>> height.
>>
>> On 11-11-24 06:07 PM, Christian wrote:
>>> If you want all rows double height except the first, just do it the other way
>> around.
>>> \setupTABLE[r][each][height=0.7in]
>>> and then for the first row:
>>> \bTR[height=0.35in]
>>> Then it's only 2 digits to change :)
>>>
>>> [nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a
>> single cell that reaches down X rows. it's not meant to be used to adjust the
>> height of a row.
>>>
>>> Check this out, lots of examples:
>>> http://www.pragma-ade.com/general/manuals/enattab.pdf
>>>
>>>
>>>> Thank you, Christian.  However, I find explicitly setting the row
>>>> height a bit awkward.  What happens if I changed the height value in
>>>> my \setupTABLE directive?  Then I would have to change all references
>>>> to height in the table explicitly.  Also, my made up example is
>>>> *only* of double rows.  However, I have the earlier example where
>>>> this is a mixture of row spans across different columns.  It was just
>>>> by chance that I was in a situation with all adjacent cells in a particular row
>> requiring a row span.
>>>>
>>>> Why would that be considered not an application of [nr=?]?  And if it
>>>> indeed the case, shouldn't it be explicit that [nr=2] doesn't apply to an
>> entire row?
>>>>
>>>> Regards.
>>>>
>>>>
>>>> On 11-11-24 05:47 PM, Christian wrote:
>>>>>> I have tried various combinations and have so far been unsuccessful
>>>>>> in getting a row of double height using natural tables.  I am
>>>>>> following up and enclosing a minimal example, along with the a
>>>>>> previous incarnation using TABLE, which does give me the intended
>>>> layout.
>>>>>>
>>>>>> Any suggestions on how to do the same using natural tables would be
>>>>>> greatly appreciated.
>>>>>
>>>>> use the height parameter for the table row. also, I don't thik
>>>>> you've
>>>> understood the meaning of 'nr=2'.
>>>>> I suggest you read the wiki entry on TABLES:
>>>>> http://wiki.contextgarden.net/TABLE
>>>>>
>>>>>
>>>>> and here's your table back ;P :
>>>>>
>>>>> \bTABLE
>>>>> \bTABLEbody
>>>>> 	\bTR
>>>>> 		\bTD Circuit \eTD
>>>>> 		\bTD Description \eTD
>>>>> 		\bTD Circuit \eTD
>>>>> 		\bTD Description \eTD
>>>>> 	\eTR
>>>>>
>>>>> 	\bTR[height=0.7in]
>>>>> 		\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
>>>>> 		\bTD  8 \eTD \bTD  \unused \eTD
>>>>> 	\eTR
>>>>> \eTABLEbody
>>>>> \eTABLE
>>>>>
>>>>
>>>> --
>>>> -----
>>>> - Pavneet Arora
>>>>
>>>> Waroc Fine Audio + Custom Home Cinema www.waroc.com
>> 416.937.WAROC
>>>> (9276)
>>>>
>>>>
>> __________________________________________________________
>>>> _________________________
>>>> 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
>>>>
>> __________________________________________________________
>>>> _________________________
>>>
>>
>> --
>> -----
>> - Pavneet Arora
>>
>> Waroc Fine Audio + Custom Home Cinema
>> www.waroc.com  416.937.WAROC (9276)
>
>

-- 
-----
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)


[-- Attachment #2: FE-Pool-Storage-Room-Electrical.pdf --]
[-- Type: application/pdf, Size: 16315 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2011-11-24 23:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24 22:01 Pavneet Arora
2011-11-24 22:47 ` Christian
2011-11-24 22:59   ` Pavneet Arora
2011-11-24 23:07     ` Christian
2011-11-24 23:15       ` Pavneet Arora
2011-11-24 23:23         ` Christian
2011-11-24 23:46           ` Pavneet Arora [this message]
2011-11-25  1:10             ` Christian

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=4ECED768.8070808@waroc.com \
    --to=pavneet_arora@waroc.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).