From: Carsten Fechtmann <fecht@zarm-technik.de>
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: Sun, 20 Jan 2008 20:07:22 +0100 [thread overview]
Message-ID: <8972AD17-B3F5-440B-80F2-9ABC5D7D6FAD@zarm-technik.de> (raw)
In-Reply-To: <20080120171849.ed01348e.schuster.wolfgang@googlemail.com>
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.
Open to suggestions
Yours
Carsten
Am 20.01.2008 um 17:18 schrieb Wolfgang Schuster:
>
> next solution, framed:
>
> \startsetups[pagehead]
> \setupframed[strut=no,offset=.5em,height=1cm]
> \dontleavehmode
> \framed[align={right,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth
> \relax]{left} \hskip-\linewidth
> \framed[align={middle,lohi},width=\dimexpr(\textwidth/7)*3\relax]
> {middle} \hskip-\linewidth
> \framed[align={left,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth
> \relax]{right} \stopsetups
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-01-20 19:07 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 [this message]
2008-01-21 9:25 ` Wolfgang Schuster
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=8972AD17-B3F5-440B-80F2-9ABC5D7D6FAD@zarm-technik.de \
--to=fecht@zarm-technik.de \
--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).