Skip to content

Instantly share code, notes, and snippets.

@bdarcus
Created October 19, 2009 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdarcus/213581 to your computer and use it in GitHub Desktop.
Save bdarcus/213581 to your computer and use it in GitHub Desktop.
simple background with context and simpleslides
\usemodule[simpleslides]
\usetypescriptfile[type-optical]
\setuplayout[textwidth=5in]
\definefontfeature
[default][default]
[mode=node,language=dflt,script=latn,onum=yes,tnum=yes,
expansion=quality,protrusion=quality]
\usetypescript[minion]
\setupbodyfont[minion]
\definefont [interludefont][name:minion at 48pt]
\setupalign[hanging, hz]
\setupcolors[textcolor=white]
\startuseMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor black ;
StopPage ;
\stopuseMPgraphic
\defineoverlay
[simpleslides:background:horizontal]
[\useMPgraphic{simpleslides:MP:horizontal}]
\defineoverlay
[simpleslides:background:vertical]
[\useMPgraphic{simpleslides:MP:horizontal}]
\defineoverlay
[simpleslides:background:title]
[\useMPgraphic{simpleslides:MP:horizontal}]
% add 'interlude' macro
\def\Interlude{\dowithpargument\doInterlude}
\def\doInterlude#1%
{\page
\null
\vfill \vfill
\startalignment[center]
\let\\\crlf
\interludefont
\setupinterlinespace[big]
#1
\endgraf
\stopalignment
\vfill \vfill \vfill
\page}
% Now for the rest of the presentation
\setupTitle
[title={Presentation Title},
author={Jane Doe},
date={April, 2010}]
\starttext
\placeTitle
\SlideTitle{A quote}
\input tufte
\Interlude{Test Interlude Heading}
\stoptext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment