diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-08-04 16:30:40 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-08-04 16:30:40 +0100 |
commit | 3b04d038de59e63237973f15bce7dd7e8a6fb2fb (patch) | |
tree | a9306664b67673b9c8f0fcd88d22c2fb3ff83d5a /presentation.mkiv | |
download | ini22-3b04d038de59e63237973f15bce7dd7e8a6fb2fb.tar.gz ini22-3b04d038de59e63237973f15bce7dd7e8a6fb2fb.zip |
Add initial presentation
Diffstat (limited to 'presentation.mkiv')
-rw-r--r-- | presentation.mkiv | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/presentation.mkiv b/presentation.mkiv new file mode 100644 index 0000000..e6192d2 --- /dev/null +++ b/presentation.mkiv @@ -0,0 +1,45 @@ +\usemodule[present-split] + +\setuppapersize[SW][SW] +\setupbodyfont[ymhgd,12pt] + +\setupbackgrounds + [page] + [background={numberb}] + +\definecolor [ColorOne] [x=E0C2B8] +\definecolor [ColorTwo] [x=ACCDC7] + +\defineoverlay[numberb][\useMPgraphic{numberb}] + +\startuseMPgraphic{numberb} + StartPage ; + picture Left, Right ; + numeric Shift ; Shift := -TextWidth - BackSpace - RightEdgeDistance/2 ; + fill Page withcolor "ColorOne" ; + fill Page leftenlarged Shift withcolor "ColorTwo" ; + if RealPageNumber > 1 : + Left := Right := textext("\bf\pagenumber") ysized 3cm ; + clip Right to boundingbox Right shifted ( bbwidth(Right)/2,0) ; + clip Left to boundingbox Left shifted (-bbwidth(Left) /2,0) ; + draw Left shifted (-Shift,2.25cm) withcolor "ColorTwo" ; + draw Right shifted (-Shift,2.25cm) withcolor "ColorOne" ; + fi ; + StopPage ; +\stopuseMPgraphic + +\setuphead[Topic][number=yes] + +\startdocument + [title=Some Quotes, + subtitle=that you probably know by now] + + \Topic{Tufte} \input tufte + \Topic{Knuth} \input knuth + \Topic{Reich} \input reich + \Topic{Zapf} \input zapf + \Topic{Materie} \input materie + + %Topic{Stork} \input stork + +\stopdocument |