Open main menu

Difference between revisions of "Cover Pages"

m
(simplified thanks to Hans' feedback)
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
< [[Sample documents]] | [[MetaPost]] >
+
__TOC__
  
<texcode>
+
= First one =
 +
 
 +
<context mode="mkiv" source="yes">
 +
\setuppapersize[A6]
 
\setupcolors[state=start]
 
\setupcolors[state=start]
  
Line 20: Line 23:
 
\startstandardmakeup
 
\startstandardmakeup
 
   \raggedcenter
 
   \raggedcenter
   \vfill \definedfont[SerifBold at 48pt]\setstrut \strut Penguins in Vietnam
+
   \vfill \definedfont[SerifBold at 28pt]\setstrut \strut Penguins in Vietnam
   \blank[2*big] \definedfont[SerifBold at 24pt]\setstrut \strut A Very Short Story
+
   \blank[2*big] \definedfont[SerifBold at 18pt]\setstrut \strut A Very Short Story
 
   \vfill
 
   \vfill
 
\stopstandardmakeup
 
\stopstandardmakeup
Line 30: Line 33:
  
 
\stoptext
 
\stoptext
</texcode>
 
 
<context>
 
\setuplayout[location=middle,scale=.2]
 
\setupcolors[state=start]
 
 
\startuseMPgraphic{cover}
 
  StartPage ;
 
    fill Page withcolor .5green ;
 
    path p ; p := unitcircle randomized .1 xsized(PaperWidth-1cm) ;
 
    fill p shifted -center p shifted center Page  withcolor red ;
 
  StopPage ;
 
\stopuseMPgraphic
 
 
\defineoverlay[cover][\useMPgraphic{cover}]
 
 
\starttext
 
 
\setupbackgrounds[page][background=cover]
 
 
\startstandardmakeup
 
  \raggedcenter
 
  \vfill \definedfont[SerifBold at 48pt]\setstrut \strut Penguins in Vietnam
 
  \blank[2*big] \definedfont[SerifBold at 24pt]\setstrut \strut A Very Short Story
 
  \vfill
 
\stopstandardmakeup
 
 
\stoptext
 
 
</context>
 
</context>
  
 
[http://archive.contextgarden.net/message/20050223.145512.19d6450f.html Reference to mailing list]
 
[http://archive.contextgarden.net/message/20050223.145512.19d6450f.html Reference to mailing list]
  
== Another title page ==
+
= Another title page =
  
<texcode>
+
<context mode="mkiv" source="yes">
 +
\setuppapersize[A6]
 
\definetype[ytyp][color=yellow]
 
\definetype[ytyp][color=yellow]
  
Line 111: Line 87:
  
 
\stoptext
 
\stoptext
</texcode>
+
</context>
  
 
Guess who did this one :-) [http://archive.contextgarden.net/message/20050321.011152.0eb2d729.html Reference to mailing list]
 
Guess who did this one :-) [http://archive.contextgarden.net/message/20050321.011152.0eb2d729.html Reference to mailing list]
  
<context>
+
= A simple centered cover for a booklet =
\setuplayout[location=middle,scale=.2]
 
\definetype[ytyp][color=yellow]
 
  
\startbuffer[title]
 
\type{/(}\ytyp{h}\type{*?)testexpr/io}\par
 
\type{/t(}\ytyp{a}\type{*?)estexpr/io}\par
 
\type{/te(}\ytyp{n}\type{*?)stexpr/io}\par
 
\type{/tes(}\ytyp{s}\type{*?)texpr/io}\par
 
\type{/test(}\ytyp{h}\type{*?)expr/io}\par
 
\type{/teste(}\ytyp{a}\type{*?)xpr/io}\par
 
\type{/testex(}\ytyp{g}\type{*?)pr/io}\par
 
\type{/testexp(}\ytyp{e}\type{*?)r/io}\par
 
\type{/testexpr(}\ytyp{n}\type{*?)/io}\par
 
\stopbuffer
 
  
\setupcolors[state=start]
+
<context mode="mkiv" source="yes">
 
+
\setuppapersize[A6]
\definelayer
 
  [TitleGraphic]
 
  [width=\paperwidth,
 
    height=\paperheight]
 
 
 
\setlayer
 
  [TitleGraphic]
 
  [preset=lefttop]
 
  {\scale
 
      [width=\paperwidth,
 
      height=\paperheight]
 
      {\framed
 
        [frame=off,
 
          offset=overlay,
 
          background=color,
 
          backgroundcolor=blue,
 
          foregroundcolor=red,
 
          align=normal]
 
        {\getbuffer[title]}}}
 
 
 
\setupbackgrounds[page][background=TitleGraphic]
 
 
 
\starttext
 
 
 
\startstandardmakeup
 
 
 
\stopstandardmakeup
 
 
 
\stoptext
 
</context>
 
 
 
 
 
== A simple centered cover for a booklet ==
 
 
 
 
 
<texcode>
 
 
 
\setuppapersize[A5][A5]
 
 
\setuppagenumbering[alternative=doublesided]
 
\setuppagenumbering[alternative=doublesided]
  
Line 179: Line 104:
 
   pagestate=start]% we want to number this
 
   pagestate=start]% we want to number this
  
{\bfc This should be the long title, Andreas' solution\par}
+
{\bfb This should be the long title, Andreas' solution\par}
  
 
\stoppagemakeup
 
\stoppagemakeup
Line 191: Line 116:
 
\stoptext
 
\stoptext
  
</texcode>
+
</context>
  
 
Reference: http://www.ntg.nl/pipermail/ntg-context/2011/063030.html
 
Reference: http://www.ntg.nl/pipermail/ntg-context/2011/063030.html
Line 232: Line 157:
 
</texcode>
 
</texcode>
  
 +
= Scaled Full Page Image 1 =
 +
 +
An elegant option is to extend the makeup mechanism to accept the background key:
 +
 +
    \unprotect
 +
    \appendtoks
 +
      \setupbackgrounds[\v!page][\c!background=\makeupparameter\c!background]
 +
    \to \t_page_makeup_every_setup
 +
    \protect
 +
 +
Then you can use
 +
 +
<pre>
 +
    \setupexternalfigures[location={local,default,global}]
 +
 +
    \defineoverlay
 +
      [backgroundimage]
 +
      [{\externalfigure[cow.pdf][width=\overlaywidth, height=\overlayheight]}]
 +
 +
 +
    \starttext
 +
 +
    \startstandardmakeup[background=backgroundimage]
 +
      Whatever
 +
    \stopstandardmakeup
 +
 +
    Next
 +
 +
    \stoptext
 +
</pre>
 +
 +
 +
= Scaled Full Page Image 2 =
 +
 +
Another way to use a full-page image includes:
 +
 +
<context mode="mkiv" source="yes">
 +
\setuppapersize[A7,landscape]
 +
\startTEXpage
 +
  \externalfigure
 +
    [cow.pdf]
 +
    [width=\paperwidth,
 +
    height=\paperheight]
 +
\stopTEXpage
 +
</context>
 +
 +
 +
= A very very simple one =
 +
 +
If you are looking for something fancy with graphics, bells, and whistles, this is not for you. However, if you are looking for a very simple cover page with simple code, then read on.
 +
 +
Very often a white paper or some other document needs a cover page. The cover page needs to have a specific (and special) layout, so some layout commands are required. The textual content is limited, and in many cases there is no graphics whatsoever. The cover page below is really plain vanilla:
 +
 +
<texcode>
 +
% --- Cover page
 +
 +
\dontleavehmode
 +
\blank[6cm]
 +
 +
\startalignment[center]
 +
  \ssd Polar Bears of Antarctica \par
 +
  \ssc A Suggestion
 +
\stopalignment
 +
 +
\blank[10cm]
 +
 +
\startalignment[flushright]
 +
\dontleavehmode
 +
\ssb
 +
\bTABLE
 +
  \setupTABLE[r][each][frame=off]
 +
  \bTR \bTD Dr. I.M.Looney \eTD \eTR
 +
  \bTR \bTD Institute of Bad Ecology \eTD \eTR
 +
  \bTR \bTD February 30, 2006 \eTD \eTR
 +
\eTABLE
 +
\stopalignment
 +
\page
 +
 +
</texcode>
 +
 +
<context>
 +
% --- Cover page
 +
\setuplayout[scale=0.5,width=13cm]
 +
\framed[align=flushleft,width=13cm]{
 +
\dontleavehmode
 +
\blank[6cm]
 +
\startalignment[center]
 +
  \ssd Polar Bears of Antarctica \par
 +
  \ssc A Suggestion
 +
\stopalignment
 +
 +
\blank[10cm]
 +
\startalignment[flushright]
 +
\dontleavehmode
 +
\ssb
 +
\bTABLE
 +
  \setupTABLE[r][each][frame=off]
 +
  \bTR \bTD Dr. I.M.Looney \eTD \eTR
 +
  \bTR \bTD Institute of Bad Ecology \eTD \eTR
 +
  \bTR \bTD February 30, 2006 \eTD \eTR
 +
\eTABLE
 +
\stopalignment
 +
\blank[2cm]
 +
}
 +
</context>
 +
 +
== Analysis of the code ==
 +
 +
These two commands together make a 6-centimeter blank on the top of the page:
 +
 +
<texcode>
 +
\dontleavehmode
 +
\blank[6cm]
 +
</texcode>
 +
 +
The <tt>\dontleavehmode</tt> in the beginning is a bit of TeX-magic. TeX has a horizontal and a vertical mode, and if it is in the vertical mode when it encounters a <tt>\blank</tt>, no blank will appear. The <tt>\dontleavehmode</tt> forces the right mode.
 +
 +
The title is centered. The actual layout may need some tweaking with e.g. <tt>\blank</tt>. This one looks reasonably fine on the paper (and bad in the Wiki).
 +
 +
<texcode>
 +
\startalignment[center]
 +
  \ssd Polar Bears of Antarctica \par
 +
  \ssc A Suggestion
 +
\stopalignment
 +
</texcode>
 +
 +
Another measured waste of paper (this time no mode problems):
 +
 +
<texcode>
 +
\blank[10cm]
 +
</texcode>
 +
 +
And then the rest of the information is embedded in a natural [[TABLE]]. All the text in the TABLE is left-aligned, but the TABLE itself is right-aligned. So, the longest row dictates the position of the TABLE. The downside of this approach is that if you have a number of cover pages with different authors, the starting position jumps around.
 +
 +
<texcode>
 +
\startalignment[flushright]
 +
\dontleavehmode
 +
\ssb
 +
\bTABLE
 +
  \setupTABLE[r][each][frame=off]
 +
  \bTR \bTD Dr. I.M.Looney \eTD \eTR
 +
  \bTR \bTD Institute of Bad Ecology \eTD \eTR
 +
  \bTR \bTD February 30, 2006 \eTD \eTR
 +
\eTABLE
 +
\stopalignment
 +
</texcode>
 +
 +
N.B.: the <tt>\startalignment</tt> requires the <tt>\dontleavehmode</tt> if there is no text immediately after the <tt>start</tt> command.
 +
 +
And finally, let's finish the page:
 +
 +
<texcode>
 +
\page
 +
</texcode>
 +
 +
And that's it, a very simple cover page. While it may be useful as such, it has several shortcomings. For example, the positions are not absolute, so a change in the title may move the information block in the lower right corner. Using the TABLE is just a show-off. If you do not need the "align-by-rightmost" alignment, <tt>\startnarrower[..][..] ... \stopnarrower</tt> provides much the same functionality with fewer commands and cleaner code.
 +
 +
= Simple example with MetaFun (2019) =
 +
 +
from [https://tex.stackexchange.com/questions/472622/cover-page-coloring-in-context tex.stackexchange.com]
 +
 +
<context source=yes>
 +
\setuppapersize[A6]
 +
 +
\setupbodyfont [palatino]
 +
 +
\definecolor [Top] [h=a5b291]
 +
\definecolor [Bottom] [h=b7c1a7]
 +
\definecolor [TitleColor] [h=96433a]
 +
 +
\define[1]\titlefont{%
 +
  \setcharacterkerning[extrakerning]%
 +
  \cap
 +
  \definedfont[#1]%
 +
  \ignorespaces
 +
}
 +
 +
\starttext
 +
 +
\startMPpage
 +
 +
    StartPage ;
 +
 +
    numeric w ; w := bbwidth(Page) ;
 +
    numeric h ; h := bbheight(Page) ;
 +
 +
    fill (unitsquare xyscaled (w,.8h)) withcolor \MPcolor{Bottom} ;
 +
    fill (unitsquare xyscaled (w,.2h) yshifted .8h) withcolor \MPcolor{Top} ;
 +
    draw (0,.8h) -- (w,.8h) withpen pensquare scaled 2pt withcolor white ;
 +
 +
    draw textext.rt("\definedfont[Serif at 10pt]Author") shifted (.1w,.95h) ;
 +
    draw textext.rt("\titlefont{Serif at 20pt} Cover Page Title") shifted (.1w,.85h) withcolor \MPcolor{TitleColor} ;
 +
    draw textext.rt("\titlefont{SerifBold at 10pt} Subhead Title") shifted (.1w,.75h) withcolor \MPcolor{TitleColor} ;
 +
    draw textext.rt("\titlefont{SerifBold at 10pt} Another subhead") shifted (.1w,.70h) ;
 +
 +
 +
%    picture p; p := externalfigure "matterhorn.png" ;
 +
%    draw p scaled (w/bbwidth p) ;
 +
 +
    StopPage ;
 +
 +
\stopMPpage
 +
 +
\stoptext
 +
</context>
 +
 +
= Poster 01 - proposal for Libre Planet 2021 =
 +
 +
* [https://salsa.debian.org/zleap-guest/libreplanet2021/-/raw/master/ConTeXt_version/poster_libreplanet_2021.pdf PDF]
 +
* [https://salsa.debian.org/zleap-guest/libreplanet2021/-/blob/master/ConTeXt_version/poster_libreplanet_2021.tex Source code]
 +
* Preview
 +
 +
[[File:libreplanet2021.png|500px]]
 +
 +
= Empty or Transparent letters =
 +
 +
This one requires LMTX.
 +
 +
<context source="yes">
 +
\definecolor [ColorHighA] [h=c4a000]
 +
\definecolor [ColorHighB] [h=602217]
 +
\definecolor [ColorLow] [0.8(white)]
 +
 +
\startMPpage
 +
  picture tt ; tt := lmt_outline [
 +
      kind = "fillup",
 +
      text = "\definedfont[name:texgyrepagellabold*default]%
 +
\framed[frame=off,offset=3mm,align=middle,strut=none]
 +
                {MetaPost\\is Fun !\\Aujourd'hui\\Today\\*§ 2020 §*}",
 +
  ] xsized 12cm ;
 +
  path bb ; bb := boundingbox tt ;
 +
  path pp ; pp := bb enlarged 2cm ;
 +
  fill pp
 +
      withshademethod "linear"
 +
      withshadedirection (2.,0.)
 +
      withshadecolors (\MPcolor{ColorHighA}, \MPcolor{ColorHighB}) ;
 +
  for i within tt :
 +
      nofill pathpart i;
 +
  endfor ;
 +
  eofill bb withcolor "gray";
 +
\stopMPpage
 +
</context>
  
  
 
[[Category:Sample documents]]
 
[[Category:Sample documents]]
[[Category:Graphics]]
 
[[Category:Text elements]]
 

Latest revision as of 22:31, 27 December 2020

First one

\setuppapersize[A6]
\setupcolors[state=start]

\startuseMPgraphic{cover}
   StartPage ;
     fill Page withcolor .5green ;
     path p ; p := unitcircle randomized .1 xsized(PaperWidth-1cm) ;
     fill p shifted -center p shifted center Page  withcolor red ;
   StopPage ;
\stopuseMPgraphic

\defineoverlay[cover][\useMPgraphic{cover}]

\starttext

\setupbackgrounds[page][background=cover]

\startstandardmakeup
  \raggedcenter
  \vfill \definedfont[SerifBold at 28pt]\setstrut \strut Penguins in Vietnam
  \blank[2*big] \definedfont[SerifBold at 18pt]\setstrut \strut A Very Short Story
  \vfill
\stopstandardmakeup

\setupbackgrounds[page][background=]

\input tufte

\stoptext

 

Reference to mailing list

Another title page

\setuppapersize[A6]
\definetype[ytyp][color=yellow]

\startbuffer[title]
\type{/(}\ytyp{h}\type{*?)testexpr/io}\par
\type{/t(}\ytyp{a}\type{*?)estexpr/io}\par
\type{/te(}\ytyp{n}\type{*?)stexpr/io}\par
\type{/tes(}\ytyp{s}\type{*?)texpr/io}\par
\type{/test(}\ytyp{h}\type{*?)expr/io}\par
\type{/teste(}\ytyp{a}\type{*?)xpr/io}\par
\type{/testex(}\ytyp{g}\type{*?)pr/io}\par
\type{/testexp(}\ytyp{e}\type{*?)r/io}\par
\type{/testexpr(}\ytyp{n}\type{*?)/io}\par
\stopbuffer

\setupcolors[state=start]

\definelayer
   [TitleGraphic]
   [width=\paperwidth,
    height=\paperheight]

\setlayer
   [TitleGraphic]
   [preset=lefttop]
   {\scale
      [width=\paperwidth,
       height=\paperheight]
      {\framed
         [frame=off,
          offset=overlay,
          background=color,
          backgroundcolor=blue,
          foregroundcolor=red,
          align=normal]
%         {\setuptyping[before=,after=]\typebuffer[title]}}}
         {\getbuffer[title]}}}

\setupbackgrounds[page][background=TitleGraphic]

\starttext

\startstandardmakeup

\stopstandardmakeup

\stoptext

 

Guess who did this one :-) Reference to mailing list

A simple centered cover for a booklet

\setuppapersize[A6]
\setuppagenumbering[alternative=doublesided]


\starttext

\startpagemakeup[align=center,doublesided=no,%
  pagestate=start]% we want to number this

{\bfb This should be the long title, Andreas' solution\par}

\stoppagemakeup

This is the colofon

\chapter{Start}

\input knuth

\stoptext

 

Reference: http://www.ntg.nl/pipermail/ntg-context/2011/063030.html

Or, another solution (which can be tuned at will), which relies on a new feature in MkIV: there is also a layout with the same name as the makeup environment and you can control the margins of your new title page environment with \setuplayout[makeupname][...].


\setuppagenumbering[alternative=doublesided]

%\showframe

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]


\definemakeup[titlepage][pagestate=start,doublesided=no]
\setuplayout[titlepage]
[backspace=2cm,width=108mm] % 148mm is the width, 20 mm of backspace,
                            % 20 mm of outer margin

\starttext

\starttitlepagemakeup
 \raggedcenter
 \bfc This should be the long, long, very long title\par
\stoptitlepagemakeup

This is the colofon

\chapter{Start here on page 3}

\dorecurse{20}{\input tufte\par}

\stoptext

Scaled Full Page Image 1

An elegant option is to extend the makeup mechanism to accept the background key:

   \unprotect
   \appendtoks
     \setupbackgrounds[\v!page][\c!background=\makeupparameter\c!background]
   \to \t_page_makeup_every_setup
   \protect

Then you can use

    \setupexternalfigures[location={local,default,global}]

    \defineoverlay
      [backgroundimage]
      [{\externalfigure[cow.pdf][width=\overlaywidth, height=\overlayheight]}]


    \starttext

    \startstandardmakeup[background=backgroundimage]
      Whatever
    \stopstandardmakeup

    Next

    \stoptext


Scaled Full Page Image 2

Another way to use a full-page image includes:

\setuppapersize[A7,landscape]
\startTEXpage
  \externalfigure
    [cow.pdf]
    [width=\paperwidth, 
     height=\paperheight]
\stopTEXpage

 


A very very simple one

If you are looking for something fancy with graphics, bells, and whistles, this is not for you. However, if you are looking for a very simple cover page with simple code, then read on.

Very often a white paper or some other document needs a cover page. The cover page needs to have a specific (and special) layout, so some layout commands are required. The textual content is limited, and in many cases there is no graphics whatsoever. The cover page below is really plain vanilla:

% --- Cover page

\dontleavehmode
\blank[6cm]

\startalignment[center]
  \ssd Polar Bears of Antarctica \par
  \ssc A Suggestion
\stopalignment

\blank[10cm]

\startalignment[flushright]
\dontleavehmode
\ssb
\bTABLE
  \setupTABLE[r][each][frame=off]
  \bTR \bTD Dr. I.M.Looney \eTD \eTR
  \bTR \bTD Institute of Bad Ecology \eTD \eTR
  \bTR \bTD February 30, 2006 \eTD \eTR
\eTABLE
\stopalignment
\page

 

Analysis of the code

These two commands together make a 6-centimeter blank on the top of the page:

\dontleavehmode
\blank[6cm]

The \dontleavehmode in the beginning is a bit of TeX-magic. TeX has a horizontal and a vertical mode, and if it is in the vertical mode when it encounters a \blank, no blank will appear. The \dontleavehmode forces the right mode.

The title is centered. The actual layout may need some tweaking with e.g. \blank. This one looks reasonably fine on the paper (and bad in the Wiki).

\startalignment[center]
  \ssd Polar Bears of Antarctica \par
  \ssc A Suggestion
\stopalignment

Another measured waste of paper (this time no mode problems):

\blank[10cm]

And then the rest of the information is embedded in a natural TABLE. All the text in the TABLE is left-aligned, but the TABLE itself is right-aligned. So, the longest row dictates the position of the TABLE. The downside of this approach is that if you have a number of cover pages with different authors, the starting position jumps around.

\startalignment[flushright]
\dontleavehmode
\ssb
\bTABLE
  \setupTABLE[r][each][frame=off]
  \bTR \bTD Dr. I.M.Looney \eTD \eTR
  \bTR \bTD Institute of Bad Ecology \eTD \eTR
  \bTR \bTD February 30, 2006 \eTD \eTR
\eTABLE
\stopalignment

N.B.: the \startalignment requires the \dontleavehmode if there is no text immediately after the start command.

And finally, let's finish the page:

\page

And that's it, a very simple cover page. While it may be useful as such, it has several shortcomings. For example, the positions are not absolute, so a change in the title may move the information block in the lower right corner. Using the TABLE is just a show-off. If you do not need the "align-by-rightmost" alignment, \startnarrower[..][..] ... \stopnarrower provides much the same functionality with fewer commands and cleaner code.

Simple example with MetaFun (2019)

from tex.stackexchange.com

\setuppapersize[A6]

\setupbodyfont [palatino]

\definecolor [Top] [h=a5b291]
\definecolor [Bottom] [h=b7c1a7]
\definecolor [TitleColor] [h=96433a]

\define[1]\titlefont{%
  \setcharacterkerning[extrakerning]%
  \cap
  \definedfont[#1]%
  \ignorespaces
}

\starttext

\startMPpage

    StartPage ;

    numeric w ; w := bbwidth(Page) ;
    numeric h ; h := bbheight(Page) ;

    fill (unitsquare xyscaled (w,.8h)) withcolor \MPcolor{Bottom} ;
    fill (unitsquare xyscaled (w,.2h) yshifted .8h) withcolor \MPcolor{Top} ;
    draw (0,.8h) -- (w,.8h) withpen pensquare scaled 2pt withcolor white ;

    draw textext.rt("\definedfont[Serif at 10pt]Author") shifted (.1w,.95h) ;
    draw textext.rt("\titlefont{Serif at 20pt} Cover Page Title") shifted (.1w,.85h) withcolor \MPcolor{TitleColor} ;
    draw textext.rt("\titlefont{SerifBold at 10pt} Subhead Title") shifted (.1w,.75h) withcolor \MPcolor{TitleColor} ;
    draw textext.rt("\titlefont{SerifBold at 10pt} Another subhead") shifted (.1w,.70h) ;


%    picture p; p := externalfigure "matterhorn.png" ;
%    draw p scaled (w/bbwidth p) ;

    StopPage ;

\stopMPpage

\stoptext

 

Poster 01 - proposal for Libre Planet 2021

 

Empty or Transparent letters

This one requires LMTX.

\definecolor [ColorHighA] [h=c4a000]
\definecolor [ColorHighB] [h=602217]
\definecolor [ColorLow] [0.8(white)]

\startMPpage
   picture tt ; tt := lmt_outline [
       kind = "fillup",
       text = "\definedfont[name:texgyrepagellabold*default]%
\framed[frame=off,offset=3mm,align=middle,strut=none]
                {MetaPost\\is Fun !\\Aujourd'hui\\Today\\*§ 2020 §*}",
   ] xsized 12cm ;
   path bb ; bb := boundingbox tt ;
   path pp ; pp := bb enlarged 2cm ;
   fill pp
      withshademethod "linear"
       withshadedirection (2.,0.)
       withshadecolors (\MPcolor{ColorHighA}, \MPcolor{ColorHighB}) ;
   for i within tt :
       nofill pathpart i;
   endfor ;
   eofill bb withcolor "gray";
\stopMPpage