ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Balancing vertical placement of table
@ 2010-01-30  4:29 Design Department
  2010-01-31 13:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Design Department @ 2010-01-30  4:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have a single page layout as follows:

* Landscape + letter page
* Block of multi-line text (variable number of lines) which occupies the left third of the page
* Table with variable number of rows which occupies the right two-thirds of the page

I'm using \framed for the left text block and \placetable for the table. Is their a way to vertically place the table such that one-third of the vertical whitespace (above and below the table) is placed above the table, two-thirds below the table? The number of rows in the table varies enough that a fixed top position looks sub-optimal.

Is it possible to do something similar with the block of text, perhaps using a different top/bottom split for the vertical whitespace?

Are \framed and \placetable the best way to do this?

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

* Re: Balancing vertical placement of table
  2010-01-30  4:29 Balancing vertical placement of table Design Department
@ 2010-01-31 13:31 ` Wolfgang Schuster
  2010-01-31 15:50   ` Design Department
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-01-31 13:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 30.01.10 05:29, schrieb Design Department:
> I have a single page layout as follows:
>
> * Landscape + letter page
> * Block of multi-line text (variable number of lines) which occupies the left third of the page
> * Table with variable number of rows which occupies the right two-thirds of the page
>
> I'm using \framed for the left text block and \placetable for the table. Is their a way to vertically place the table such that one-third of the vertical whitespace (above and below the table) is placed above the table, two-thirds below the table? The number of rows in the table varies enough that a fixed top position looks sub-optimal.
>
> Is it possible to do something similar with the block of text, perhaps using a different top/bottom split for the vertical whitespace?
>
> Are \framed and \placetable the best way to do this?

Is the content for each element short enough to fit on one page
or do you have content which needs more pages?

Wolfgang

___________________________________________________________________________________
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

* Re: Balancing vertical placement of table
  2010-01-31 13:31 ` Wolfgang Schuster
@ 2010-01-31 15:50   ` Design Department
  2010-01-31 15:58     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Design Department @ 2010-01-31 15:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


>> I have a single page layout as follows:
>> 
>> * Landscape + letter page
>> * Block of multi-line text (variable number of lines) which occupies the left third of the page
>> * Table with variable number of rows which occupies the right two-thirds of the page
>> 
>> I'm using \framed for the left text block and \placetable for the table. Is their a way to vertically place the table such that one-third of the vertical whitespace (above and below the table) is placed above the table, two-thirds below the table? The number of rows in the table varies enough that a fixed top position looks sub-optimal.
>> 
>> Is it possible to do something similar with the block of text, perhaps using a different top/bottom split for the vertical whitespace?
>> 
>> Are \framed and \placetable the best way to do this?
> 
> Is the content for each element short enough to fit on one page
> or do you have content which needs more pages?

The content always fits on a single page.
___________________________________________________________________________________
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

* Re: Balancing vertical placement of table
  2010-01-31 15:50   ` Design Department
@ 2010-01-31 15:58     ` Wolfgang Schuster
  2010-01-31 16:01       ` Wolfgang Schuster
  2010-02-02 17:03       ` Design Department
  0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-01-31 15:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 31.01.10 16:50, schrieb Design Department:

>> Is the content for each element short enough to fit on one page
>> or do you have content which needs more pages?
>
> The content always fits on a single page.

Here is a goodie which is only documented in the ConTeXt source.

\setupheadertexts[the header text]
\setupfootertexts[a pretty long left footer text][something right]
\setupbottomtexts[a not so long bottom text][another right thing]
\setuptexttexts  [margin][something marginal][indeed]

\startpagelayout[leftpage]
   \setupTABLE[offset=overlay]
   \setupTABLE[c][1][width=\leftmarginwidth]
   \bTABLE
     \bTR
       \bTD[nx=3,background=color,backgroundcolor=green]
         \pagearea[header][text][middle]
       \eTD
     \eTR
     \bTR
       \bTD \pagearea[text][margin][left] \eTD
       \bTD[nx=2] \pagearea[text] \eTD
     \eTR
     \bTR
       \bTD[nx=3,offset=overlay]
         {\bTABLE[width=.5\hsize]
            \bTR
              \bTD \pagearea[footer][text][left] \eTD
              \bTD \pagearea[bottom][text][left] \eTD
            \eTR
          \eTABLE}
        \eTD
     \eTR
   \eTABLE
\stoppagelayout

\startpagelayout[rightpage]
   \setupTABLE[offset=overlay]
   \setupTABLE[c][1][width=\rightmarginwidth]
   \bTABLE
     \bTR
       \bTD[nx=3] \pagearea[header][text][middle] \eTD
     \eTR
     \bTR
       \bTD \pagearea[text][margin][left] \eTD
       \bTD[nx=2] \pagearea[text] \eTD
     \eTR
     \bTR
       \bTD[nx=3,offset=overlay]
         {\bTABLE[width=.5\hsize]
            \bTR
              \bTD \pagearea[bottom][text][right] \eTD
              \bTD \pagearea[footer][text][right] \eTD
            \eTR
          \eTABLE}
       \eTD
     \eTR
   \eTABLE
\stoppagelayout

\setupcolors[state=start]

\setupbackgrounds[text][background=color,backgroundcolor=blue]
\setupbackgrounds[header][text][background=color,backgroundcolor=red]

\setuppagenumbering[alternative=doublesided,location=]

\setuplayout[method=makeup]

\definetextbackground
   [test]
   [state=start,
    background=color,
    backgroundcolor=yellow]

\starttext

\dorecurse{10}{\input tufte \par}

\input tufte \starttest \input tufte \stoptest \input tufte

\starttabulate
\NC test \NC \starttest \input tufte  \stoptest \NC \NR
\stoptabulate

\dorecurse{10}{\input tufte \par}

\stoptext

Regards,
Wolfgang
___________________________________________________________________________________
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

* Re: Balancing vertical placement of table
  2010-01-31 15:58     ` Wolfgang Schuster
@ 2010-01-31 16:01       ` Wolfgang Schuster
  2010-02-02 17:03       ` Design Department
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-01-31 16:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 31.01.10 16:58, schrieb Wolfgang Schuster:
>>> or do you have content which needs more pages?
>>
>> The content always fits on a single page.
> Is the content for each element short enough to fit on one page
>
> Here is a goodie which is only documented in the ConTeXt source.

[...]

There are other ways to achive the same result but without a example
(could be a picture) a better answer is hardly possible.

Wolfgang

___________________________________________________________________________________
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

* Re: Balancing vertical placement of table
  2010-01-31 15:58     ` Wolfgang Schuster
  2010-01-31 16:01       ` Wolfgang Schuster
@ 2010-02-02 17:03       ` Design Department
  1 sibling, 0 replies; 6+ messages in thread
From: Design Department @ 2010-02-02 17:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 2010-01-31, at 8:58 AM, Wolfgang Schuster wrote:

> Am 31.01.10 16:50, schrieb Design Department:
> 
>>> Is the content for each element short enough to fit on one page
>>> or do you have content which needs more pages?
>> 
>> The content always fits on a single page.
> 
> Here is a goodie which is only documented in the ConTeXt source.

Thank-you Wolfgang.
As always, I'm indebted.

David
___________________________________________________________________________________
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:[~2010-02-02 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-30  4:29 Balancing vertical placement of table Design Department
2010-01-31 13:31 ` Wolfgang Schuster
2010-01-31 15:50   ` Design Department
2010-01-31 15:58     ` Wolfgang Schuster
2010-01-31 16:01       ` Wolfgang Schuster
2010-02-02 17:03       ` Design Department

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