From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50627 Path: news.gmane.org!not-for-mail From: Jos van Gisbergen Newsgroups: gmane.comp.tex.context Subject: Re: re-posting example of header at page bottom Date: Wed, 20 May 2009 02:35:33 -0700 (PDT) Message-ID: <850623.43142.qm@web30006.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0011572058==" X-Trace: ger.gmane.org 1242812210 12648 80.91.229.12 (20 May 2009 09:36:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 09:36:50 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed May 20 11:36:43 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M6iE5-0006Fx-G8 for gctc-ntg-context-518@m.gmane.org; Wed, 20 May 2009 11:36:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E6B5B1FAD7; Wed, 20 May 2009 11:36:40 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22368-04-4; Wed, 20 May 2009 11:35:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D3FA1FB49; Wed, 20 May 2009 11:35:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0F561FB49 for ; Wed, 20 May 2009 11:35:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22368-04-3 for ; Wed, 20 May 2009 11:35:37 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 1741A1FADB for ; Wed, 20 May 2009 11:35:37 +0200 (CEST) Original-Received: from web30006.mail.mud.yahoo.com (web30006.mail.mud.yahoo.com [209.191.69.23]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with SMTP id n4K9ZYaV016989 for ; Wed, 20 May 2009 11:35:35 +0200 Original-Received: (qmail 43430 invoked by uid 60001); 20 May 2009 09:35:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242812133; bh=hN8u4Cgt7miumANWpFQTijZ/Mh59A+ZGjfVoRUOQr0A=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=3dAjPkVOJhVauLQDc21SJukTCPeIu3ozOJ1qseFM8nvyoa6L5pipql+G3A0HuIwkNXCRIbo9hCd4KdUDwr2zCMoUxChRJS8jXV4ywxc1De30JISoxLH+AafDZBwUDpfMuM3z1bRKyItrvAKWdrvuyVpoVardXyIt0Nz9ZCtRK6A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=4CFPvd32j/uw3ssnqNGm3RgedtkCs9G0Z0wQ+dxG38mqOFzegxjyueOYx6zbWq3NPY1vN1s5zZ3lyfLCVUUuJJxi+XmkoypTgP9mAJKLL5MW3pGaxAJ/mN/N0n76BxV5pxwQGy3TIf6iVNumoz1TS8Rk7T7CNzSem4nDOBeiKSo=; X-YMail-OSG: iyXmjOUVM1nk6hEFuQpzljAQ7TduY8.IkGwKu9s8fdDXi4HvcAeEGg.judeuZlYpuID8j5DJhps5fcjuZf2t5qc53Y_SgLb_7kDh53DooJtbvNvMG6otRRVwcpWm6q4oJw0Nfx_Q1lvpUz_sETqHUpm9vtReAa1VH0hu8sfia2x9STYHCep5ZklZut5tUA-- Original-Received: from [212.61.45.18] by web30006.mail.mud.yahoo.com via HTTP; Wed, 20 May 2009 02:35:33 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.10 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.191.69.23; country=US; region=CA; city=Sunnyvale; postalcode=94089; latitude=37.4249; longitude=-122.0074; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.4249,-122.0074&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 228912398 - b274dc5eced2 - 20090520 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50627 Archived-At: --===============0011572058== Content-Type: multipart/alternative; boundary="0-662740918-1242812133=:43142" --0-662740918-1242812133=:43142 Content-Type: text/plain; charset=us-ascii Hi, I'm re-posting my previous reply to a request from Wolfgang Schuster to supply an example that exhibits the problem of headers at page bottom. In my previous reply the attached example was more or less obscurely hidden in a link at the bottom of the Digest. This time I included the example in the e-mail -- it's a bit long I'm afraid. 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 -------------------------------- Example --------------------------------- \def\Doctitle{ Yoyo reference guide } \def\Author{ Flavius Aurelius } \def\Copyrightyear{ 2023 } \def\Revision{ (revision 0.1) } \def\Footertext{ {\copyright} {\Copyrightyear} Yoyomatic {\Revision} } \installlanguage[en] %------------------------------ Set papersize -------------------------------- \setuppapersize[A4] %-------------------------- Define layout geometry --------------------------- \definelayout[myCustomLayout][ header=10mm, % height of header footer=10mm, % height of footer topspace=8mm, % space above header bottomspace=\topspace, % space below footer backspace=25mm, cutspace=20mm, width=middle, height=middle, marking=on, % enable the marking of text grid=no, ] \setuplayout[myCustomLayout] % Experimental \definelayout[TitlePageLayout][header=0pt, footer=0pt, backspace=0.25\paperwidth, topspace=0.25\paperheight] \definestartstop [TitlePageLayout] [before={\setuplayout[TitlePageLayout]}, after={\page[left]\setuplayout[reset]}] %------------------------------ Page numbering ------------------------------- \setuppagenumbering [alternative=doublesided, location={footer,right}, % where should page number appear left={Page }] % text to the left of page number %------------------------------ Custom colors -------------------------------- \setupcolors[state=start] \definecolor[DarkYellow] [r=0.5,g=0.5,b=0.1] \definecolor[LightYellow][r=1.0,g=1.0,b=0.8] \definecolor[LightBlue] [r=0.1,g=0.1,b=1.0] \definecolor[VeryLightBlue] [r=0.9,g=0.9,b=1.0] \definecolor[DarkBlue] [r=0.0,g=0.0,b=0.4] \definecolor[LightBlack] [r=0.4,g=0.4,b=0.4] \definecolor[DarkWhite] [r=0.8,g=0.8,b=0.9] %------------------------- Custom font definitions --------------------------- % Define custom fonts for title, chapter etc. \definebodyfont [10pt,11pt,12pt][rm][chapterFont=SansBold at 36pt, sectionFont=SansBold at 24pt, subsectionFont=SansBold at 24pt, subsubsectionFont=SansBold at 18pt, titleFont=SansBold at 36pt] % The following setup defines the attributes for drawing horizontal lines % across the page. These lines are drawn with macros \thinline and \hairline. %\setupthinrules[color=black,rulethickness=0.5mm] \setupthinrules[color=black] \setuphead[title] [style=\titleFont, color=black] \setuphead[chapter] [before=\crlf, % insert empty line before chapter title style=\chapterFont, color=black, prefix=+] \setuphead[section] [before=\crlf, style=\sectionFont, color=black, prefix=+] \setuphead[subsection] [before=\crlf, style=\subsectionFont, color=black, prefix=+] \setuphead[subsubsection][before=\crlf, style=\subsubsectionFont, color=black, prefix=+] \definehead[myhead][section] \setuphead[myhead] [before=\crlf, page=yes, % start on new page number=no, style=\subsectionFont, color=black] \definehead[submyhead][myhead] \setuphead[submyhead] [page=no, % don't start on new page before={\testpage[3]\blank}, % start on new page if less % than ... lines fit on the % current page style=\subsubsectionFont, color=black] %--------------------------- Headers and footers ----------------------------- \setupheader[text][after=\hairline] \setupfooter[text][before=\hairline] \setupheadertexts[chapter][\Doctitle] \setupfootertexts[text][\midaligned{\Footertext}][pagenumber] %----------------------- Attributes for framed texts ------------------------- \setupframedtexts[width=fit, height=fit, offset=0mm, location=middle, bodyfont=12pt, framecorner=rectangular, framecolor=DarkYellow, background=color, backgroundcolor=LightYellow] \setupframed[width=fit, height=fit, offset=2mm, location=middle, bodyfont=12pt, framecorner=rectangular, framecolor=DarkYellow, background=color, backgroundcolor=LightYellow] % This is a better framed text -- it breaks over pages: \definetextbackground[FramedText][ location=paragraph, rulethickness=0.5pt, framecolor=DarkYellow, background=color, backgroundcolor=LightYellow, leftoffset=0.5\bodyfontsize, rightoffset=0.5\bodyfontsize, topoffset=1.0\bodyfontsize, bottomoffset=1.0\bodyfontsize, before={\testpage[3]}, % test if 3 lines fit on current % page, otherwise go to next page frame=on] %------------------------- Attributes for footnotes -------------------------- \setupfootnotes[rule=off,background=color,backgroundcolor=white] \setupfootnotedefinition[background=color,backgroundcolor=red] %---------------------- Attributes for verbatim texts ------------------------ % % This is meant for verbatim text and code examples. \setuptyping[margin=3mm, space=off, % Do not show space characters explicitely color=DarkBlue, % Color of verbatim text before={\startFramedText}, % Draw verbatim text on a background after={\stopFramedText}, ] \setupbackground[background=color,backgroundcolor=LightYellow] %----------------------------- Table attributes ------------------------------ \setupcaption[table][location=bottom] \setuptables[rulethickness=0.1mm,rulecolor=LightBlack,background=color,backgroundcolor=red] % Experimental (splitting does not work in combination with placeTABLE) \setupTABLE[split=yes] \setupTABLE[row][each][background=none,frame=off] \setupTABLE[column][each][frame=on,bottomframe=off,topframe=off] \setupTABLE[column][first][leftframe=off] \setupTABLE[column][last][rightframe=off] \setupTABLE[row][first][bottomframe=on, background=color,backgroundcolor=VeryLightBlue] \setupTABLE[row][last][bottomframe=on] \definefloat[TABLE][TABLEs] \setupfloat[TABLE][location=middle] %------------------------- Set up table of contents -------------------------- \setupheadtext[content={Table of Contents}] % The title \definecombinedlist [ToC][chapter,section,subsection,myhead][ placehead=yes, criterium=all] \setupcombinedlist[ToC][interaction=all,alternative=c] \def\placeToC{\crlf\chapter{Table of Contents}\crlf\placecombinedlist[ToC]} \starttext \chapter{Reference} \section{Overview} \myhead{Tiytiiiiuytiii} \starttyping zxzzzz zxzAzzIzzzxzzz zxzzzz zxzzzzzzzz zxzzzz zzzzzzzzz zzzzzz zzzzxzzzzxzz zzzzzz zzzzzz zzzzzz zzzxzzzz zzzyzz z-zzxzzzxzzzz zzzyzz z-zzxzzzxzzzz \stoptyping \submyhead{Ejhgfjgjgjn} Azzz xz zzzzxzzz zz zzzzzzzzz zz zxzzzzzzzz zxzzzz $<$zzzzz$>$zzzzxzzzzxzz$<$/zzzzz$>$ zzzz x zzxzzzzzzxzzzz zz zzzzzz, zzzxzzzz xzz zzxzzzxzzzz. Azzzzzzz zxzzzz zzz zzzzzz xzz \type{M0}, \type{MX} xzz \type{MY}. Azzzzzzz zxzzzz zzz zzzxzzzz xzz \type{R0}, \type{R90}, \type{R180} xzz \type{R270}. Azzzzzzz zxzzzz zzz z-, xzz z-zzxzzzxzzzz xzz xzz zzzyzz zxzzz. Tzz zzxzzzxzzzz zz zzzxzzzz zz zzz zxzzzzzzzz'z zzzzzz. Tzz zzzzxzzz zxzz zzzzzzzzz zzzzzz zzz zzzzz zzz zz $<$zzzzz$>$zxzzzzzzzz$<$/zzzzz$>$. Az zzzzz zzzzzz zz zzzzzzzxz zxzzz xzz zzzzz, zz zzzz zzz zzzzxzzz zxzz zz zzzxzzz. Iz xz zzzzxzzz zz zzz zzzzzzz zz x zxzzzz zz zzzxzzz, zzz zxzzzz zz zzz zzzzxzzz zz zzzz xz zzz zzzzzzz. \submyhead{Python snippet} \starttyping # Azz x zzzz "B" zz zzz zxzzzz, zzzzz zz zxzzzz zz zzz zzzzzzz zzz zxzzzz [zxzLzxzCzz zzz/zz.zzz] zzz zzzzzzz [zxzTzzCzzz $zxzzzz] zz [zxzzz {zxzAzzCzzz $zxzzzz "B"} zzzzzzz] { # zzzzz zzzzzzzz, zzzz zzzzzz! zzzz $zzzzzzz zzzz } zzzz { # zzzz xzzzz zz, xzz zzzzxzzz zz [zxzzz {zxzAzzIzzzxzzz $zzzzzzz $zzzzzzz "I0" M0 R0 0 0} zzzzzzz ] { # zzzzz zzzzzzzz, zzzzxzzz zxzz zzzzzz! zzzz $zzzzzzz zzzz } } \stoptyping \submyhead{Perl snippet} \starttyping # Azz x zzzz "B" zz zzz zxzzzz, zzzzz zz zxzzzz zz zzz zzzzzzz zzz zzzzzz; zzz zxzzzzzzzy; zz $zxzzzz = zxzLzxzCzz("zzz/zz.zzz"); zz $zzzzzzz = zxzTzzCzzz($zxzzzz); zz $zzzzzzz; zzxz { $zzzzzzz = zxzAzzCzzz($zxzzzz,"B") }; zz ($@) { # zzzzz zzzzzzzz, zzzz zzzzzz! zzz $@; } zzzz { # zzzz xzzzz zz, xzz zzzzxzzz zz $zzzzzzz; zzxz { $zzzzzzz = zxzAzzIzzzxzzz($zzzzzzz,$zzzzzzz,"I0","M0","R0",0,0); }; zz ($@) { # zzzzz zzzzzzzz, zzzzxzzz zxzz zzzzzz! zzz $@; } \stoptyping \stoptext ----------------------------- End of example ----------------------------- Thanks in advance, Jos --0-662740918-1242812133=:43142 Content-Type: text/html; charset=us-ascii
Hi,

