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

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