ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Double height rows using natural tables?
@ 2011-11-24 22:01 Pavneet Arora
  2011-11-24 22:47 ` Christian
  0 siblings, 1 reply; 8+ messages in thread
From: Pavneet Arora @ 2011-11-24 22:01 UTC (permalink / raw)
  To: ntg-context

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

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.

advTHANKSance.


-- 
-----
- Pavneet Arora


[-- Attachment #2: test.tex --]
[-- Type: text/x-tex, Size: 1377 bytes --]

\setuppapersize[legal]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{
{\inframed
 [foregroundstyle=type,
  background=color,
  backgroundcolor=gray,
  frame=off]
{\tt [Unused]}}
}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb Electrical Room Electrical Panel}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Siemens}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][4,6][topframe=on]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]

\midaligned{
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
%	\bTR
%		\bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD
%		\bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD
%	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD
		\bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext

[-- Attachment #3: test.pdf --]
[-- Type: application/pdf, Size: 13692 bytes --]

[-- Attachment #4: test-.tex --]
[-- Type: text/x-tex, Size: 613 bytes --]

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\switchtobodyfont[11pt]
\starttext
\startalignment[center]
\placetable[here][]{none}
\starttable[|cw(0.75in)|lw(1.5in)|cw(0.75in)|lw(1.5in)|]
\HL
\NC {\sc Circuit} \NC {\sc Description} \VL {\sc Circuit} \NC {\sc Description} \NC\SR
\HL
\NC \LOW{7} \NC \LOW{Bedrooms 2+3 Arc Fault Plug} \VL \LOW{8} \NC \LOW{\tt Unused} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\NC \LOW{9} \NC \LOW{Bedroom 4 Arc Fault Plug} \VL \LOW{10} \NC \LOW{\tt Spare} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\stoptable
\stoptext

[-- Attachment #5: test-.pdf --]
[-- Type: application/pdf, Size: 14765 bytes --]

[-- Attachment #6: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 22:01 Double height rows using natural tables? Pavneet Arora
@ 2011-11-24 22:47 ` Christian
  2011-11-24 22:59   ` Pavneet Arora
  0 siblings, 1 reply; 8+ messages in thread
From: Christian @ 2011-11-24 22:47 UTC (permalink / raw)
  To: pavneet_arora, 'mailing list for ConTeXt users'

> 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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 22:47 ` Christian
@ 2011-11-24 22:59   ` Pavneet Arora
  2011-11-24 23:07     ` Christian
  0 siblings, 1 reply; 8+ messages in thread
From: Pavneet Arora @ 2011-11-24 22:59 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 22:59   ` Pavneet Arora
@ 2011-11-24 23:07     ` Christian
  2011-11-24 23:15       ` Pavneet Arora
  0 siblings, 1 reply; 8+ messages in thread
From: Christian @ 2011-11-24 23:07 UTC (permalink / raw)
  To: pavneet_arora, 'mailing list for ConTeXt users'

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
> __________________________________________________________
> _________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 23:07     ` Christian
@ 2011-11-24 23:15       ` Pavneet Arora
  2011-11-24 23:23         ` Christian
  0 siblings, 1 reply; 8+ messages in thread
From: Pavneet Arora @ 2011-11-24 23:15 UTC (permalink / raw)
  To: ntg-context

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

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)


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