I'm re-posting my previous reply to a request from Wolfgang Schuster to supply
an example that exhibits the problem of headers at page bottom.  In my previous
reply the attached example was more or less obscurely hidden in a link at the
bottom of the Digest.

This time I included the example in the e-mail -- it's a bit long I'm afraid.


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


  --------------------------------  Example  --------------------------------- 


\def\Doctitle{
  Yoyo reference guide
}

\def\Author{
  Flavius Aurelius
}

\def\Copyrightyear{
  2023
}

\def\Revision{
  (revision 0.1)
}

\def\Footertext{
  {\copyright} {\Copyrightyear} Yoyomatic {\Revision}
}

\installlanguage[en]

%------------------------------  Set papersize  --------------------------------
\setuppapersize[A4]

%--------------------------  Define layout geometry  ---------------------------
\definelayout[myCusto mLayout][
 header=10mm,                    % height of header
 footer=10mm,                    % height of footer
 topspace=8mm,                   % space above header
 bottomspace=\topspace,          % space below footer
 backspace=25mm,
 cutspace=20mm,
 width=middle,
 height=middle,
 marking=on,                     % enable the marking of text
 grid=no,
]

\setuplayout[myCustomLayout]

% Experimental
\definelayout[TitlePageLayou t][header=0pt,
                   footer=0pt,
                   backspace=0.25\paperwidth,
                   topspace=0.25\paperheight]

