On Wed, 4 Jan 2012, pol stra wrote:
I tried to compile the first example of the simpleslide module’s documentation,
but it doesn’t work:
The recent cleanup in the MkIV has broken parts of the simpleslides
module. As a quick hack, you can put the attached file in your current
directory.
Thomas and I have been thinking of (again) rewriting the presentation
module to make it modular. The current version of this module is at
http://bitbucket.org/adityam/complexslides
It currently has only one style (that I am using at present). There is no
documentation at present, but the following shows the current interface.
\usemodule[complexslides][colorscheme=..., fontscheme=..., extras=]
\starttext
\setvariables
[talk]
[title=...,
shorttitle=...,
author=,
shortauthor=...,
institute=...,
location=...,
]
\startsection[title=]
...
\stopsection
...
\stoptext
Aditya%D \module
%D [ file=simpleslides-s-default,
%Dversion=2009.03.30
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module simpleslides --- Default style setup,
%D author=Thomas A. Schmitz \& Aditya Mahajan,
%D date=\currentdate,
%D copyright={Aditya Mahajan and Thomas A. Schmitz}]
%C
%C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz
%C This file may be distributed under the GNU General Public License v. 2.0.
\writestatus{simpleslides}{loading default style setup}
\startmodule[simpleslides-s-default]
\unprotect
%D This module is the first sub-module that is loaded by
%D \filename{simpleslides}. This sets up the style macros for the module. We
%D choose a rather plain style as the default; separate style sub-modules
%D redefine some internal macros to achieve fancier effects.
%D We start with the page layout. S6 has the ratio of a usual computer screen.
\setuppapersize[S6][S6]
%D We do not want page numbers, but we sometimes want to use the page numbering
%D mechanism, so we make sure pages are counted, but the numbers are not
%D displayed.
\setuppagenumbering[location=]
%D As for the page layout: most of the numbers have been reached by
%D trial and error; I have just taken what seemed to produce the best output.
\setuplayout [width=middle,
margin=0.6cm,
height=middle,
header=0.15cm,
footer=1.35cm,
footerdistance=0.5cm,
topspace=0.5cm,
backspace=1cm,
location=singlesided]
%D We define some other layouts which can be used to change the layout of
%D specific kinds of pages. This module defines three kinds of pages:
%D horizontal, vertical, and title, and we allow the possibility of changing the
%D layout of all three page styles.
\definelayout [simpleslides:layout:horizontal]
\definelayout [simpleslides:layout:vertical]
\definelayout [simpleslides:layout:title]
\definelayout [simpleslides:layout:page]
\setuplayout [simpleslides:layout:page]
[topspace=0cm,
header=0cm,
footer=0cm,
bottomspace=0cm,
backspace=0cm,
cutspace=0cm,
width=middle,
height=middle]
%D We want colored presentations
\setupcolors[state=start]
%D And colored typesetting for \TEX\ code.
\definetype[typeTEX][option=color]
%D Presentations have relatively dense lines, we do not care about underfull
%D lines, but allow emergency stretch.
\setuptolerance[\v!verytolerant,\v!stretch]
%D We use combinations for placing vertical pictures and text side by side, and
%D we want a distance of 3em between both.
\setupcombinations[distance=0.9cm]
%D Next we define some dimensions that are used as nominal values by other
%D macros and the user.
\define\NormalHeight{.830\textheight}
\define\NormalWidth {.476\textwidth}
\define\PictureFrameHeight {.830\textheight}
\define\PictureFrameWidth {.476\textwidth}
%D As we said before, the presentation consists of three kinds of pages: title,
%D horizontal, and vertical. Each page can have a different background; we can
%D switch to a specific background using
%D \starttyping
%D \setupPageBackground[horizontal]
%D \stoptyping
\def\setupPageBackground%
{\dosingleargument\dosetupPageBackground}
\def\dosetupPageBackground[#1]%
{\setups{simpleslides:background:#1}}
%D The backgrounds in all the styles are very similar. So, we define overlays to
%D capture the different features of the backgrounds, and then simply define the
%D overlays in different styles.
\defineoverlay[simpleslides:background:horizontal]
\defineoverlay[simpleslides:background:title]
\defineoverlay[simpleslides:background:vertical]
\defineoverlay[simpleslides:background:ornament]
\defineoverlay[simpleslides:background:page]
\defineoverlay[simpleslides:background:highlight]
[\useMPgraphic{simpleslides:MP:highlight}]%
\definelayer[simpleslides:layer:slidetitle]
[\c!width=\paperwid