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" <ntg-context-request@ntg.nl>
To: ntg-context@ntg.nl
Sent: Monday, May 18, 2009 2:55:18 PM
Subject: ntg-context Digest, Vol 59, Issue 99

Send ntg-context mailing list submissions to
    ntg-context@ntg.nl

To subscribe or unsubscribe via the World Wide Web, visit
    http://www.ntg.nl/mailman/listinfo/ntg-context
or, via email, send a message with subject or body 'help' to
    ntg-context-request@ntg.nl

You can reach the person managing the list at
    ntg-context-owner@ntg.nl

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ntg-context digest..."


Today's Topics:

  1. Re: how to prevent header at page bottom (Wolfgang Schuster)
  2. Re: interlinespace (Thomas A. Schmitz)
  3. Re: formula-style alignment (afsmith)
  4. Re: columns(ets) and itemize[columns] (Alan BRASLAU)
  5. Re: replacing words by underlines (Alan Stone)
  6. Re: Fresh install & t-letter module (Markus Hubig)


----------------------------------------------------------------------

Message: 1
Date: Mon, 18 May 2009 12:12:00 +0200
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: [NTG-context] how to prevent header at page bottom
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID: <47526EFC-131B-4AD0-A804-D5C98155F4D6@gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


Am 18.05.2009 um 12:07 schrieb Jos van Gisbergen:

> 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" <thomas.schmitz@uni-bonn.de>
Subject: Re: [NTG-context] interlinespace
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID: <4115FF75-AA44-4355-AB30-1532B7FA1D60@uni-bonn.de>
Content-Type: text/plain; charset=US-ASCII; format=flowed


On May 18, 2009, at 11:56 AM, Taco Hoekwater wrote:

> {\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 <adventurecomplete@gmail.com>
Subject: Re: [NTG-context] formula-style alignment
To: ntg-context <ntg-context@ntg.nl>
Message-ID:
    <5df5befa0905180353t7e3036b6s7092d1c6d5d6ef19@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Thanks Wolfgang. That works...

Now how about inside a definition or subject header?

Here is an example. \localhsize in this case seems to resolve to a
width of 0, making the contained text break as often as it can...

\defineframed[lrframe][
width=\localhsize,
align=normal,
rulethickness=1pt]

\setuplayout[header=0pt,footer=0pt]
\definedescription[topdesc][
inbetween={\blank[none]},
headstyle={\bf},
style={\tf\rm},
location=top,
width=broad]

\define[3]\CHRONDESC
{\starttopdesc
{\dontleavehmode\lrframe{#1\hfill#2}}
\startnarrower[left]{#3}\stopnarrower
\stoptopdesc}

\definehead[mysubject][subject]
\setuphead[mysubject][style={\bf}]
\define[3]\CHRONSUB
{\mysubject{\dontleavehmode\lrframe{#1\hfill#2}}
\startnarrower[left]{#3}\stopnarrower}

\showframe[text]

\starttext

\startnarrower[left]
\dontleavehmode\lrframe[width=broad]
{leftleftleft \hfill right rightrightright}
\stopnarrower \crlf

\startnarrower[left]
\dontleavehmode\lrframe[width=\localhsize]
{leftleftleftleft\hfill right rightrightright}
\stopnarrower \crlf

\CHRONDESC
  {This happened from June 08 to June 09}
  {06/08--06/09}
  {\CHRONDESC
    {This happened from June 08 to December 08}
    {06/08--12/08}
    {\input tufte }
  \CHRONDESC
    {This happened from January 09 to June 09}
    {01/09--06/09}
    {\input zapf }}
\CHRONDESC
  {This happened from June 09 to July 09}
  {06/09-07/09}
  {\input knuth }
\crlf

\CHRONSUB
  {This happened from June 08 to June 09}
  {06/08--06/09}
  {\CHRONSUB
    {This happened from June 08 to December 08}
    {06/08--12/08}
    {\input tufte }
  \CHRONSUB
    {This happened from January 09 to June 09}
    {01/09--06/09}
    {\input zapf }}
\crlf

\stoptext



> 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 <alan.braslau@cea.fr>
Subject: Re: [NTG-context] columns(ets) and itemize[columns]
To: ntg-context@ntg.nl
Message-ID: <200905181308.19704.alan.braslau@cea.fr>
Content-Type: Text/Plain;  charset="iso-8859-1"

On Monday 18 May 2009 08:45:16 Wolfgang Schuster wrote:
> 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 <software.list.1es9s@gmail.com>
Subject: Re: [NTG-context] replacing words by underlines
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID: <4a1154a8.07a5660a.6a16.50ae@mx.google.com>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At Saturday 24/01/2009 21:07, you wrote:

>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 <mhubig@gmail.com>
Subject: Re: [NTG-context] Fresh install & t-letter module
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID:
    <1a3190fd0905180555u171571fbrdd352d9322bfe187@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you!

I've replaced the "default.nli" in my context tree with the file you send
me.
Now "texexec letter.tex" and "texexec --xtx letter.tex" works,
but "texexec --lua letter.tex" fails with:

-------------8<----schnipp-----
ConTeXt  ver: 2009.05.14 16:44 MKIV  fmt: 2009.5.18  int: english/english

system          : letter.top loaded
(letter.top)
fonts          : preloading latin modern fonts
bodyfont        : 12pt rm is loaded
language        : language en is active
system          : module letter loaded
(letter.tex
system          : module letter (line 2) already loaded
systems        : begin file letter at line 2
! Undefined control sequence.
l.3 \startletter
-------------8<----schnapp-----

- Markus

On Fri, May 15, 2009 at 3:34 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20090518/e544e43a/attachment.html>

------------------------------

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


End of ntg-context Digest, Vol 59, Issue 99
*******************************************