\definestartstop
  [TitlePageLayout]
  [before={\setuplayout[TitlePageLayout]},
   after={\page[left]\setuplayout[reset]}]

%------------------------------  Page numbering  -------------------------------
\setuppagenumbering [alternative=doublesided,
                     location={footer,right},  % where should page number appear
   ;                   left={Page }]             % text to the left of page number

%------------------------------  Custom colors  --------------------------------
\setupcolors[state=start]
\definecolor[DarkYellow] [r=0.5,g=0.5,b=0.1]
\definecolor[LightYellow][r=1.0,g=1.0,b=0.8]
\definecolor[LightBlue]  [r=0.1,g=0.1,b=1.0]
\definecolor[VeryLightBlue]  [r=0.9,g=0.9,b=1.0]
\definecolor[DarkBlue]   [r=0.0,g=0.0,b=0.4]
\definecolor[LightBlack] [r=0.4,g=0.4,b=0.4]
\definecolor[DarkWhite]  [r=0.8,g=0.8,b=0.9]

%-------------------------  Custom font definitions  ---------------------------
% Define custom fonts for title, chapter etc.
\definebodyfont [10pt,11pt,12pt][rm][chapterFont =SansBold at 36pt,
                                     sectionFont=SansBold at 24pt,
                                     subsectionFont=SansBold at 24pt,
                                     subsubsectionFont=SansBold at 18pt,
                                     titleFont=SansBold at 36pt]

