Re: [NTG-context] header at page bottom example
Hi,
Here's an example of a ConTeXt file where a header occurs at page bottom.
The subsection named "Perl snippet" occurs at the bottom of page 2, followed
by framed text on page 3. It would be much nicer if the header would be
written on page 3. Note: I extracted this example from a real-life text; for some reason
the frames in the example are drawn wrongly, but this is beside the point.
Run the example with texexec --pdf test.tex
These are the outputs of pdfetex --version and texexec --version on my system (Fedora Core 6):
texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
context : ver: 2005.01.31
cont-en : ver: 2005.01.31 fmt: 2009.1.26 mes: english
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
Thanks in advance,
Jos
________________________________
From: "ntg-context-request@ntg.nl"
Hi Aditya,
Your solution works for normal text following the header. But if I have a framed text with a background, which also has a "before={\testpage[3]}" (\definetextbackground[FramedText][ ...,before={\testpage[3]},...]) and the section starts with such a framed text, it can still go wrong. And I guess it can also go wrong if a section starts with a figure. Is there some way to specify that if less than a certain number of items (lines of text, frames, figures etc.) fit on the remainder of the current page, the next page should be taken?
Send a example.
Wolfgang
------------------------------
Message: 2
Date: Mon, 18 May 2009 12:45:27 +0200
From: "Thomas A. Schmitz"
{\switchtobodyfont[10pt] \setupinterlinespace[line=12pt] \input tufte \par }
*palmforehead*
Thanks, Taco and Wolfgang! Painful...
All best
Thomas
------------------------------
Message: 3
Date: Mon, 18 May 2009 03:53:15 -0700
From: afsmith
Am 17.05.2009 um 21:23 schrieb afsmith:
Hey again, ntg-context.
I would like to align one piece of a line to the left, and another piece of the same line to the right, sort of like numbered math equations, except not math. Additionally I would like to do this inside a narrowed block
\starttext
\input knuth
\startnarrower
\input knuth
\dontleavehmode\framed[width=\localhsize,align=normal]{left\hfill right}
\stopnarrower
\stoptext
Wolfgang
------------------------------
Message: 4
Date: Mon, 18 May 2009 13:08:19 +0200
From: Alan BRASLAU
Am 17.05.2009 um 23:31 schrieb Alan BRASLAU:
Two questions, first: What is the real difference between columns and columnset? I am a bit confused* about their coexistence. Is this purposeful or necessary (or is it simply historical)? Is \startcolumns simply an unnamed, "default" columnset?
columns and columnset are two different mechanism two produce a document with text and two or more columns. the columns mechanism is the older one with limited control about the placement of figures but allows you to mix one column and multicolumns text on a page. columnsets are a new version of the column mechanism with more control about the placement of figures and other features like spanned columns etc. (look at the manual for more) and is better suited for magazine like layouts (Vit Zyka posted a few nice examples a few years ago).
Great! This is somewhat what I suspected (columns mechanism is the older one). Is there good reason to keep both mechanisms? That is, does the startcolumns mechanism have advantages? Can't one mix one column and multicolumns text on a page using columnsets?
(*and the wiki page needs to be clarified...)
the wiki is from users for users, feel free to correct the articles
Of course, as soon as I feel that I understand the subject.
Second question, maybe a bug? \startitemize[columns] does not interact well: I suspect that it could or should use paragraphs internally rather than columns so as to work within a column(set).
that's a limitation in tex, when you use the 'columns' key for itemize the items are typeset with a \startcolumns / \stopcolumns before and after the environment and you can nest columns /columnset environments (a tex limitation) but in normal one column text this is not the case and you can use multicolumn items in most cases but you can
\startcolumns \startsimplecolumns \startitemize \item one \item two ... \stopitemize \stopsimplecolumns \stopcolumns
page-mul.tex ... %D Undocumented and still under development. \def\startsimplecolumns ... May I suggest that \startitemize[columns] internally use such a mechanism, perhaps when under a columns or columnset environment. Of course, this may be a bit tricky according to the following remark:
(in a few cases streamlayer are necessary, e.g. within framedtext)
Indeed!
Inside framed text I used paragraphs to manually typset into columns; now I
get to learn about streamlayers...
Alan
------------------------------
Message: 5
Date: Mon, 18 May 2009 14:28:14 +0200
From: Alan Stone
Am 24.01.2009 um 19:00 schrieb Alan Stone:
Hi,
In the underneath example, how do you get each word replaced by an underline ?
Or, if not possible, underlined word groups with correct underline breaks for multi-line phrases.
\def\doUnderlineD#1% {\bgroup \setbox\scratchbox\hbox{#1}% \underbar{\hskip\wd\scratchbox}\space \egroup}
\def\UnderlineD#1% {\processseparatedlist[#1][ ]\doUnderlineD\removeunwantedspaces}
Wolfgang
Ahoi,
A finishing touch question...
How do you cut off underbar parts which exceed \textwidth ?
\showframe
\setuplayout[width=7cm]
\def\doUnderlineD#1%
{\bgroup
\setbox\scratchbox\hbox{#1}%
\underbar{\hskip\wd\scratchbox}\space
\egroup}
\def\UnderlineD#1%
{\processseparatedlist[#1][ ]\doUnderlineD\removeunwantedspaces}
\starttext
\UnderlineD{aaaaaaaaaaaa bbbb cccccccccc ddddddddddddd eeeeeeeee
vvvvvvvvvv wwwwwww xxxxxxxxxxxxx yyyyyyyyyyy zzzzzzz}
\stoptext
Thanks in advance.
Alan
------------------------------
Message: 6
Date: Mon, 18 May 2009 14:55:07 +0200
From: Markus Hubig
Fixed version is only (don't know how long it takes till you get it with the minimals), for the moment use the attached file. Sorry for the crash (which was my fault) but a few features I use in my module depend on the ConTeXt version (especially when you use MkIV).
Wolfgang
-- -------------------"it's like this"------ even samurai have teddy bears and even teddy bears get drunk
participants (1)
-
Jos van Gisbergen