ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: table formatting mystery
@ 2013-04-29 15:19 Lance Larsen
  2013-04-30  6:45 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Lance Larsen @ 2013-04-29 15:19 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2214 bytes --]

Thankyou luigi. The suggestion provided below worked. I wish I understood
why context thought that a cell height to two rows were needed, but the
combination of \hbox and alignment of lohi is a reasonable workaround.
 
-Lance
 
On Thu, Apr 25, 2013 at 5:02 PM, Lance Larsen <lance.c.larsen at gmail.com
<http://www.ntg.nl/mailman/listinfo/ntg-context> > wrote:
> I created the following table, but I am running into a mysterious
> problem. When I include the text 'Geometry Calulations' in row 2, the
> table row expands as if this text takes up lines of text. However the
> text fits well within the cell length, and the text itself remains on
> one line. If I delete 'Geometry Calculations', the height of row 2 is
> the height of one line of text. How do I fix this? I have included
> snapshots of what I am getting with and without 'Geometry
> Calculations' included. Any help or insight is appreciated.
> 
> \setupTABLE[c][1][width=0.16\textwidth]
> \setupTABLE[c][2,3,4][width=0.13\textwidth]
> \setupTABLE[c][5][width=0.20\textwidth, align=middle]
> \setupTABLE[c][6][width=0.25\textwidth, align=middle]
> \bTABLE[width=0.5\textwidth, rulethickness=0.5pt]
> \bTR \bTD[nc=2]   \bf ~\cb Preliminary \cb Final    \eTD
> \bTD[align=middle] \bf Revision \eTD \bTD[align=middle] X \eTD \bTD
> \bf Document ID \eTD \bTD         \DocID         \eTD \eTR
> \bTR \bTD[nc=2]   \bf ~Document Title:  \eTD \bTD[nc=4,align=middle]
>  Geometry Calculations  \eTD \eTR
> \bTR \bTD[nc=2]   \bf ~Originating Discipline:  \eTD
> \bTD[nc=4,align=middle]                               \OrigDisc
>                                               \eTD \eTR
> \bTR \bTD[nc=2]   \bf ~Effective Date:  \eTD \bTD[nc=3]  \tfx  ~\cb
> Approval Date \sp\sp\cb Other: ________   \eTD \bTD
> Page~\pagenumber~of~\totalnumberofpages  \eTD \eTR
> \bTR \bTD         \bf ~Issued for: \eTD \bTD[nc=5,align=middle]
> \tfx Phase 1 Design \cb\sp Phase 2 Design \cb\sp Phase 3 Design \cb\sp
> Input to DCD \cb\sp N/A \cb         \eTD \eTR
> \eTABLE
> 
> -Lance Larsen
 
\bTR \bTD[nc=2,style=bold,align={flushleft,lohi}] \hbox{~Document
Title} \eTD \bTD[nc=4,align=middle]  Geometry Calculations  \eTD \eTR
 
seems to fix the things.
 
 
--
luigi

 


[-- Attachment #1.2: Type: text/html, Size: 6086 bytes --]

[-- Attachment #2: 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] 6+ messages in thread
* table formatting mystery
@ 2013-04-25 15:02 Lance Larsen
  2013-04-26  7:20 ` luigi scarso
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lance Larsen @ 2013-04-25 15:02 UTC (permalink / raw)
  To: ntg-context

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

I created the following table, but I am running into a mysterious
problem. When I include the text 'Geometry Calulations' in row 2, the
table row expands as if this text takes up lines of text. However the
text fits well within the cell length, and the text itself remains on
one line. If I delete 'Geometry Calculations', the height of row 2 is
the height of one line of text. How do I fix this? I have included
snapshots of what I am getting with and without 'Geometry
Calculations' included. Any help or insight is appreciated.

\setupTABLE[c][1][width=0.16\textwidth]
\setupTABLE[c][2,3,4][width=0.13\textwidth]
\setupTABLE[c][5][width=0.20\textwidth, align=middle]
\setupTABLE[c][6][width=0.25\textwidth, align=middle]
\bTABLE[width=0.5\textwidth, rulethickness=0.5pt]
\bTR \bTD[nc=2]   \bf ~\cb Preliminary \cb Final    \eTD
\bTD[align=middle] \bf Revision \eTD \bTD[align=middle] X \eTD \bTD
\bf Document ID \eTD \bTD         \DocID         \eTD \eTR
\bTR \bTD[nc=2]   \bf ~Document Title:  \eTD \bTD[nc=4,align=middle]
 Geometry Calculations  \eTD \eTR
\bTR \bTD[nc=2]   \bf ~Originating Discipline:  \eTD
\bTD[nc=4,align=middle]                               \OrigDisc
                                              \eTD \eTR
\bTR \bTD[nc=2]   \bf ~Effective Date:  \eTD \bTD[nc=3]  \tfx  ~\cb
Approval Date \sp\sp\cb Other: ________   \eTD \bTD
Page~\pagenumber~of~\totalnumberofpages  \eTD \eTR
\bTR \bTD         \bf ~Issued for: \eTD \bTD[nc=5,align=middle]
\tfx Phase 1 Design \cb\sp Phase 2 Design \cb\sp Phase 3 Design \cb\sp
Input to DCD \cb\sp N/A \cb         \eTD \eTR
\eTABLE

-Lance Larsen

[-- Attachment #2: Example2.png --]
[-- Type: image/png, Size: 41081 bytes --]

[-- Attachment #3: Example1.png --]
[-- Type: image/png, Size: 45380 bytes --]

[-- 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] 6+ messages in thread

end of thread, other threads:[~2013-04-30  6:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-29 15:19 table formatting mystery Lance Larsen
2013-04-30  6:45 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2013-04-25 15:02 Lance Larsen
2013-04-26  7:20 ` luigi scarso
2013-04-26  7:22 ` Wolfgang Schuster
2013-04-26  7:53 ` luigi scarso

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