% The following setup defines the attributes for drawing horizontal lines
% across the page. These lines are drawn with macros \thinline and \hairline.
%\setupthinrules[color=black,rulethickness=0.5mm]
\setupthinrules[color=black]


\setuphead[title]        [style=\titleFont,
                          color=black]
\setuphead[chapter]   & nbsp;  [before=\crlf, % insert empty line before chapter title
                          style=\chapterFont,
                          color=black,
                          prefix=+]
\setuphead[section]      [before=\crlf,
                          style=\sectionFont,
       & nbsp;                  color=black,
                          prefix=+]
\setuphead[subsection]   [before=\crlf,
                          style=\subsectionFont,
                          color=black,
                          prefix=+]
\setuphead[subsubsection][before=\crlf,
  &nb sp;                       style=\subsubsectionFont,
                          color=black,
                          prefix=+]

\definehead[myhead][section]
\setuphead[myhead] [before=\crlf,
                    page=yes, % start on new page
                    number=no,
                ;     style=\subsectionFont,
                    color=black]

\definehead[submyhead][myhead]
\setuphead[submyhead] [page=no, % don't start on new page
                       before={\testpage[3]\blank}, % start on new page if less
                                                    % than ... lines fit on the
                         &nb sp;                          % current page
                       style=\subsubsectionFont,
                       color=black]

