ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Bug: Messy results when using "table" in head and multi-page "tables" in text
Date: Mon, 21 Jan 2008 10:25:54 +0100	[thread overview]
Message-ID: <115224fb0801210125n2f74056fn765461b8916c1dd0@mail.gmail.com> (raw)
In-Reply-To: <8972AD17-B3F5-440B-80F2-9ABC5D7D6FAD@zarm-technik.de>

On Jan 20, 2008 8:07 PM, Carsten Fechtmann <fecht@zarm-technik.de> wrote:
>
> Dear Wolfgang,
>
> first, I _really_ appreciate your effort. Unfortunately, for me
> \framed is not likely to do the job, as the header is a bit more
> complicated in real-life (I told you so ;-).
> And yes, actually, using framed had been my very first approach as the
> original LaTeX layout had been using \begin{picture} ...
> \end{picture}. Therefore, I thought at that time going the \framed
> route should do the trick....
>
> Here is an (still simplified) example why I don't think it would
>
> \setuplayout[%
>    width=160mm,
>    topspace=10mm,
>    header=35mm,
>    headerdistance=5mm,
> ]
> \setuppagenumbering[location=]
> \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][]
>
> \startsetups[pagehead]
>    \setupframed[offset=3pt]
>    \setupcombinations[distance=-\linewidth,width=160mm,align=no]
>    \dontleavehmode
>    \startcombination[3]
>    {\framed[align={right,lohi},height=27mm,width=35mm\relax]
>      { LOGO  } }
>    {\framed[align={right,lohi},width=35mm\relax]
>      {left} }
>    {\framed[align={middle,lohi},height=27mm,width=80mm\relax]
>      {titel } }
>    {\framed[align={middle,lohi},width=80mm\relax]
>      {middle} }
>    {\framed[align={right,lohi},height=27mm,width=45mm\relax]
>      {other stuff}  }
>    {\framed[align={middle,lohi},width=45mm\relax]
>      {Page:~\pagenumber\ of \lastpage}}
>    \stopcombination
> \stopsetups
>
> \starttext
> \input knuth
> \stoptext
>
> Again, as I am still new to ConTeXt, there might be a way to get rid
> of the spaces between the frames, somehow. But I still would -- in the
> real version -- also need some extra alignments within some cells and
> in short this gets just more ugly with every further step.
>
> I also had been thinking about going the "metafun" route. However, I
> do need a simple, out of the box solution that even the greenest TeX
> newbie could use and setup on all sorts of OS's ...
> In short, I fear that is also not going to be a choice at the moment.

Hi Carsten,

I have another solution for you, you could use a layer to place the header
on every page.

\setuppagenumbering[location=]

\startsetups[pagehead]
\bTABLE[offset=3pt]
  \bTR
    \bTD[align={right,lohi},height=27mm,width=35mm] LOGO \eTD
   \bTD[align={middle,lohi},height=27mm,width=80mm] titel \eTD
   \bTD[align={right,lohi},height=27mm,width=45mm] other stuff \eTD
  \eTR
  \bTR
    \bTD[align={right,lohi},width=35mm] left \eTD
    \bTD[align={middle,lohi},width=80mm] middle \eTD
    \bTD[align={middle,lohi},width=45mm] Page:~\pagenumber\ of \lastpage \eTD
  \eTR
\eTABLE
\stopsetups

\definelayer
  [pagehead]
  [width=\paperwidth,
   height=\paperheight,
   state=repeat]

\setlayer
  [pagehead]
  [hoffset=\backspace,
   voffset=\topspace]
  {\setups{pagehead}}

\setupbackgrounds[page][background=pagehead]


Greetings

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-01-21  9:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 11:37 Carsten Fechtmann
2008-01-20 13:10 ` Wolfgang Schuster
2008-01-20 15:22   ` Carsten Fechtmann
2008-01-20 16:18     ` Wolfgang Schuster
2008-01-20 19:07       ` Carsten Fechtmann
2008-01-21  9:25         ` Wolfgang Schuster [this message]
2008-01-21 11:26 ` Peter Rolf
2008-01-21 11:45   ` Peter Rolf
2008-01-23 22:11     ` Carsten Fechtmann

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=115224fb0801210125n2f74056fn765461b8916c1dd0@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).