[-- Attachment #3: FE-Pool-Storage-Room-Electrical.tex --]
[-- Type: text/x-tex, Size: 2913 bytes --]

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
%\usemodule[simplefonts]
%\setmainfont[GentiumBasic]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{{\tt [Unused]}}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb\sc FE Pool Storage Room}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Cutler-Hammer CPL116 Ser. B}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\midaligned{
\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][3][leftframe=on]
\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[1,3,4][14][topframe=on]
\setupTABLE[2][13,15][topframe=on]
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD [nr=2] 1 \eTD \bTD [nr=4] Baseboard Heater \eTD
		\bTD 2A \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
	\bTR
		\bTD 2B \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
	\bTR
		\bTD [nr=2] 3 \eTD
		\bTD 4A \eTD \bTD Island Plugs \eTD
	\eTR
	\bTR
		\bTD 4B \eTD \bTD Dishwasher+Oven Controls \eTD
	\eTR
	\bTR
		\bTD [nr=2] 5 \eTD \bTD [nr=2] F0 Storage Room\\ Lights+Plugs \eTD
		\bTD 6A \eTD \bTD Ice-maker \eTD
	\eTR
	\bTR
		\bTD 6B \eTD \bTD Counter Plugs \eTD
	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=4] F0 Pool Laundry Dryer \eTD
		\bTD 8A \eTD \bTD Island Fridge (I) \eTD
	\eTR
	\bTR
		\bTD 8B \eTD \bTD BBQ Area Plugs \eTD
	\eTR
	\bTR
		\bTD [nr=2] 9 \eTD
		\bTD 10A \eTD \bTD Island Fridge (II) \eTD
	\eTR
	\bTR
		\bTD 10B \eTD \bTD BBQ Area Plugs \eTD
	\eTR
	\bTR
		\bTD 11A \eTD \bTD Irrigation System \eTD
		\bTD 12A \eTD \bTD Hot Water Heater \eTD
	\eTR
	\bTR
		\bTD 11B \eTD \bTD[background=color,backgroundcolor=gray,nr=2] \spare[40A] \eTD
		\bTD 12B \eTD \bTD Aldabra LEDs \eTD
	\eTR
	\bTR
		\bTD 13A \eTD 
		\bTD 14A \eTD \bTD Wall Plugs (??) \eTD
	\eTR
	\bTR
		\bTD 13B \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
		\bTD 14B \eTD \bTD Potlights+Valence Lights \eTD
	\eTR
	\bTR
		\bTD 15A \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
		\bTD 16A \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
	\bTR
		\bTD 15B \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
		\bTD 16B \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext

[-- Attachment #4: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 23:15       ` Pavneet Arora
@ 2011-11-24 23:23         ` Christian
  2011-11-24 23:46           ` Pavneet Arora
  0 siblings, 1 reply; 8+ messages in thread
From: Christian @ 2011-11-24 23:23 UTC (permalink / raw)
  To: pavneet_arora, 'mailing list for ConTeXt users'

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)


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 23:23         ` Christian
@ 2011-11-24 23:46           ` Pavneet Arora
  2011-11-25  1:10             ` Christian
  0 siblings, 1 reply; 8+ messages in thread
From: Pavneet Arora @ 2011-11-24 23:46 UTC (permalink / raw)
  Cc: 'mailing list for ConTeXt users'

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Double height rows using natural tables?
  2011-11-24 23:46           ` Pavneet Arora
@ 2011-11-25  1:10             ` Christian
  0 siblings, 0 replies; 8+ messages in thread
From: Christian @ 2011-11-25  1:10 UTC (permalink / raw)
  To: pavneet_arora, 'mailing list for ConTeXt users'

Ok, I don't understand "occupy a double slot on the panel with a single breaker", that’s some tech-talk I guess,
but how about faking it:
use in you preamble
\dimen0=.35in
and then use for the header (or all the rows):
\bTR[height=\dimen0]
and for "fake doubles"
\bTR[height=2\dimen0]

This way you change dimen0, you change the whole thing.

P.S: apparently having ALL cells in a single row having [nr=2] does screw up the table  instead of doubling the cell height (what you wanted, I guess).

> -----Ursprüngliche Nachricht-----
> Von: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] Im
> Auftrag von Pavneet Arora
> Gesendet: Freitag, 25. November 2011 00:47
> Cc: 'mailing list for ConTeXt users'
> Betreff: Re: [NTG-context] Double height rows using natural tables?
> 
>  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)


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-25  1:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 22:01 Double height rows using natural tables? 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
2011-11-25  1:10             ` Christian

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).