%---------------------------  Headers and footers  -----------------------------
\setupheader[text][after=\hairline]
\setupfooter[text][before=\hairline]
\setupheadertexts[chapter][\Doctitle]
\setupfootertexts[text][\midaligned{\Footertext}][pagenumber]

%-----------------------  Attributes for framed texts  -------------------------
\setupframedtexts[width=fit,
           & nbsp;      height=fit,
                  offset=0mm,
                  location=middle,
                  bodyfont=12pt,
                  framecorner=rectangular,
                  framecolor=DarkYellow,
                  background=color,
                  backgroundcolor=LightYellow]
\setupframed[width=fi t,
             height=fit,
             offset=2mm,
             location=middle,
             bodyfont=12pt,
             framecorner=rectangular,
             framecolor=DarkYellow,
             background=color,
             backgroundcolor=LightYellow]


% This is a better framed text -- it breaks over pages:
\definetextbackground[FramedText][
                       location=paragraph,
                      rulethickness=0.5pt,
                      framecolor=DarkYellow,
                      background=color,
                      backgroundcolor=LightYellow,
                      leftoffset=0.5\bodyfontsize,
                       rightoffset=0.5\bodyfontsize,
                      topoffset=1.0\bodyfontsize,
                      bottomoffset=1.0\bodyfontsize,
                      before={\testpage[3]}, % test if 3 lines fit on current
                                           &nb sp; % page, otherwise go to next page
                      frame=on]

%-------------------------  Attributes for footnotes  --------------------------
\setupfootnotes[rule=off,background=color,backgroundcolor=white]
\setupfootnotedefinition[background=color,backgroundcolor=red]

%----------------------  Attributes for verbatim texts  ------------------------
%
% This is meant for verbatim text and code examples.
\setuptyping[margin=3mm,
             space=off,               % Do not show space characters explicitely
             color=DarkBlue,          % Color of verbatim text
             before={\startFramedText}, % Draw verbatim text on a background
             after={\stopFramedText}, ]

\setupbackground[background=color,backgroundcolor=LightYellow]


%-----------------------------  Table attributes  ------------------------------
\setupcaption[table][location=bottom]
\setuptables[rulethickness=0.1mm,rulecolor=LightBlack,background=color,backgroundcolor=red]

% Experimental (splitting does not work in combination with placeTABLE)
\setupTABLE[split=yes]
\setupTABLE[row][each][background=none,frame=off]
\setupTABLE[column][each][frame=on,bottomframe=off,topframe=off]
\setupTABLE[column][first][leftframe=off]
\setupTABLE[column][last][rightframe=off]
\setupTABLE[row][first][bottomframe=on,
  &nb sp;                     background=color,backgroundcolor=VeryLightBlue]
\setupTABLE[row][last][bottomframe=on]
\definefloat[TABLE][TABLEs]
\setupfloat[TABLE][location=middle]


%-------------------------  Set up table of contents  --------------------------
\setupheadtext[content={Table of Contents}]  % The title
\definecombinedlist [ToC][chapter,section,subsection,myhead][
                          placehead=yes, criterium=all]
\setupcombinedlist[ToC][interaction=all,alternative=c]
\def\placeToC{\crlf\chapter{Table of Contents}\crlf\placecombinedlist[ToC]}





\starttext
\chapter{Reference}

\section{Overview}

\myhead{Tiytiiiiuytiii}
\starttyping

  zxzzzz zxzAzzIzzzxzzz
           zxzzzz zxzzzzzzzz
           zxzzzz zzzzzzzzz
           zzzzzz zzzzxzzzzxzz
           zzzzzz zzzzzz
           zzzzzz zzzxzzzz
           zzzyzz z-zzxzzzxzzzz
           zzzyzz z-zzxzzzxzzzz
\stoptyping


\submyhead{Ejhgfjgjgjn}

Azzz xz zzzzxzzz zz zzzzzzzzz zz zxzzzzzzzz zxzzzz $<$zzzzz$>$zzzzxzzzzxzz$<$/zzzzz$>$
zzzz x zzxzzzzzzxzzzz zz zzzzzz, zzzxzzzz xzz zzxzzzxzzzz.  Azzzzzzz zxzzzz zzz
zzzzzz xzz \type{M0}, \type{MX} xzz \type{MY}.&n bsp; Azzzzzzz zxzzzz zzz zzzxzzzz xzz \type{R0}, \type{R90}, \type{R180} xzz
\type{R270}.  Azzzzzzz zxzzzz zzz z-, xzz z-zzxzzzxzzzz xzz xzz zzzyzz zxzzz. Tzz
zzxzzzxzzzz zz zzzxzzzz zz zzz zxzzzzzzzz'z zzzzzz.  Tzz zzzzxzzz zxzz zzzzzzzzz
zzzzzz zzz zzzzz zzz zz $<$zzzzz$>$zxzzzzzzzz$<$/zzzzz$>$. Az zzzzz zzzzzz zz zzzzzzzxz
zxzzz xzz zzzzz, zz zzzz zzz zzzzxzzz zxzz zz zzzxzzz.  Iz xz zzzzxzzz zz zzz
zzzzzzz zz x zxzzzz zz zzzxzzz, zzz zxzzzz zz zzz zzzzxzzz zz zzzz xz zzz
zzzzzzz.

\submyhead{Python snippet}
\starttyping

  # Azz x zzzz "B" zz zzz zxzzzz, zzzzz zz zxzzzz zz zzz zzzzzzz
  zzz zxzzzz [zxzLzxzCzz zzz/zz.zzz]
  zzz zzzzzzz [zxzTzzCzzz $zxzzzz]
  zz [zxzzz {zxzAzzCzzz $zxzzzz "B"} zzzzzzz] {
      # zzzzz zzzzzzzz, zzzz zzzzzz!
      zzzz $zzzzzzz
      zzzz
&n bsp; } zzzz {
      # zzzz xzzzz zz, xzz zzzzxzzz
      zz [zxzzz {zxzAzzIzzzxzzz $zzzzzzz $zzzzzzz "I0" M0 R0 0 0} zzzzzzz ]
  {
          # zzzzz zzzzzzzz, zzzzxzzz zxzz zzzzzz!
          zzzz $zzzzzzz
          zzzz
      }
  }
\stoptyping


\submyhead{Perl snippet}
\starttyping

  # Azz x zzzz "B" zz zzz zxzzzz, zzzzz zz zxzzzz zz zzz zzzzzzz
  zzz zzzzzz;
  zzz zxzzzzzzzy;
  zz $zxzzzz = zxzLzxzCzz("zzz/zz.zzz");
  zz $zzzzzzz = zxzTzzCzzz($zxzzzz);
  zz $zzzzzzz;
  zzxz { $zzzzzzz = zxzAzzCzzz($zxzzzz,"B") };
  zz ($@) {
      # zzzzz zzzzzzzz, zzzz zzzzzz!
      zzz $@;
  } zzzz {
      # zzzz xzzzz zz, xzz zzzzxzzz
      zz $zzzzzzz;
    zzxz { $zzzzzzz =
  zxzAzzIzzzxzzz($zzzzzzz,$zzzzzzz,"I0","M0","R0",0,0); };
      zz ($@) {
          # zzzzz zzzzzzzz, zzzzxzzz zxzz zzzzzz!
          zzz $@;
  }
\stoptyping

\stoptext

  -----------------------------  End of example  ----------------------------- 

Thanks in advance,

Jos


--0-662740918-1242812133=:43142-- --===============0011572058== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0011572058==--