From 764e0c19c9e1b388b6c2f003d7f6b91f0d994b1b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 28 Jun 2009 23:32:25 +0000 Subject: context-simpleslides name fix (27jun09) git-svn-id: svn://tug.org/texlive/trunk@13987 c570f23f-e606-0410-a88d-b1316a301751 --- .../third/simple-slides/simpleslides-f-default.tex | 236 ------- .../simple-slides/simpleslides-s-BigNumber.tex | 226 ------ .../simple-slides/simpleslides-s-BottomSquares.tex | 135 ---- .../third/simple-slides/simpleslides-s-Boxed.tex | 173 ----- .../third/simple-slides/simpleslides-s-Ellipse.tex | 129 ---- .../simple-slides/simpleslides-s-Embossed.tex | 172 ----- .../third/simple-slides/simpleslides-s-Framed.tex | 223 ------ .../simple-slides/simpleslides-s-FramedTitle.tex | 161 ----- .../simpleslides-s-HorizontalStripes.tex | 184 ----- .../simple-slides/simpleslides-s-NarrowStripes.tex | 170 ----- .../simple-slides/simpleslides-s-RainbowStripe.tex | 221 ------ .../third/simple-slides/simpleslides-s-Rounded.tex | 224 ------ .../third/simple-slides/simpleslides-s-Shaded.tex | 128 ---- .../simple-slides/simpleslides-s-SideSquares.tex | 157 ----- .../third/simple-slides/simpleslides-s-Split.tex | 195 ------ .../third/simple-slides/simpleslides-s-Sunrise.tex | 206 ------ .../third/simple-slides/simpleslides-s-Swoosh.tex | 235 ------- .../simple-slides/simpleslides-s-ThickStripes.tex | 146 ---- .../third/simple-slides/simpleslides-s-default.tex | 772 -------------------- .../context/third/simple-slides/t-simpleslides.tex | 80 --- .../third/simpleslides/simpleslides-f-default.tex | 240 +++++++ .../simpleslides/simpleslides-s-BigNumber.tex | 226 ++++++ .../simpleslides/simpleslides-s-BottomSquares.tex | 135 ++++ .../third/simpleslides/simpleslides-s-Boxed.tex | 173 +++++ .../third/simpleslides/simpleslides-s-Ellipse.tex | 129 ++++ .../third/simpleslides/simpleslides-s-Embossed.tex | 172 +++++ .../third/simpleslides/simpleslides-s-Framed.tex | 223 ++++++ .../simpleslides/simpleslides-s-FramedTitle.tex | 161 +++++ .../simpleslides-s-HorizontalStripes.tex | 184 +++++ .../simpleslides/simpleslides-s-NarrowStripes.tex | 170 +++++ .../simpleslides/simpleslides-s-RainbowStripe.tex | 221 ++++++ .../third/simpleslides/simpleslides-s-Rounded.tex | 224 ++++++ .../third/simpleslides/simpleslides-s-Shaded.tex | 128 ++++ .../simpleslides/simpleslides-s-SideSquares.tex | 157 +++++ .../third/simpleslides/simpleslides-s-Split.tex | 195 ++++++ .../third/simpleslides/simpleslides-s-Sunrise.tex | 206 ++++++ .../third/simpleslides/simpleslides-s-Swoosh.tex | 235 +++++++ .../simpleslides/simpleslides-s-ThickStripes.tex | 146 ++++ .../third/simpleslides/simpleslides-s-default.tex | 774 +++++++++++++++++++++ .../context/third/simpleslides/t-simpleslides.tex | 80 +++ 40 files changed, 4179 insertions(+), 4173 deletions(-) delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-f-default.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BigNumber.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BottomSquares.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Boxed.tex delete mode 100755 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Ellipse.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Embossed.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Framed.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-FramedTitle.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-HorizontalStripes.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-NarrowStripes.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-RainbowStripe.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Rounded.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Shaded.tex delete mode 100755 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-SideSquares.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Split.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Sunrise.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Swoosh.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-ThickStripes.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-default.tex delete mode 100644 Master/texmf-dist/tex/context/third/simple-slides/t-simpleslides.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-f-default.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BigNumber.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Boxed.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Ellipse.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Embossed.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Framed.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-FramedTitle.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-HorizontalStripes.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-NarrowStripes.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Rounded.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Shaded.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-SideSquares.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Split.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Sunrise.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Swoosh.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-ThickStripes.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-default.tex create mode 100644 Master/texmf-dist/tex/context/third/simpleslides/t-simpleslides.tex (limited to 'Master/texmf-dist/tex/context') diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-f-default.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-f-default.tex deleted file mode 100644 index e8674847b1a..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-f-default.tex +++ /dev/null @@ -1,236 +0,0 @@ -%D \module -%D [ file=simpleslides-f-default, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module simpleslides --- Default font setup, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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 font setup} - -\startmodule[simpleslides-f-default] - -\unprotect - -\setupbodyfontenvironment[default][em=italic] - -%D The fontsize is set via the \type{size}||key; it will be used in numerous -%D setup||commands. In earlier versions, I had used the \tex{processaction} -%D mechanism to define the \tex{NormalSize} and \tex{TitleSize}, but Aditya -%D rightly pointed out that this is somewhat inflexible. I now set the font -%D dimensions directly; \tex{TitleSize} is calculated from \tex{NormalSize}. I -%D do a few tests to get nice sizes. - -\newdimen\simpleslidesNormalSize -\newdimen\simpleslidesTitleSize - -\simpleslidesNormalSize=\moduleparameter{simpleslides}{size}\relax - -\ifdim\simpleslidesNormalSize<16pt% - \simpleslidesTitleSize=1.6\simpleslidesNormalSize\relax% -\else% - \ifdim\simpleslidesNormalSize<20pt% - \simpleslidesTitleSize=1.4142\simpleslidesNormalSize\relax% - \else% - \simpleslidesTitleSize=30pt\relax% - \fi% -\fi% - -\def\NormalSize{\the\simpleslidesNormalSize} -\def\TitleSize {\the\simpleslidesTitleSize} - -\beginOLDTEX -\setupencoding[default=ec] -\endOLDTEX - -%D The bodyfont needs to be defined so \CONTEXT\ can calculate size switches, -%D math formulas, etc. - -\starttypescript [serif] [default] [size] -\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [rm] [default] -\stoptypescript - -\starttypescript [sans] [default] [size] -\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [ss] [default] -\stoptypescript - -\definebodyfontenvironment[\NormalSize] -\definebodyfontenvironment[\TitleSize] - -%D Setups define which font will be used. The module provides simple keywords -%D for using a small set of predefined fonts: Latin Modern, Latin Modern Sans, -%D Adventor (the TeXGyre clone of Gothic), Schola (the TeXGyre clone of -%D Schoolbook), Bonum (the TeXGyre clone of Bookman), Termes (the TeXGyre clone -%D of Times), Pagella (the TeXGyre clone of Palatino), Heros (the TeXGyre clone -%D of Helvetica), and Chancery (the TeXGyre clone of Chancery). Since the -%D definition of typescripts etc. varies according to the \TeX-engine used, we -%D have to branch the code here. This is awkward, but for the time being, I see -%D no other way. - -\startsetups simpleslides:font:LatinModern -\setupbodyfont[\NormalSize] -\stopsetups - -\startsetups simpleslides:font:LatinModernSans -\setupbodyfont[ss,\NormalSize] -\stopsetups - -\beginLUATEX -\usetypescriptfile[type-otf] %Isn't this included by default? -\endLUATEX - -\beginXETEX -\usetypescriptfile[type-otf] -\endXETEX - -\beginOLDTEX -\usetypescriptfile[type-gyr] -\endOLDTEX - -%AM: For all the fonts, I have used traditional names rather than TeX Gyre -%names. - -%D It is difficult to write a typescript that will work with both \MKII\ and -%D \MKIV. If the sixth argument is absent, \CONTEXT\ does the right thing. When -%D the sixth argument is present, e.g., \type{rscale=1.1}, then we also need -%D \type{encoding=something} for the style to work in \MKII. We hope that \MKIV\ -%D simply ignores the \type{encoding} setting. - -\startsetups simpleslides:font:Bookman - \starttypescript[bookman] - \definetypeface [bookman] [rm] [serif] [bookman] [default] - \definetypeface [bookman] [ss] [sans] [adventor] [default] - \definetypeface [bookman] [tt] [mono] [modern] [default] [rscale=1.075] - \definetypeface [bookman] [mm] [math] [pagella] [default] - \stoptypescript - \usetypescript[bookman] - \setupbodyfont[bookman,\NormalSize] -\stopsetups - -\beginLUATEX -%AM: Was Chorus -\startsetups simpleslides:font:Chancery -\starttypescript[serif] [chancery] - \definefontsynonym [ChanceryRoman] [file:texgyrechorus-mediumitalic] [features=default] -\stoptypescript - - \starttypescript [serif] [chancery] - \definefontsynonym [Serif] [ChanceryRoman] [features=default] - \definefontsynonym [SerifItalic] [Serif] - \definefontsynonym [SerifBold] [Serif] - \definefontsynonym [SerifBoldItalic] [Serif] - \definefontsynonym [SerifCaps] [Serif] - \stoptypescript - - \starttypescript [chancery] - \definetypeface [chancery] [rm] [serif] [chancery] [default] - \stoptypescript - \usetypescript[chancery] - \setupbodyfont[chancery,\NormalSize] -\stopsetups -\endLUATEX - -\beginOLDTEX -\startsetups simpleslides:font:Chancery - \loadmapfile[qzc-ec.map] - \starttypescript[serif] [chancery] - \definefontsynonym [ChanceryRoman] [ec-qzcmi] [encoding=ec] - \stoptypescript - - \starttypescript [serif] [chancery] - \definefontsynonym [Serif] [ChanceryRoman] - \definefontsynonym [SerifItalic] [Serif] - \definefontsynonym [SerifBold] [Serif] - \definefontsynonym [SerifBoldItalic] [Serif] - \definefontsynonym [SerifCaps] [Serif] -\stoptypescript - -\starttypescript [chancery] - \definetypeface [chancery] [rm] [serif] [chancery] [encoding=ec] -\stoptypescript -\usetypescript[chancery] -\setupbodyfont[chancery,\NormalSize] -\stopsetups -\endOLDTEX - -\startsetups simpleslides:font:Gothic - \starttypescript[gothic] - \definetypeface [gothic] [rm] [serif] [schola] [default] - \definetypeface [gothic] [ss] [sans] [adventor] [default] - \definetypeface [gothic] [tt] [mono] [modern] [default] - [encoding=\defaultencoding,rscale=1.075] - \definetypeface [gothic] [mm] [math] [palatino] [default] - \stoptypescript - \usetypescript[gothic] - \setupbodyfont[gothic,ss,\NormalSize] -\stopsetups - - -\startsetups simpleslides:font:Helvetica - \usetypescript[postscript] - \setupbodyfont[postscript,ss,\NormalSize] -\stopsetups - - -\beginLUATEX -%AM: Was Pagella -\startsetups simpleslides:font:Palatino - \usetypescript[palatino] - \setupbodyfont[palatino,\NormalSize] -\stopsetups -\endLUATEX - -\beginOLDTEX -\startsetups simpleslides:font:Palatino -\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=texnansi] -\definetypeface [palatino] [tt] [mono] [modern] [default] [encoding=texnansi] -\setupbodyfont[palatino,\NormalSize] -\stopsetups -\endOLDTEX - -\startsetups simpleslides:font:Schoolbook - \starttypescript[schoolbook] - \definetypeface [schoolbook] [rm] [serif] [schola] [default] - \definetypeface [schoolbook] [ss] [sans] [adventor] [default] - \definetypeface [schoolbook] [tt] [mono] [modern] [default] [rscale=1.075] - \definetypeface [schoolbook] [mm] [math] [pagella] [default] - \stoptypescript - \usetypescript[schoolbook] - \setupbodyfont[schoolbook,\NormalSize] -\stopsetups - -\beginLUATEX -\startsetups simpleslides:font:Times - \usetypescript[postscript] - \setupbodyfont[postscript,\NormalSize] -\stopsetups -\endLUATEX - -\beginOLDTEX -\startsetups simpleslides:font:Times - \starttypescript [postscript] - \definetypeface [postscript] [rm] [serif] [times] [default] - \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9] - \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] - \definetypeface [postscript] [mm] [math] [times] [default] - \stoptypescript - \usetypescript[postscript] - \setupbodyfont[postscript,\NormalSize] -\stopsetups -\endOLDTEX - - -\doifsetupselse{simpleslides:font:\moduleparameter{simpleslides}{font}} - {\setups{simpleslides:font:\moduleparameter{simpleslides}{font}}} - {\setups{simpleslides:font:LatinModern}% - \message{There is no setup for - "font=\moduleparameter{simpleslides}{font}". Latin Modern Sans will be - used as a fallback}} - -\protect - -\stopmodule diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BigNumber.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BigNumber.tex deleted file mode 100644 index f0d890b0fb8..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BigNumber.tex +++ /dev/null @@ -1,226 +0,0 @@ -%D \module -%D [ file=simpleslides-s-BigNumber, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Big Number Style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{BigNumber} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading Big Number style} - -\startmodule[simpleslides-s-BigNumber] - -\unprotect - -%D First, we change the page layout to have more space all around - -\setuplayout [width=fit, - margin=2cm, - height=fit, - leftmargindistance=.8cm, - rightmargindistance=0cm, - header=18mm, - footer=0cm, - topspace=.8cm, - backspace=2cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=18mm] -\setuplayout [simpleslides:layout:vertical] [header=0mm] -\setuplayout [simpleslides:layout:title] - -\setuplayer[simpleslides:layer:slidetitle] - [width=\paperwidth, - height=\paperheight,x=20mm] - -%D Next we a generic frames, which will be used by other macros to -%D get a consistent look and feel. - -\defineframed[simpleslides:framed:small] - [frame=off,offset=0pt, - width=1.7cm,align=middle] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D This module has two color schemes, a blue one and a red one. - -\startsetups simpleslides:setups:blue -\definecolor [simpleslides:contrastcolor] [r=0.8,g=0.8,b=0.9] -\definecolor [simpleslides:backgroundcolor] [s=.88] -\definecolor [simpleslides:textcolor] [s=0] -\stopsetups - -\startsetups simpleslides:setups:red -\definecolor [simpleslides:contrastcolor] [r=0.45,] -\definecolor [simpleslides:backgroundcolor] [s=.18] -\definecolor [simpleslides:textcolor] [s=1] -\stopsetups - -%D Now we choose the scheme that the user asked for - -\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} - {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} - {\setups{simpleslides:setups:blue}} - -\setupcolors[textcolor={simpleslides:textcolor}] - - -%D The characteristic feature of this module is that the page number is drawn in -%D big letters on the slide. First we define the font used to draw the number. -%D The is a bit verbose since \MKII\ and \MKIV\ have different ways of loading -%D fonts. - -\beginOLDTEX -\loadmapfile[qhv-ec.map] -\definefontsynonym [BigNumberFont] [ec-qhvb] -\endOLDTEX - -\beginXETEX -\loadmapfile[qhv-ec.map] -\definefontsynonym [BigNumberFont] [ec-qhvb] -\endXETEX - -\beginLUATEX -\definefontsynonym [BigNumberFont] [name:texgyreherosbold] -\endLUATEX - -\definefont [NumberFont] [BigNumberFont at 30pt] - - -%D We use \METAPOST\ to draw backgrounds. First, we define a few helper macros -%D to place text inside \METAPOST - -\definetextext[simpleslides:sometxt:left] {\TaspresentSometxtLeft} -\definetextext[simpleslides:sometxt:right]{\TaspresentSometxtRight} - -\unexpanded\def\TaspresentSometxtLeft#1% - {\getvalue{simpleslides:framed:small} - {\color[simpleslides:contrastcolor] - {\NumberFont #1}}} - -\unexpanded\def\TaspresentSometxtRight#1% - {\getvalue{simpleslides:framed:small} - {\color[simpleslides:backgroundcolor] - {\NumberFont #1}}} - -%D Now we define a \METAPOST| graphic that draws the number. The exact -%D dimensions have been found by trial and error. - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; -save Left, Right ; -picture Left, Right ; - -Left := \sometxt [simpleslides:sometxt:left]{\folio} ysized 6cm; -Right := \sometxt[simpleslides:sometxt:right]{\folio} ysized 6cm; - -save LeftBox, RightBox ; -path LeftBox, RightBox ; - -save split ; numeric split ; -split := if PageNumber < 10 : 1/2 else : 2/3 fi ; - -LeftBox := llcorner Left -- split[llcorner Left, lrcorner Left] - -- split[ulcorner Left, urcorner Left] -- ulcorner Left --cycle ; - -RightBox := lrcorner Right -- split[lrcorner Right, llcorner Right] - -- split[urcorner Right, ulcorner Right] -- urcorner Right --cycle ; - -if PageNumber >= 10 : -RightBox := RightBox shifted split[lrcorner Right, llcorner Right] ; -fi; - -clip Left to LeftBox ; -clip Right to RightBox ; - -save corner; pair corner ; -corner := lrcorner Field[Text][Text] shifted (.2cm,-1cm) ; % same as x2 - -labeloffset := 0bp; - -label.ulft(Left, corner) ; -label.urt (Right, corner) ; - -StopPage ; -\stopuseMPgraphic - -%D We also use \METAPOST\ to draw the horizontal and vertical page backgrounds. - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -fill Page withcolor \MPcolor{simpleslides:contrastcolor} ; -fill Field[Text][Text] enlarged 0.2cm - withcolor \MPcolor{simpleslides:backgroundcolor} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:vertical} -StartPage ; -fill Page withcolor \MPcolor{simpleslides:contrastcolor} ; - -z1 = urcorner Field[Text][Text] shifted (.2cm,0) ; -z2 = lrcorner Field[Text][Text] shifted (.2cm,-.2cm) ; -z3 = z1 shifted (-8.05cm,0) ; -z4 = (x3,y2) ; - -save Main ; -path Main ; -Main := z1 -- z2 -- z4 -- z3 --cycle ; - -fill Main withcolor \MPcolor{simpleslides:backgroundcolor} ; -StopPage ; -\stopuniqueMPgraphic - - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D The slide title is placed on the top of the text area. The layer takes care -%D of the positioning. - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!height=2.5cm, - \c!command=\doSlideTitle] - - -%D Squares are used as the first level of itemizations - -\definesymbol[1][$\square$] -\setupitemize[1][inmargin] -%\setupitemize[each][joinedup,unpacked] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BottomSquares.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BottomSquares.tex deleted file mode 100644 index 77633d23c69..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-BottomSquares.tex +++ /dev/null @@ -1,135 +0,0 @@ -%D \module -%D [ file=simpleslides-s-BottomSquares, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- BottomSquares style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{BottomSquares} style for the presentation -%D module. It is loaded at runtime. This minimalistic design is inspired by a -%D presentation Taco gave at EuroTeX 2006. - -\writestatus{simpleslides}{loading module BottomSquares} - -\startmodule[simpleslides-s-BottomSquares] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - height=middle, - margin=0cm, - height=fit, - margindistance=0cm, - header=0cm, - footer=0cm, - topspace=1cm, - bottomspace=2cm, - backspace=1.5cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=1.4cm] -\setuplayout [simpleslides:layout:vertical] [header=0cm] -\setuplayout [simpleslides:layout:title] [header=0cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=15mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.5\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.5\textwidth} - -% %D We define a generic frame that is used by the slide title. -% -% \defineframed[simpleslides:framed] -% [frame=off,offset=0pt, -% top=\vss,bottom=\vss] - - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3] -\definecolor [simpleslides:variantcolor] [s=.3] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We let \METAPOST\ calculate the background: - -%AM: Why not implement this as an interaction bar? - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -save diff ;numeric diff; -diff = .3cm ; - -save w; numeric w; -w = xpart (lrcorner Field[Text][Text] - llcorner Field[Text][Text]) - diff ; - -save factor; numeric factor; -factor = w/(NOfPages - 1) ; - -save p; path p ; -p = unitsquare xyscaled (diff,diff) - shifted (xpart llcorner Field[Text][Text],0.85cm) ; - -for i = 1 upto NOfPages: - if PageNumber = i: - fill p xyscaled (0,2) shifted ( (i-1)*factor,-diff-0.85cm) - withcolor \MPcolor{simpleslides:contrastcolor} ; - else : - fill p shifted ( (i-1)*factor, 0) - withcolor \MPcolor{simpleslides:variantcolor} ; - fi ; -endfor ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We want the title information to be colored - -\setupTitle - [\c!headcolor={simpleslides:contrastcolor}] - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:contrastcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=3cm, - \c!after=] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Boxed.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Boxed.tex deleted file mode 100644 index cec57643210..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Boxed.tex +++ /dev/null @@ -1,173 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Boxed, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Boxed Style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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. - -%D This file provides the \quotation{Boxed} style for the presentation -%D module. It is loaded at runtime. The look of this style was inspired by the -%D screen version of the Metafun manual. - -\writestatus{simpleslides}{loading style Boxed} - -\startmodule[simpleslides-s-Boxed] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=2cm, - height=fit, - leftmargindistance=1cm, - rightmargindistance=0cm, - header=2.8cm, - footer=1cm, - topspace=.7cm, - backspace=2cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=2.8cm] -\setuplayout [simpleslides:layout:vertical] [header=1.4cm] -\setuplayout [simpleslides:layout:title] [header=1.4cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=20mm, - y=15mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D We define our colorscheme: - -\definecolor [simpleslides:backgroundcolor] [s=.75] -\definecolor [simpleslides:altbackgroundcolor] [s=.2] -\definecolor [simpleslides:contrastcolor] [r=.55, g=0, b=.04] -\definecolor [simpleslides:variantcolor] [yellow] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; - -save p; path p[] ; - -save a ; numeric a ; -a := 1.5cm ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z1 = ulcorner Page shifted (a,0) ; z2 = urcorner Page shifted (-a,0) ; -z3 = urcorner Page shifted (0,-a); z4 = lrcorner Page shifted (0,a) ; -z5 = (x2,0) ; z6 = (x1,0) ; -z7 = (0,y4) ; z8 = (0,y3) ; -z9 = (x1,y3) ; z10 = (x2,y3) ; -z11 = (x2,y4) ; z12 = (x1,y4) ; - -p[1] = z9 -- z12 -- z7 -- z8 -- cycle ; -p[2] = z10 -- z3 -- z4 -- z11 -- cycle ; -p[3] = z12 -- z11 -- z5 -- z6 -- cycle ; -p[4] = z9 -- z10 -- z2 -- z1 -- cycle ; - -fill p[1] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; -fill p[2] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; -fill p[3] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; -fill p[4] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; - -pickup pencircle scaled 8 pt ; - -draw z1 -- z6 withcolor \MPcolor{simpleslides:contrastcolor} ; -draw z2 -- z5 withcolor \MPcolor{simpleslides:contrastcolor} ; -draw z7 -- z4 withcolor \MPcolor{simpleslides:contrastcolor} ; -draw z8 -- z3 withcolor \MPcolor{simpleslides:contrastcolor} ; - -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage - -save a; numeric a; -a := 1.5cm ; - -save factor, allpages, shift ; -numeric factor, allpages, shift ; - -factor :=(NOfPages div 18) + 1 ; -allpages := if NOfPages <= 18 : NOfPages elseif odd NOfPages : NOfPages + 1 - else : NOfPages fi ; - -shift := factor * (PaperWidth -2a)/allpages ; - -save p ;path p ; -p := fullcircle scaled 4mm shifted (a + shift/2, a/2) ; - -for i = 1 upto allpages/factor : - fill p shifted ( (i-1)*shift, 0) - if i - 1 = floor ((PageNumber - 1)/factor) : - withcolor \MPcolor{simpleslides:variantcolor} ; - else : - withcolor \MPcolor{simpleslides:backgroundcolor} ; - fi ; -endfor ; - - -StopPage -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D The title page: - -\setupTitle - [\c!headcolor={simpleslides:contrastcolor}] - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:contrastcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=2.3cm, - \c!after=] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][inmargin][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Ellipse.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Ellipse.tex deleted file mode 100755 index 09657f7ccc2..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Ellipse.tex +++ /dev/null @@ -1,129 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Ellipse, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module Ellipse, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{Ellipse} style for the presentation -%D module. The design is inspired by Hans's "funny" presentation module -%D (s-pre-03). It is loaded at runtime. - -\writestatus{simpleslides}{loading Ellipse style} - -\startmodule[simpleslides-s-Ellipse] - -\unprotect - -%D First, we change the page layout. - -\setuplayout [width=fit, - height=fit, - margin=0cm, - header=1.2cm, - footer=0cm, - topspace=1.8cm, - backspace=1.5cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=15mm] -\setuplayout [simpleslides:layout:vertical] [header=0mm] -\setuplayout [simpleslides:layout:title] [header=0mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.5\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.5\textwidth} - -\setuplayer - [simpleslides:layer:slidetitle] - [y=8mm, - x=15mm] - -%D We define our color scheme: - -\definecolor[simpleslides:variantcolor] [s=0] -\definecolor[simpleslides:backgroundcolor] [s=.8] -\definecolor[simpleslides:contrastcolor] [r=.5,g=0,b=0] -\definecolor[simpleslides:altcontrastcolor] [r=.9,g=0,b=0] -\definecolor[simpleslides:itemize:color] [r=.5] - -%D We let Metapost calculate the background: - -\startuseMPgraphic{simpleslides:MP:horizontal} -StartPage ; - fill Page withcolor \MPcolor{simpleslides:variantcolor} ; - save p ; path p ; - p := Page enlarged (-15pt,-15pt) superellipsed .9 ; - fill p withcolor \MPcolor{simpleslides:backgroundcolor} ; - pickup pencircle scaled 20pt ; - draw p withcolor \MPcolor{simpleslides:contrastcolor} ; -StopPage ; -\stopuseMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; - save p ; path p ; - p := Page enlarged (-15pt,-15pt) superellipsed .9 ; - pickup pencircle scaled 20pt ; - save pa, pb; pair pa, pb ; - if PageNumber>1: - pa := point (3 + (6*PageNumber) / NOfPages) of p ; - pb := point (3 + (6*(PageNumber-1)) / NOfPages) of p ; - draw (p cutafter pa) cutbefore pb - withcolor \MPcolor{simpleslides:altcontrastcolor} ; - fi ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We want the title to placed in color. - -\setupTitle[\c!headcolor={simpleslides:contrastcolor}] - -%D We want the slide title on the top - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!align=\v!center, - \c!height=3.5cm, - \c!color=simpleslides:contrastcolor] - -\setupcombinations[distance=0cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][\c!color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Embossed.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Embossed.tex deleted file mode 100644 index e8e24f39bd4..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Embossed.tex +++ /dev/null @@ -1,172 +0,0 @@ -%D \module -%D [ file=simpleslides-s--Embossed, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Embossed style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{embossed} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading module embossed} - -\startmodule[simpleslides-s-Embossed] - -\unprotect -%D The page layout: - -\setuplayout [width=fit, - margin=1.3cm, - height=fit, - header=1cm, - footer=1cm, - topspace=10mm, - backspace=2cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=1cm] -\setuplayout [simpleslides:layout:vertical] [header=0cm] -\setuplayout [simpleslides:layout:title] [header=0cm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.94\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.94\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=20mm,y=2mm] - -%D Next we define a generic frame - -\defineframed[simpleslides:framed] - [frame=off,offset=0pt, - top=\vss,bottom=\vss] - -\defineframed[simpleslides:framed:big] - [frame=off,offset=0pt,strut=no, - width=\textwidth,height=2cm, - top=\vss,bottom=\vss] - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [r=1,g=1,b=.8] -\definecolor [simpleslides:variantcolor] [r=.6,g=.2,b=.2] -\definecolor [simpleslides:specialcolor:1] [r=.4,g=.2,b=.2] -\definecolor [simpleslides:specialcolor:2] [r=.7,g=.2,b=.2] -\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.5] -\definecolor [simpleslides:framecolor] [s=.4] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D This module write "Made with ConTeXt" in bold at the bottom. We first define -%D a font for it. - -\beginOLDTEX -\loadmapfile[qhv-ec.map] -\definefontsynonym [Embossed] [ec-qhvb] -\endOLDTEX - -\beginXETEX -\loadmapfile[qhv-ec.map] -\definefontsynonym [Embossed] [ec-qhvb] -\endXETEX - -\beginLUATEX -\definefontsynonym [Embossed] [name:texgyreherosbold] -\endLUATEX - -\definefont[EmblemFont] [Embossed at 30pt] - -%D The emblem string is configurable. - -\setuplabeltext [\s!en] [simpleslidesemblem={Made with \CONTEXT}] - -\definetextext[simpleslides:sometxt:left] {\TaspresentSometxtLeft} -\definetextext[simpleslides:sometxt:right]{\TaspresentSometxtRight} - -\unexpanded\def\TaspresentSometxtLeft#1% - {\getvalue{simpleslides:framed:big} - {\EmblemFont\color[simpleslides:specialcolor:1] - {#1}}} - -\unexpanded\def\TaspresentSometxtRight#1% - {\getvalue{simpleslides:framed:big} - {\EmblemFont\color[simpleslides:specialcolor:2] - {#1}}} - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; - -save a, b; -numeric a; a = 2cm ; -numeric b; b = 0.9cm ; - -z1 = llcorner Page shifted (0,a) ; -z2 = lrcorner Page shifted (0,a) ; - -save bottom ; path bottom ; -bottom = llcorner Page -- z1 -- z2 -- lrcorner Page -- cycle ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill bottom withcolor \MPcolor{simpleslides:variantcolor} ; - -draw Page withcolor \MPcolor{simpleslides:framecolor} - withpen pencircle scaled 12pt ; -draw topboundary bottom withcolor \MPcolor{simpleslides:framecolor} - withpen pencircle scaled 6pt ; - - -draw \sometxt[simpleslides:sometxt:left]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage} - shifted (1.96cm,0.04cm) ; - -draw \sometxt[simpleslides:sometxt:right]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage} - shifted (2cm,0) ; - -StopPage ; -\stopuseMPgraphic - - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - - -%D We want the presentation title to be in color - -\setupTitle[\c!title\c!color=simpleslides:contrastcolor] - -%D We also want the slide title in a framed box. - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!color={simpleslides:contrastcolor}, - \c!width=\textwidth, - \c!height=2cm, - \c!align=\v!middle] - - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Framed.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Framed.tex deleted file mode 100644 index 4cde7723962..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Framed.tex +++ /dev/null @@ -1,223 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Framed, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Framed Style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{Framed} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading style Framed} - -\startmodule[simpleslides-s-Framed] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=0.6cm, - height=fit, - header=2.1cm, - footer=1.35cm, - footerdistance=0.5cm, - topspace=0.5cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=2.1cm,backspace=1cm] -\setuplayout [simpleslides:layout:vertical] [header=0cm,backspace=1cm] -\setuplayout [simpleslides:layout:title] [header=0cm,backspace=0.5cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=10mm,y=3mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {.975\textheight} -\define\NormalWidth {.485\textwidth} -\define\PictureFrameHeight {.975\textheight} -\define\PictureFrameWidth {.485\textwidth} - - -%D We define our colors: - -\definecolor [simpleslides:backgroundcolor] [r=.85, g=.85, b=.85] -\definecolor [simpleslides:framecolor] [r=.42, g=.42, b=.7] -\definecolor [simpleslides:contrastcolor] [r=0, g=0, b=.5] -\definecolor [simpleslides:variantcolor] [r=0, g=0, b=1] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We let \METAPOST\ calculate the background. This style have two options for -%D ornaments, square or stripes. We define both, and then choose one depending -%D on the user's choice. - -\startuseMPgraphic{simpleslides:MP:ornament:square} -StartPage; - -save a,b,c,p; -numeric a; a = 0.955cm ; -numeric b; b = 0.52cm ; -numeric c; c = 0.8cm ; -path p[] ; - -for i=1 upto 11: - p[i] = unitsquare xyscaled (a,a) shifted (b+2*(i-1)*a, c) ; - fill p[i] withcolor ((i-1)/10)[\MPcolor{simpleslides:contrastcolor}, - \MPcolor{simpleslides:variantcolor}] ; -endfor ; - -if NOfPages >= 12: - save n ; numeric n ; - n := (10*(PageNumber - 1) div (NOfPages - 1)) + 1; - - draw llcorner p[n] -- urcorner p[n] - withpen pencircle scaled 2pt - withcolor \MPcolor{simpleslides:backgroundcolor} ; -fi ; - -StopPage; -\stopuseMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament:stripe} -StartPage; - -save p ; -path p[] ; - -p[1] := unitsquare xyscaled(0.95*OverlayWidth,1cm) shifted (0.52cm,0.8cm) ; - -linear_shade(p[1],0, - \MPcolor{simpleslides:backgroundcolor}, - \MPcolor{simpleslides:contrastcolor}) ; - -save i ; -numeric i; i = PageNumber/NOfPages ; - -p[2] = ulcorner p[1] -- urcorner p[1] ; -p[3] = llcorner p[1] -- lrcorner p[1] ; - -save o; -pair o[] ; - -o[1] := point i along p[2] ; -o[2] := point i along p[3] ; - -p[4] = ulcorner p[1] -- o[1] -- o[2] -- llcorner p[1] -- cycle ; - -clip currentpicture to p[4] ; - -StopPage; -\stopuseMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:vertical} -StartPage ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -draw Page enlarged (-.2cm) - withpen pencircle scaled 4pt - withcolor \MPcolor{simpleslides:framecolor} ; - -draw unitsquare - xyscaled(0.448*PaperWidth,0.815*PaperHeight) - shifted (0.528*PaperWidth, 0.15*PaperHeight) - withpen pencircle scaled 2pt - withcolor \MPcolor{simpleslides:framecolor} ; - -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -draw Page enlarged (-.2cm) - withpen pencircle scaled 4pt - withcolor \MPcolor{simpleslides:framecolor} ; - -draw unitsquare - xyscaled(0.95*PaperWidth,0.7*PaperHeight) - shifted (0.025*PaperWidth, 0.15*PaperHeight) - withpen pencircle scaled 2pt - withcolor \MPcolor{simpleslides:framecolor} ; - -StopPage; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -%D We define the ornament according to user's choice. - -\startsetups simpleslides:alternative:square -\defineoverlay - [simpleslides:background:ornament] - [\uniqueMPgraphic{simpleslides:MP:ornament:square}] -\stopsetups - -\startsetups simpleslides:alternative:stripe -\defineoverlay - [simpleslides:background:ornament] - [\uniqueMPgraphic{simpleslides:MP:ornament:stripe}] -\stopsetups - -\startsetups simpleslides:alternative:empty - \setups{simpleslides:alternative:square} -\stopsetups - -%D Now we activate the user's choice - -\setups{simpleslides:alternative:\moduleparameter{simpleslides}{alternative}} - -%D The title is typed in a slightly larger font. - -\setupTitle - [\c!title\c!color={simpleslides:contrastcolor}, - \c!title\c!style=\tfc, - \c!author\c!color={simpleslides:contrastcolor}, - \c!author\c!style=\tfa, - \c!date\c!color={simpleslides:contrastcolor}, - \c!date\c!style=\tfa] - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:contrastcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=2.1cm, - \c!after=] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-FramedTitle.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-FramedTitle.tex deleted file mode 100644 index 6c6c3abe8a7..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-FramedTitle.tex +++ /dev/null @@ -1,161 +0,0 @@ -%D \module -%D [ file=simpleslides-s-FramedTitle, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- FramedTitle style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{FramedTitle} style for the presentation -%D module. It is loaded at runtime. The most interesting part is the scratch -%D counter at the bottom of the page, which is explained in the metafun manual. - -\writestatus{simpleslides}{loading style FramedTitle} - -\startmodule[simpleslides-s-FramedTitle] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=2.2cm, - footer=.8cm, - topspace=.6cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=2.2cm] -\setuplayout [simpleslides:layout:vertical] [header=0.5cm] -\setuplayout [simpleslides:layout:title] [header=0.5cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=10mm,y=2mm] - - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -\setupframed[simpleslides:framed] - [corner=round, - background=color,backgroundcolor={simpleslides:contrastcolor}] - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [s=.9] -\definecolor [simpleslides:variantcolor] [s=.7] -\definecolor [simpleslides:contrastcolor] [r=.5] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; - -save a,b ; -numeric a,b ; -a = 7mm ; -b = PaperWidth/2 - NOfPages * 2.5pt ; - -save p,q; path p,q ; -p =((0,5mm) -- (1mm,11mm)) shifted (b,0) ; -q =((-8mm,5mm) -- (0,11mm) ) shifted (b,0) ; - -pickup pencircle scaled 3pt ; -for i := NOfPages-1 downto 1: - draw (if i mod 5 = 0 : q else : p fi) - shifted (i*5pt, 0pt) - withcolor if i < PageNumber : \MPcolor{simpleslides:contrastcolor} - else : \MPcolor{simpleslides:variantcolor} - fi ; -endfor ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We want the title to placed in a framed box. We redefine all the keys of -%D \type{\setupTitle}, so that the module is easier to maintain. - -\setupTitle - [\c!title=, - \c!author=, - \c!date=\currentdate, - \c!headstyle=, - \c!headcolor={simpleslides:backgroundcolor}, - \c!align=\v!middle, - \c!before={\vfill\getvalue{simpleslides:framed} - [\c!width=\textwidth,\c!height=.75\textheight, - \c!align=\v!middle, \c!strut=\v!no] - \bgroup}, - \c!after={\egroup\vfill}, - \c!title\c!style={\switchtobodyfont[\TitleSize]}, - \c!title\c!color=, - \c!title\c!align=,%\v!middle, - \c!author\c!style=, - \c!author\c!color=, - \c!author\c!align=,%\v!middle, - \c!date\c!style=, - \c!date\c!color=, - \c!date\c!align=,%\v!middle, - \c!before\c!title=, - \c!before\c!author=, - \c!before\c!date=, - \c!after\c!title={\blank[1*line]}, - \c!after\c!author={\blank[2*line]}, - \c!after\c!date=] - -%D We also want the slide title in a framed box. - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!height=2.1cm, - \c!width=\textwidth, - \c!color=simpleslides:backgroundcolor] - - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color=simpleslides:contrastcolor] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-HorizontalStripes.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-HorizontalStripes.tex deleted file mode 100644 index 025b74534e0..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-HorizontalStripes.tex +++ /dev/null @@ -1,184 +0,0 @@ -%D \module -%D [ file=simpleslides-s-HorizontalStripes, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module HorizontalStripes, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \filename{HorizontalStripes} style for the -%D presentation module. It is loaded at runtime. The look of this style was -%D inspired by the \quotation{Copenhagen} theme of the \LaTeX\ {\tt beamer} -%D package. - -\writestatus{simpleslides}{loading HorizontalStripes style} - -\startmodule[simpleslides-s-HorizontalStripes] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=2.73cm, - footer=0.9cm, - topspace=0cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=2.73cm] -\setuplayout [simpleslides:layout:vertical] [header=0.75cm] -\setuplayout [simpleslides:layout:title] [header=0cm] - -%D In this style, we don't want the ornament background for vertical slides: - -\startsetups simpleslides:background:vertical - \setuplayout[simpleslides:layout:vertical] - \setupbackgrounds[\v!page] - [background={simpleslides:background:vertical}] -\stopsetups - - - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D This module has three color schemes, blue, green and red. - -\startsetups simpleslides:setups:blue -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:framecolor] [r=.58,g=.58,b=.82] -\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.73] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] -\stopsetups - -\startsetups simpleslides:setups:red -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:framecolor] [r=.82,g=.58,b=.58] -\definecolor [simpleslides:contrastcolor] [r=.73,g=.2,b=.2] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] -\stopsetups - -\startsetups simpleslides:setups:green -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:framecolor] [r=.58,g=.82,b=.58] -\definecolor [simpleslides:contrastcolor] [r=.2,g=.73,b=.2] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] -\stopsetups - -%D Now we choose the scheme that the user asked for - -\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} - {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} - {\setups{simpleslides:setups:blue}} - -%D We let Metapost calculate the background: - -\startuseMPgraphic{simpleslides:MP:common} -save a ; numeric a ; -a = 1.5mm ; - -save p; path p[] ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z1 = ulcorner Page shifted (0,-a) ; -z2 = urcorner Page shifted (0,-a) ; -z3 = llcorner Page shifted (0,a) ; -z4 = lrcorner Page shifted (0,a) ; - -p[1] = ulcorner Page -- z1 -- z2 -- urcorner Page -- cycle ; -p[3] = llcorner Page -- z3 -- z4 -- lrcorner Page -- cycle ; -p[4] = p[3] shifted (0,.75cm) ; - -fill p[1] withcolor \MPcolor{simpleslides:framecolor} ; -fill p[3] withcolor \MPcolor{simpleslides:framecolor} ; -fill p[4] withcolor \MPcolor{simpleslides:framecolor} ; -\stopuseMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:vertical} -StartPage ; -\includeMPgraphic{simpleslides:MP:common} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -\includeMPgraphic{simpleslides:MP:common} ; - -p[2] = p[1] shifted (0,-2cm) ; -fill p[2] withcolor \MPcolor{simpleslides:framecolor} ; -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:vertical}] - -%D We define the footer - -\setupfooter[\c!color=simpleslides:contrastcolor, - \c!style={\switchtobodyfont[10pt]}, - \c!strut=\v!yes] - -\setupfootertexts[{\framed[\c!frame=\v!off, - \c!height=0.65cm, - \c!width=\textwidth] - {\simpleslidestitleparameter{title} - \hfill \pagenumber\ of \lastpage}}] - - -%D this sets up the title page: - -\setupTitle - [\c!title\c!color={simpleslides:contrastcolor}, - \c!author\c!color={simpleslides:contrastcolor}, - \c!date\c!color={simpleslides:contrastcolor}] - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:contrastcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=2.2cm, - \c!after=] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-NarrowStripes.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-NarrowStripes.tex deleted file mode 100644 index 471eb208e31..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-NarrowStripes.tex +++ /dev/null @@ -1,170 +0,0 @@ -%D \module -%D [ file=simpleslides-s-NarrowStripes, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module NarrowStripes, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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. - -%D This file provides the \quotation{NarrowStripes} style for the presentation -%D module. It is loaded at runtime. The theme for this style is inspired by the -%D \quotation{Berkeley} theme of the \LaTeX\ Beamer package. - -\writestatus{simpleslides}{loading NarrowStripes style} - -\startmodule[simpleslides-s-NarrowStripes] - -\unprotect - -%D First, we change the page layout. - -\setuplayout [width=fit, - leftmargin=1.5cm, - rightmargin=0cm, - leftmargindistance=1.8cm, - rightmargindistance=0pt, - height=fit, - header=2.5cm, - footer=0cm, - topspace=.4cm, - backspace=3.2cm, - cutspace=3.7cm, - bottomspace=0cm, - bottom=0pt, - location=singlesided] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [width=\paperwidth, - height=\paperheight, - x=32mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D This module has three color schemes, blue, green and red. - -\startsetups simpleslides:setups:blue -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:altcontrastcolor] [r=0,g=0,b=1] -\definecolor [simpleslides:variantcolor] [r=.69,g=.69,b=.97] -\definecolor [simpleslides:contrastcolor] [b=.8] -\definecolor [simpleslides:itemize:color] [b=.8] -\stopsetups - -\startsetups simpleslides:setups:red -\definecolor [simpleslides:itemize:color] [r=.8] -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:altcontrastcolor] [r=1] -\definecolor [simpleslides:variantcolor] [b=.69,g=.69,r=.97] -\definecolor [simpleslides:contrastcolor] [r=.8] -\stopsetups - -\startsetups simpleslides:setups:green -\definecolor [simpleslides:itemize:color] [g=.4] -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:altcontrastcolor] [g=.4] -\definecolor [simpleslides:variantcolor] [b=.68,r=.68,g=.79] -\definecolor [simpleslides:contrastcolor] [g=.4] -\stopsetups - -%D Now we choose the scheme that the user asked for - -\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} - {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} - {\setups{simpleslides:setups:blue}} - -%D We let Metapost calculate the background: - -\definetextext[simpleslides:sometxt:text] {\TaspresentSometxtText} - -\unexpanded\def\TaspresentSometxtText#1% - {\framed[\c!frame=\v!off, \c!width=2.25cm, \c!height=2.25cm] - {\switchtobodyfont[12pt]\color[simpleslides:contrastcolor]{#1}}} - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; - -save a,b,c ; numeric a,b,c ; -a = 2.25cm ; -b = 0.4 cm ; -c = PaperHeight - a/2 ; - -z1 = ulcorner Page shifted (0,-a) ; -z2 = ulcorner Page shifted (0,-a-b) ; -z3 = urcorner Page shifted (0,-a-b) ; -z4 = urcorner Page shifted (0,-a) ; -z5 = ulcorner Page shifted (a,0) ; -z6 = ulcorner Page shifted (a+b,0) ; -z7 = llcorner Page shifted (a+b,0) ; -z8 = llcorner Page shifted (a,0) ; -z9 = ulcorner Page shifted (a,-a) ; -z10 = ulcorner Page shifted (a+b,-a) ; -z11 = ulcorner Page shifted (a+b,-a-b) ; -z12 = ulcorner Page shifted (a,-a-b) ; - -save p; path p[] ; -p[1] = z1 -- z2 -- z3 -- z4 -- cycle ; -p[2] = z5 -- z6 -- z7 -- z8 -- cycle ; -p[3] = z9 -- z10 --z11 -- z12 -- cycle ; - -linear_shade(p[1],1, - \MPcolor{simpleslides:backgroundcolor}, - \MPcolor{simpleslides:altcontrastcolor}) ; - -linear_shade(p[2],2, - \MPcolor{simpleslides:altcontrastcolor}, - \MPcolor{simpleslides:backgroundcolor}) ; - -fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; - -if PageNumber > 1: - draw \sometxt[simpleslides:sometxt:text]{\folio} shifted (0,PaperHeight-a) ; -fi ; -StopPage ; -\stopuseMPgraphic - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D this sets up the title page: - -\setupTitle - [\c!title\c!color={simpleslides:contrastcolor}, - \c!author\c!color={simpleslides:contrastcolor}, - \c!date\c!color={simpleslides:contrastcolor}] - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:contrastcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=2.25cm, - \c!after=] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][inmargin][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-RainbowStripe.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-RainbowStripe.tex deleted file mode 100644 index 5ca00ec6b2e..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-RainbowStripe.tex +++ /dev/null @@ -1,221 +0,0 @@ -%D \module -%D [ file=simpleslides-t-RainbowStripe, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module RainbowStripe, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{RainbowStripe} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading RainbowStripe style} - -\startmodule[simpleslides-s-RainbowStripe] - -\unprotect - -%D First, we provide the page layout. - -\setuplayout [width=fit, - margin=1.5cm, - height=fit, - header=11mm, - footer=0cm, - topspace=15mm, - backspace=2cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=11mm] -\setuplayout [simpleslides:layout:vertical] [header=0mm] -\setuplayout [simpleslides:layout:title] [header=0mm] - - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -\setuplayer - [simpleslides:layer:slidetitle] - [y=12mm, - x=20mm] - -%D We define our colorscheme: - -\definecolor [simpleslides:backgroundcolor] [s=.88] -\definecolor [simpleslides:itemize:color] [s=0] -\definecolor [simpleslides:rainbowone] [r=.5,g=0,b=.5] -\definecolor [simpleslides:rainbowtwo] [b=1] -\definecolor [simpleslides:rainbowthree] [g=1,b=1] -\definecolor [simpleslides:rainbowfour] [g=1] -\definecolor [simpleslides:rainbowfive] [r=1,g=1] -\definecolor [simpleslides:rainbowsix] [r=1] - -%D In a first attempt to achieve the rainbow effect, I produced the rainbow -%D background with asymptote and then converted it to a pdf file which was then -%D used as a background. In that case, it was necessary to instruct \CONTEXT\ -%D to look in the default \TeX\ input paths for figures. The background spans -%D the entire height of the page and the width of the text area; the gray -%D background was then calculated so that the two stripes at the top and at the -%D bottom were left unfilled so the rainbow background would then be visible. -%D Here is the code: - -%\setupexternalfigures[location={global}] - -%\defineoverlay[rainb][{\externalfigure[rainbow.pdf][width=1.05\textwidth,height=1.4\textheight]}] - -% \startuniqueMPgraphic{gray} -% StartPage ; -% pair zf[] ; -% path gr[] ; -% numeric a; a = 2cm ; -% numeric b; b = 0.8cm ; -% z.f1 = ulcorner Page shifted (a,0) ; -% z.f2 = urcorner Page shifted (-a,0) ; -% z.f3 = lrcorner Page shifted (-a,0) ; -% z.f4 = llcorner Page shifted (a,0) ; -% z.f5 = z.f1 shifted (0,-b) ; -% z.f6 = z.f2 shifted (0,-b) ; -% z.f7 = z.f3 shifted (0,b) ; -% z.f8 = z.f4 shifted (0,b) ; -% z.f9 = z.f5 shifted (0,-b) ; -% z.f10 = z.f6 shifted (0,-b) ; -% z.f11 = z.f7 shifted (0,b) ; -% z.f12 = z.f8 shifted (0,b) ; -% gr[1] = ulcorner Page -- urcorner Page -- lrcorner Page -- llcorner Page -- z.f8 -- z.f7 -- z.f6 -- z.f5 -- z.f4 -- llcorner Page -- cycle ; -% gr[2] = z.f9 -- z.f10 -- z.f11 -- z.f12 -- cycle ; -% gr[2] := gr[2] enlarged (.5cm,0cm) ; -% fill gr[1] withcolor \MPcolor{a} ; -% fill gr[2] withcolor \MPcolor{a} ; -% StopPage ; -% \stopuniqueMPgraphic - -%D However, it seemed more portable to let Metapost calculate the background. -%D The rainbow effect takes some lines of code, but it's not too bad: - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -pair zf[] ; -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -path gr[] ; -numeric a; a = 2cm ; -numeric b; b = 0.4cm ; -numeric c; c = 0.7cm ; -z.f1 = ulcorner Page shifted (a,-c) ; -z.f2 = urcorner Page shifted (-a,-c) ; -z.f3 = z.f2 shifted (0,-b) ; -z.f4 = z.f1 shifted (0,-b) ; -gr[1] = z.f1 -- z.f2 ; -gr[2] = z.f4 -- z.f3 ; -z.f5 = point .2 along gr[1] ; -z.f6 = point .2 along gr[2] ; -z.f7 = point .4 along gr[1] ; -z.f8 = point .4 along gr[2] ; -z.f9 = point .6 along gr[1] ; -z.f10 = point .6 along gr[2] ; -z.f11 = point .8 along gr[1] ; -z.f12 = point .8 along gr[2] ; -gr[3] = z.f1 -- z.f5 -- z.f6 -- z.f4 -- cycle ; -gr[4] = z.f7 -- z.f5 -- z.f6 -- z.f8 -- cycle ; -gr[4] := gr[4] enlarged (.02cm,0) ; -gr[5] = z.f9 -- z.f7 -- z.f8 -- z.f10 -- cycle ; -gr[5] := gr[5] enlarged (.02cm,0) ; -gr[6] = z.f11 -- z.f9 -- z.f10 -- z.f12 -- cycle ; -gr[6] := gr[6] enlarged (.02cm,0) ; -gr[7] = z.f11 -- z.f2 -- z.f3 -- z.f12 -- cycle ; -linear_shade(gr[3],0,\MPcolor{simpleslides:rainbowone},\MPcolor{simpleslides:rainbowtwo}) ; -linear_shade(gr[4],0,\MPcolor{simpleslides:rainbowtwo},\MPcolor{simpleslides:rainbowthree}) ; -linear_shade(gr[5],0,\MPcolor{simpleslides:rainbowthree},\MPcolor{simpleslides:rainbowfour}) ; -linear_shade(gr[6],0,\MPcolor{simpleslides:rainbowfour},\MPcolor{simpleslides:rainbowfive}) ; -linear_shade(gr[7],0,\MPcolor{simpleslides:rainbowfive},\MPcolor{simpleslides:rainbowsix}) ; -z.f21 = llcorner Page shifted (a,c) ; -z.f22 = lrcorner Page shifted (-a,c) ; -z.f23 = z.f22 shifted (0,b) ; -z.f24 = z.f21 shifted (0,b) ; -gr[21] = z.f21 -- z.f22 ; -gr[22] = z.f24 -- z.f23 ; -z.f25 = point .2 along gr[21] ; -z.f26 = point .2 along gr[22] ; -z.f27 = point .4 along gr[21] ; -z.f28 = point .4 along gr[22] ; -z.f29 = point .6 along gr[21] ; -z.f30 = point .6 along gr[22] ; -z.f31 = point .8 along gr[21] ; -z.f32 = point .8 along gr[22] ; -gr[23] = z.f21 -- z.f25 -- z.f26 -- z.f24 -- cycle ; -gr[24] = z.f27 -- z.f25 -- z.f26 -- z.f28 -- cycle ; -gr[24] := gr[24] enlarged (.02cm,0) ; -gr[25] = z.f29 -- z.f27 -- z.f28 -- z.f30 -- cycle ; -gr[25] := gr[25] enlarged (.02cm,0) ; -gr[26] = z.f31 -- z.f29 -- z.f30 -- z.f32 -- cycle ; -gr[26] := gr[26] enlarged (.02cm,0) ; -gr[27] = z.f31 -- z.f22 -- z.f23 -- z.f32 -- cycle ; -linear_shade(gr[23],0,\MPcolor{simpleslides:rainbowone},\MPcolor{simpleslides:rainbowtwo}) ; -linear_shade(gr[24],0,\MPcolor{simpleslides:rainbowtwo},\MPcolor{simpleslides:rainbowthree}) ; -linear_shade(gr[25],0,\MPcolor{simpleslides:rainbowthree},\MPcolor{simpleslides:rainbowfour}) ; -linear_shade(gr[26],0,\MPcolor{simpleslides:rainbowfour},\MPcolor{simpleslides:rainbowfive}) ; -linear_shade(gr[27],0,\MPcolor{simpleslides:rainbowfive},\MPcolor{simpleslides:rainbowsix}) ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage -path p[] ; -p[1] := unitsquare xyscaled(MakeupWidth,.4cm) shifted (2cm,0.7cm) ; -numeric i; i = (PageNumber - 1)/(NOfPages - 1) ; -p[2] = ulcorner p[1] -- urcorner p[1] ; -p[3] = llcorner p[1] -- lrcorner p[1] ; -pair o[] ; -o[1] := point i along p[2] ; -o[2] := point i along p[3] ; -p[4] = o[1] -- o[2] ; -p[4] := p[4] enlarged (0,-1pt) ; -pickup pensquare scaled 2pt ; -draw p[4] ; -StopPage -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We set up our SlideTitles: - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!align=\v!center, - \c!height=1.5cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][inmargin] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Rounded.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Rounded.tex deleted file mode 100644 index 10c15be7139..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Rounded.tex +++ /dev/null @@ -1,224 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Rounded, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module Rounded, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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. - -%D This file provides the \quotation{Rounded} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading style Rounded} - -\startmodule[simpleslides-s-Rounded] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - leftmargin=1.5cm, - rightmargin=0cm, - leftmargindistance=1.2cm, - rightmargindistance=0pt, - height=fit, - header=5.3cm, - footer=0cm, - topspace=.4cm, - backspace=2.5cm, - cutspace=3.2cm, - bottomspace=0cm, - bottom=0pt, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=5.3cm] -\setuplayout [simpleslides:layout:vertical] [header=2.3cm] -\setuplayout [simpleslides:layout:title] [header=2.3cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [y=23mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [s=.95] -\definecolor [simpleslides:contrastcolor] [r=.58,g=.81,b=.58] -\definecolor [simpleslides:textcolor] [r=.09,g=.2,b=.41] -\definecolor [simpleslides:variantcolor] [r=.04,g=.4,b=.4] -\definecolor [simpleslides:itemize:color] [simpleslides:textcolor] - -\setupcolors[textcolor=simpleslides:textcolor] - -%D We let \METAPOST\ calculate the background: - -\startuseMPgraphic{simpleslides:MP:common} -save a,b,c,d; -numeric a,b,c,d ; - -a = 2cm ; b = 0.7cm ; -c = 6cm ; d = .7cm ; - -save p ; path p[] ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z1 = llcorner Page shifted (a,0) ; -z2 = ulcorner Page shifted (a,-a-b) ; -z3 = ulcorner Page shifted (a+b/4,-a-b/4) ; -z4 = ulcorner Page shifted (a+b,-a) ; -z5 = urcorner Page shifted (0,-a) ; -z6 = ulcorner Page shifted (c,0) ; -z7 = ulcorner Page shifted (c,-a) ; - - -p[1] = llcorner Page -- z1 -- z2 .. z3 .. z4 -- z7 -- z6 -- - ulcorner Page -- cycle ; - -fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; - -\stopuseMPgraphic - -\startuseMPgraphic{simpleslides:MP:vertical} -StartPage ; -\includeMPgraphic{simpleslides:MP:common} ; -% The pagenumber cannot be part of MP:common otherwise pdftex ignores it. -draw \sometxt{\framed[frame=off,width=2cm,height=2cm]% - {\color[simpleslides:backgroundcolor]{\pagenumber}}} ; - -StopPage ; -\stopuseMPgraphic - -\startuseMPgraphic{simpleslides:MP:horizontal} -StartPage; - -\includeMPgraphic{simpleslides:MP:common} ; -draw \sometxt{\framed[frame=off,width=2cm,height=2cm]% - {\color[simpleslides:backgroundcolor]{\pagenumber}}} ; - - -z8 = ulcorner Page shifted (a/2,-2.2*a) ; -z9 = z8 shifted (0,-d) ; -z10 = urcorner Page shifted (-a,-2.2*a-d) ; -z11 = z10 shifted (0,d) ; -z12 = z8 shifted (-d/2,-d/2) ; - -p[2] = z8 .. z12 .. z9 -- z10 -- z11 -- cycle ; - -fill p[2] withcolor \MPcolor{simpleslides:textcolor} ; - -StopPage ; -\stopuseMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:title} -StartPage ; - -save a,b,c,d; -numeric a,b,c,d; - -a = 4cm ; b = 3cm ; -c = 8cm ; d = .7cm ; - -save p; path p[] ; -p[1] = ulcorner Page -- ulcorner Page shifted (PaperWidth/2,0) -- - llcorner Page shifted (PaperWidth/2,0) -- llcorner Page -- cycle ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; - -z1 = ulcorner Page shifted (PaperWidth/2,-b) ; -z2 = z1 shifted (-c,0) ; -z3 = z2 shifted (0,-a) ; -z4 = z3 shifted (c,0) ; -z5 = z2 shifted (-1.5cm,-a/2) ; - -p[2] = z1 -- z2 .. z5 .. z3 -- z4 -- cycle ; -fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z6 = llcorner Page shifted (PaperWidth/2,0) ; -z7 = 1/2[z6,z4] ; -z8 = z7 shifted (-.75*b,d/2) ; -z9 = z8 shifted (0,-d) ; -z10 = z9 shifted (1.3*c,0) ; -z11 = z10 shifted (0,d) ; -z12 = z10 shifted (d/2,d/2) ; - -p[3] = z8 -- z9 -- z10 .. z12 .. z11 -- cycle ; -fill p[3] withcolor \MPcolor{simpleslides:textcolor} ; - -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:title}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - - -%D The title page: - -\setupTitle - [\c!before=\strut{\blank[0.25cm]}, - \c!author\c!align=\v!right, - \c!before\c!author={\blank[3.1cm]\setupnarrower[left=9cm] - \startnarrower[left]}, - \c!after\c!author={\stopnarrower}, - \c!date\c!align=\v!right, - \c!before\c!date={\blank[3.7cm]\setupnarrower[left=9cm] - \startnarrower[left]}, - \c!after\c!date={\stopnarrower}, - \c!headcolor={simpleslides:textcolor}] - - -%D The slide title is typeset in a layer - -\setupSlideTitle - [\c!color={simpleslides:variantcolor}, - \c!alternative=layer, - \c!align=\v!center, - \c!width=\textwidth, - \c!style={\switchtobodyfont[\TitleSize]\bf}, - \c!height=2cm, - \c!after=] - -% \definelayer[presauthor] -% [width=.5\paperwidth, -% height=.5\paperheight, -% x=104mm, -% y=118mm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][inmargin][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Shaded.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Shaded.tex deleted file mode 100644 index 97844cb5cd3..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Shaded.tex +++ /dev/null @@ -1,128 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Shaded, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Shaded style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{Shaded} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading Shaded style} - -\startmodule[simpleslides-s-Shaded] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=1.5cm, - leftmargindistance=0pt, - rightmargindistance=0pt, - height=fit, - header=0pt, - footer=5pt, - topspace=.8cm, - backspace=1.5cm, - bottomspace=.8cm, - bottom=12pt, - location=singlesided] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {.88\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {.88\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D This module has three color schemes, blue, green and bluered. - - -\startsetups simpleslides:setups:bluered -\definecolor [simpleslides:textcolor] [white] -\definecolor [simpleslides:interactioncolor] [b=.2] -\definecolor [simpleslides:contrastcolor] [b=.8] -\definecolor [simpleslides:itemize:color] [s=1] -\definecolor [simpleslides:backgroundcolor] [r=0.5,g=0,b=0] -\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.5] -\stopsetups - -\startsetups simpleslides:setups:blue -\definecolor [simpleslides:textcolor] [white] -\definecolor [simpleslides:interactioncolor] [b=.2] -\definecolor [simpleslides:contrastcolor] [r=.72,g=.77,b=.94] -\definecolor [simpleslides:itemize:color] [s=1] -\definecolor [simpleslides:backgroundcolor] [r=0,g=0,b=1] -\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.05] -\stopsetups - -\startsetups simpleslides:setups:green -\definecolor [simpleslides:textcolor] [white] -\definecolor [simpleslides:interactioncolor] [s=.2] -\definecolor [simpleslides:contrastcolor] [s=.5] -\definecolor [simpleslides:itemize:color] [s=1] -\definecolor [simpleslides:backgroundcolor] [r=0,g=.8,b=0] -\definecolor [simpleslides:variantcolor] [r=0,g=0.05,b=0] -\stopsetups - -%D Now we choose the scheme that the user asked for - -\setups{simpleslides:setups:blue} -\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}} - -\setupcolors[textcolor={simpleslides:textcolor}] - - -%D This module shades the background in a gradient. We use \METAPOST\ to draw -%D the background. - -\startuniqueMPgraphic{simpleslides:MP:ornament} -save p; -path p ; -p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; -linear_shade(p,6, - \MPcolor{simpleslides:backgroundcolor}, - \MPcolor{simpleslides:variantcolor}) ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -%D The \quotation{Shaded} style uses \CONTEXT's interactionbar: - -\setupsubpagenumber[way=bytext,state=start] - -\setupinteraction - [page=yes, - color=simpleslides:interactioncolor, - contrastcolor=simpleslides:contrastcolor, - menu=on, - state=start] - -\startinteractionmenu[bottom] -{\interactionbar[alternative=f,width=\makeupwidth,height=1ex]} -\stopinteractionmenu - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-SideSquares.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-SideSquares.tex deleted file mode 100755 index 8ecce564439..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-SideSquares.tex +++ /dev/null @@ -1,157 +0,0 @@ -%D \module -%D [ file=simpleslides-s-SideSquares, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module SideSquares, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{SideSquares} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading SideSquares style} - -\startmodule[simpleslides-s-SideSquares] - -\unprotect - -%D First, we define the page layout. - -\setuplayout [width=fit, - height=middle, - margin=1.5cm, - height=fit, - leftmargindistance=.4cm, - rightmargindistance=0cm, - header=1.5cm, - footer=0cm, - topspace=1cm, - backspace=2.5cm, - cutspace=1.5cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=15mm] -\setuplayout [simpleslides:layout:vertical] [header=0mm] -\setuplayout [simpleslides:layout:title] [header=0mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.5\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.5\textwidth} - -\setuplayer - [simpleslides:layer:slidetitle] - [x=25mm, - y=2mm] - -%D We define our color scheme: - -\definecolor[simpleslides:contrastcolor] [r=0,g=0,b=.92] -\definecolor[simpleslides:altcontrastcolor] [r=0,g=0,b=.4] -\definecolor[simpleslides:backgroundcolor] [s=.98] -\definecolor[simpleslides:itemize:color] [r=0,g=0,b=.92] - -%D We let Metapost calculate the background: - -\startuseMPgraphic{simpleslides:MP:horizontal} -StartPage ; -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -z1 = ulcorner Page ; -z5 = llcorner Page ; -path q ; -q = z1 -- z5 ; -t := arclength (q) ; -u := t/15 ; -v := (PageNumber/NOfPages) ; -z4 = (x1+1cm, y1-1cm) ; -z3 = (x4, y1) ; -z2 = (x1, y4) ; -path m[] ; -m[1] = z1 -- z2 -- z4 -- z3 -- cycle ; -m[2] = m[1] shifted (0, -2*u) ; -m[3] = m[1] shifted (0, -4*u) ; -m[4] = m[1] shifted (0, -6*u) ; -m[5] = m[1] shifted (0, -8*u) ; -m[6] = m[1] shifted (0, -10*u) ; -m[7] = m[1] shifted (0, -12*u) ; -m[8] = m[1] shifted (0, (-14*u-0.5mm)) ; -for i=1 upto 8: - fill m[i] withcolor\MPcolor{simpleslides:contrastcolor} ; -endfor; -if PageNumber=1: - fill m[1] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.001) and (v<.167) : - fill m[2] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.166) and (v<.334): - fill m[3] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.333) and (v<.501): - fill m[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.5) and (v<.667): - fill m[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.666) and (v<.834): - fill m[6] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif (v>.833) and (v<1): - fill m[7] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -elseif v=1: - fill m[8] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -fi ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:horizontal}] - -%D We want the title to placed in color. - -\setupTitle[\c!headcolor={simpleslides:contrastcolor}] - -%D This sets up the SlideTitle: - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!align=\v!center, - \c!height=2.5cm, - \c!color=simpleslides:contrastcolor] - -%D We set up the titlepage: - -\setupTitle - [\c!title\c!color={simpleslides:contrastcolor}, - \c!author\c!color={simpleslides:contrastcolor}, - \c!date\c!color={simpleslides:contrastcolor}] - -\setupcombinations[distance=0cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][$\square$] -\setupitemize[1][inmargin][color=simpleslides:itemize:color] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Split.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Split.tex deleted file mode 100644 index c1fbe136d48..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Split.tex +++ /dev/null @@ -1,195 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Split, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Split style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{Split} style for the presentation -%D module. It is loaded at runtime. The look of this style was inspired by the -%D \quotation{Copenhagen} theme of the \LaTeX\ \filename{beamer} package. - -\writestatus{simpleslides}{loading Black Blue style} - -\startmodule[simpleslides-s-Split] - -\unprotect - -%AM: NOTE: The black and blue colors can be made configurable. - -%D First, we change the page layout to have more space on the top and the -%D bottom. - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=3.2cm, - footer=.5cm, - topspace=.6cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=3.2cm] -\setuplayout [simpleslides:layout:vertical] [header=0.5cm] -\setuplayout [simpleslides:layout:title] [header=0.5cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=10mm,y=12mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - - -%D Next we define a few generic frames, which will be used by other macros to -%D get a consistent look and feel. - -\setupframed[simpleslides:framed] - [corner=round, - background=color,backgroundcolor={simpleslides:contrastcolor}] - -\defineframed[simpleslides:framed:small] - [frame=off,offset=0pt,strut=no, - width=0.5\textwidth,height=0.5cm, - top=\vss,bottom=\vss] - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [s=.9] -\definecolor [simpleslides:contrastcolor] [r=.2, g=.2, b=.72] -\definecolor [simpleslides:variantcolor] [s=0] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We use \METAPOST\ to draw backgrounds. First, we define a few helper macros -%D to place text inside \METAPOST - -\definetextext[simpleslides:sometxt:left] {\SimpleSlidesSometxtLeft} -\definetextext[simpleslides:sometxt:right]{\SimpleSlidesSometxtRight} - -\unexpanded\def\SimpleSlidesSometxtLeft#1% - {\getvalue{simpleslides:framed:small}[align=left] - {\switchtobodyfont[9pt]\color[simpleslides:backgroundcolor] - {#1\quad\strut}}} - -\unexpanded\def\SimpleSlidesSometxtRight#1% - {\getvalue{simpleslides:framed:small}[align=right] - {\switchtobodyfont[9pt]\color[simpleslides:backgroundcolor] - {\strut\quad#1}}} - -%D Now we use \METAPOST\ to draw a page ornament, which will then be inherited -%D by different backgrounds. - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; -save p, Main, a ; -path p[] ; path Main ; - -numeric a; a=.5cm ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z1 = ulcorner Page shifted (0,-a) ; -z2 = urcorner Page shifted (0,-a) ; -z3 = llcorner Page shifted (0,a) ; -z4 = lrcorner Page shifted (0,a) ; -z5 = 1/2[ulcorner Page,urcorner Page] ; -z6 = 1/2[z1,z2] ; -z7 = 1/2[llcorner Page,lrcorner Page] ; -z8 = 1/2[z3,z4] ; - -p[1] = ulcorner Page -- urcorner Page -- z2 -- z1 -- cycle ; -p[2] = ulcorner Page -- z5 -- z6 -- z1 -- cycle ; -p[3] = llcorner Page -- lrcorner Page -- z4 -- z3 -- cycle ; -p[4] = llcorner Page -- z7 -- z8 -- z3 -- cycle ; - -fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; -fill p[2] withcolor \MPcolor{simpleslides:variantcolor} ; -fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; -fill p[4] withcolor \MPcolor{simpleslides:contrastcolor} ; - -draw \sometxt[simpleslides:sometxt:left]{\noexpand\moduleparameter{simpleslides:title}{date}} - shifted (1cm,y1) ; - -draw \sometxt[simpleslides:sometxt:right]{\folio\ of \lastpage} - shifted (x5,y1) ; - -draw \sometxt[simpleslides:sometxt:left]{\noexpand\moduleparameter{simpleslides:title}{author}} - shifted (1cm,0) ; - -draw \sometxt[simpleslides:sometxt:right]{\noexpand\moduleparameter{simpleslides:title}{title}} - shifted (x5,0) ; - -StopPage ; -\stopuseMPgraphic - -%D We use this ornament in different backgrounds. - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We want the title to placed in a framed box. We redefine all the keys of -%D \type{\setupTitle}, so that the module is easier to maintain. - -\setupTitle - [\c!title=, - \c!author=, - \c!date=\currentdate, - \c!headstyle=, - \c!headcolor={simpleslides:backgroundcolor}, - \c!align=\v!middle, - \c!before={\vfill\getvalue{simpleslides:framed} - [\c!width=\textwidth,\c!height=.75\textheight, - \c!align=\v!middle, \c!strut=\v!no] - \bgroup}, - \c!after={\egroup\vfill}, - \c!title\c!style={\switchtobodyfont[\TitleSize]}, - \c!title\c!color=, - \c!title\c!align=,%\v!middle, - \c!author\c!style=, - \c!author\c!color=, - \c!author\c!align=,%\v!middle, - \c!date\c!style=, - \c!date\c!color=, - \c!date\c!align=,%\v!middle, - \c!before\c!title=, - \c!before\c!author=, - \c!before\c!date=, - \c!after\c!title={\blank[1*line]}, - \c!after\c!author={\blank[2*line]}, - \c!after\c!date=] - -%D We also want the slide title in a framed box. - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!height=2.1cm, - \c!width=\textwidth, - \c!color=simpleslides:backgroundcolor] - - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][\c!color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Sunrise.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Sunrise.tex deleted file mode 100644 index 756b981aec5..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Sunrise.tex +++ /dev/null @@ -1,206 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Sunrise, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module Sunrise -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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. - -%D This file provides the \quotation{Sunrise} style for the presentation -%D module. It is loaded at runtime. The look of this style was inspired by the -%D \quotation{husky} theme of the \LaTeX\ {\tt powerdot} package, created by -%D Jack Stalnaker. - -\writestatus{simpleslides}{loading Sunrise style} - -\startmodule[simpleslides-s-Sunrise] - -\unprotect - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=2.75cm, - footer=1.5cm, - footerdistance=0.4cm, - topspace=0cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=2.75cm] -\setuplayout [simpleslides:layout:vertical] [header=0.4cm] -\setuplayout [simpleslides:layout:title] [header=2.75cm] - -\setuplayer - [simpleslides:layer:slidetitle] - [x=10mm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -%D We define our color scheme: - -\definecolor [simpleslides:variantcolor] [s=.97] -\definecolor [simpleslides:backgroundcolor] [s=.88] -\definecolor [simpleslides:contrastcolor] [r=.75] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] - -%D We let \METAPOST\ calculate the background: - -%D Both horizontal and vertical group share this part of the background. - -\startuseMPgraphic{simpleslides:MP:common} -save a, b ; -numeric a; a=2.1cm ; -numeric b; b=1.5cm ; - -fill Page withcolor \MPcolor{simpleslides:variantcolor} ; - -z1 = llcorner Page shifted (0,2*a) ; -z2 = z1 shifted (0,2*a) ; -z3 = lrcorner Page shifted (0,b) ; -z4 = z3 shifted (0,b) ; -z5 = z2 shifted (0,b) ; -z6 = ulcorner Page shifted (.1cm,0) ; -z7 = z4 shifted (0,b/2) ; -z8 = z7 shifted (0,b) ; -z9 = ulcorner Page shifted (.1cm+a,0) ; -z10 = z9 shifted (3*a,0) ; -z11 = z8 shifted (0,b/2) ; -z12 = z11 shifted (0,b) ; -z13 = z10 shifted (a,0) ; -z14 = z13 shifted (3*a,0) ; -z15 = z12 shifted (0,b/2) ; -z16 = z15 shifted (0,b) ; -z17 = llcorner Page shifted (0,b) ; - -save p ; -path p[] ; -p[1] = z1 -- z2 -- z4 -- z3 -- cycle ; -p[2] = z5 -- ulcorner Page -- z6 -- z8 -- z7 -- cycle ; -p[3] = z9 -- z10 -- z12 -- z11 -- cycle ; -p[4] = z13 -- z14 -- z16 -- z15 -- cycle ; -p[5] = llcorner Page -- z17 -- z3 -- lrcorner Page -- cycle ; - -fill p[1] withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ; -\stopuseMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:vertical} -StartPage ; -\includeMPgraphic{simpleslides:MP:common} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -\includeMPgraphic{simpleslides:MP:common} ; -z18 = ulcorner Page shifted (0,-1.5*b) ; -z19 = z18 shifted (0,-1pt) ; -z20 = urcorner Page shifted (0,-1.5*b) ; -z21 = z20 shifted (0,-1pt) ; - -p[6] = z18 -- z19 -- z21 -- z20 -- cycle ; - -linear_shade(p[6],0, - \MPcolor{simpleslides:contrastcolor}, - \MPcolor{simpleslides:variantcolor}) ; - -p[7] = p[6] shifted (0,-3pt) ; - -linear_shade(p[7],0, - \MPcolor{simpleslides:contrastcolor}, - \MPcolor{simpleslides:variantcolor}) ; - -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -%D We define the footer - -\setupfooter[\c!color=simpleslides:variantcolor, - \c!style={\switchtobodyfont[10pt]}, - \c!strut=\v!yes] - -\setupfootertexts[{\framed[\c!frame=\v!off, - \c!height=1cm, - \c!width=\textwidth] - {\simpleslidestitleparameter{title} - \hfill \pagenumber\ of \lastpage}}] - -%D We want the title to placed in a framed box. We redefine all the keys of -%D \type{\setupTitle}, so that the module is easier to maintain. - -\setupTitle - [\c!title=, - \c!author=, - \c!date=\currentdate, - \c!headstyle=, - \c!headcolor=simpleslides:contrastcolor, - \c!align=\v!middle, - \c!before={\vfill\getvalue{simpleslides:framed} - [\c!width=\textwidth,\c!height=.75\textheight, - \c!align=\v!middle, \c!strut=\v!no] - \bgroup}, - \c!after={\egroup\vfill}, - \c!title\c!style={\switchtobodyfont[\TitleSize]}, - \c!title\c!color=, - \c!title\c!align=,%\v!middle, - \c!author\c!style=, - \c!author\c!color=, - \c!author\c!align=,%\v!middle, - \c!date\c!style=, - \c!date\c!color=, - \c!date\c!align=,%\v!middle, - \c!before\c!title=, - \c!before\c!author=, - \c!before\c!date=, - \c!after\c!title={\blank[1*line]}, - \c!after\c!author={\blank[2*line]}, - \c!after\c!date=] - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!height=2.25cm, - \c!color={simpleslides:contrastcolor}] - - -%D The symbol for the first level of itemizations. - - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color={simpleslides:itemize:color}] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Swoosh.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Swoosh.tex deleted file mode 100644 index da62bf6dc4e..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-Swoosh.tex +++ /dev/null @@ -1,235 +0,0 @@ -%D \module -%D [ file=simpleslides-s-Swoosh, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module -- Swoosh Style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Aditya Mahajan and Thomas A. Schmitz}] -%C -%C Copyright 2009 Aditya Mahajan and Thomas A. Schmitz -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{Swoosh} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{simpleslides}{loading Swoosh style} - -\startmodule[simpleslides-s-Swoosh] - -\unprotect - -%D First we change the page layout, adding more space on the top. - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=3cm, - footer=0.8cm, - topspace=.6cm, - backspace=1cm, - location=singlesided] - -\setuplayout [simpleslides:layout:horizontal][header=3cm] -\setuplayout [simpleslides:layout:vertical] [header=0.8cm] -\setuplayout [simpleslides:layout:title] [header=0.8cm] - -%D We also specify the position of the slidetitle. - -\setuplayer[simpleslides:layer:slidetitle] - [x=10mm,y=2mm] - -\setupcombinations[distance=1.85cm] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.45\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.45\textwidth} - -\defineframed[simpleslides:framed] - [frame=off,offset=0pt, - top=\vss,bottom=\vss] - -%D We define our color scheme: - -\definecolor [simpleslides:backgroundcolor] [r=.88,g=.92,b=.95] -\definecolor [simpleslides:contrastcolor] [r=.4,g=.6,b=.8] -\definecolor [simpleslides:altcontrastcolor] [r=.1,g=.1,b=.4] -\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] -\definecolor [simpleslides:textcolor] [simpleslides:altcontrastcolor] - -\setupcolors[textcolor=simpleslides:textcolor] - -%D We use \METAPOST\ to draw backgrounds. - -\startuniqueMPgraphic{simpleslides:MP:horizontal} -StartPage ; -save a, b; -numeric a ; a = 2.5cm ; -numeric b ; b = 0.7cm ; -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; - -z1 = ulcorner Page ; -z2 = urcorner Page ; -z3 = (x1,y1-0.7*a) ; -z4 = (x1+5cm,y1-a-b) ; -z5 = (x1+12cm,y1-a) ; -z6 = (x1+14cm,y1-a+0.3cm) ; -z7 = (x2,y2-a-b) ; - -save p ; -path p ; -p = z1--z3..z4..z5..z6..z7--z2--cycle ; -fill p withcolor \MPcolor{simpleslides:contrastcolor} ; -pickup pencircle scaled 4pt ; -draw z3..z4..z5..z6..z7 withcolor white ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:MP:vertical} -StartPage ; - -save a,b; -numeric a ; a = 2cm ; -numeric b ; b = 1cm ; -pair t[] ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -z1 = ulcorner Page ; -z2 = llcorner Page ; -z3 = center Page ; -z4 = (x3,y1) ; -z5 = (x3+b,y1-4cm) ; -z6 = (x3+b/2,y1-7cm) ; -z7 = (x3-b/2,y2+2cm) ; -z8 = (x3,y2) ; - -save p; -path p[] ; -p[1] = z1--z4..z5..z6..z7..z8--z2--cycle ; -fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; -pickup pencircle scaled 4pt ; -draw z4..z5..z6..z7..z8 withcolor white ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -save b, s, t, p, circcenter, theta, pic ; -StartPage ; -path p[] ; -pair t[] ; -pair s[] ; -pair circcenter ; circcenter = lrcorner Page shifted (-1cm, 1cm) ; -picture pic ; -b = 1.5cm ; -if \realfolio > 1: - theta = (PageNumber - 1)/(NOfPages - 1) ; - p[4] = fullcircle scaled b rotated 90 ; - fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ; - t[0] = center p[4] ; - t[1] = point 1 along p[4] ; - t[2] = point -theta along p[4] ; - t[3] = point -theta/2 along p[4] ; - p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ; - fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ; - for i = 1 upto NOfPages : - s[i] = point i/(NOfPages -1) along p[4] ; - pickup pencircle scaled 1pt ; - draw s[i] -- t[0] withcolor \MPcolor{simpleslides:backgroundcolor} ; - endfor ; - p[3] = p[4] scaled 0.4 ; - fill p[3] withcolor \MPcolor{simpleslides:contrastcolor} ; - draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ; - label(textext("\switchtobodyfont[10pt]\color[simpleslides:backgroundcolor]\pagenumber"),origin) ; - currentpicture := currentpicture shifted circcenter ; -fi ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:horizontal] - [\useMPgraphic{simpleslides:MP:horizontal}] - -\defineoverlay - [simpleslides:background:vertical] - [\useMPgraphic{simpleslides:MP:vertical}] - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\setupTitle - [\c!headcolor={simpleslides:altcontrastcolor}] - -%D We want the title to placed in a framed box. We redefine all the keys of -%D \type{\setupTitle}, so that the module is easier to maintain. - -\setupSlideTitle - [\c!alternative=layer, - \c!color=simpleslides:backgroundcolor, - \c!align=\v!center, - \c!width=\textwidth, - \c!height=2cm, - \c!after=] - - -% \setupTitle -% [\c!title=, -% \c!author=, -% \c!date=\currentdate, -% \c!headstyle=, -% \c!headcolor=, -% \c!align=\v!middle, -% \c!before={\vfill\getvalue{simpleslides:framed} -% [\c!width=\textwidth,\c!height=.75\textheight, -% \c!align=\v!middle, \c!strut=\v!no] -% \bgroup}, -% \c!after={\egroup\vfill}, -% \c!title\c!style={\switchtobodyfont[\TitleSize]}, -% \c!title\c!color=, -% \c!title\c!align=,%\v!middle, -% \c!author\c!style=, -% \c!author\c!color=, -% \c!author\c!align=,%\v!middle, -% \c!date\c!style=, -% \c!date\c!color=, -% \c!date\c!align=,%\v!middle, -% \c!before\c!title=, -% \c!before\c!author=, -% \c!before\c!date=, -% \c!after\c!title={\blank[1*line]}, -% \c!after\c!author={\blank[2*line]}, -% \c!after\c!date=] -% -% %D We want the title to be of a specific height -% -% \setuphead[SlideTitle] -% [\c!after=, -% \c!alternative=\v!text, -% \c!color=white, -% \c!command=\doSlideTitle] -% -% \define[2]\doSlideTitle -% {\setlayer[simpleslides:layer:slidetitle]% -% {\getvalue{simpleslides:framed}[\c!width=\textwidth,\c!height=1.1cm, -% \c!align=\v!right] -% {#1#2}}} - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] -\setupitemize[1][color=simpleslides:itemize:color] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-ThickStripes.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-ThickStripes.tex deleted file mode 100644 index b7deead545b..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-ThickStripes.tex +++ /dev/null @@ -1,146 +0,0 @@ -%D \module -%D [ file=simpleslides-s-ThickStripes, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module --- Thick Stripes style, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, -%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. - -%D This file provides the \quotation{ThickStripes} style for the presentation -%D module. It is loaded at runtime. The theme for this style is inspired by the -%D \quotation{Berkeley} theme of the \LaTeX\ Beamer package. - -\writestatus{simpleslides}{loading Thick Stripes style} - -\startmodule[simpleslides-s-ThickStripes] - -\unprotect - -%D First, we change the page layout to have more space on the top and the -%D left. - -\setuplayout [width=fit, - leftmargin=1.5cm, - rightmargin=0cm, - leftmargindistance=.9cm, - rightmargindistance=0pt, - height=fit, - header=2.5cm, - footer=0cm, - topspace=.4cm, - backspace=2.9cm, - cutspace=2.8cm, - bottomspace=0cm, - bottom=0pt, - location=singlesided] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight {\textheight} -\define\NormalWidth {.476\textwidth} -\define\PictureFrameHeight {\textheight} -\define\PictureFrameWidth {.476\textwidth} - -\setuplayer - [simpleslides:layer:slidetitle] - [x=29mm] - -%D We define our color scheme - -\definecolor [simpleslides:backgroundcolor] [s=.9] -\definecolor [simpleslides:variantcolor] [r=.15,g=.15,b=.525] -\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.7] -\definecolor [simpleslides:altcontrastcolor] [s=.4] -\definecolor [simpleslides:itemize:color] [simpleslides:backgroundcolor] - - -%D We use \METAPOST to draw the background. The background consists of two -%D stripes and a "clock" at the bottom. - -\startuseMPgraphic{simpleslides:MP:title} -StartPage ; -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -StopPage ; -\stopuseMPgraphic - -\startuseMPgraphic{simpleslides:MP:ornament} -StartPage ; -save a, b, theta; -numeric a, b, theta ; - -save t ; -pair t[] ; - -a = 2.5cm ; -b = 1.5cm ; - -z[1] = ulcorner Page shifted (a,0) ; -z[2] = llcorner Page shifted (a,0) ; -z[3] = ulcorner Page shifted (0,-a) ; -z[4] = urcorner Page shifted (0,-a) ; -z[5] = ulcorner Page shifted (a,-a) ; - -save p ; -path p[] ; -p[1] = ulcorner Page -- z[1] -- z[2] -- llcorner Page -- cycle ; -p[2] = ulcorner Page -- urcorner Page -- z[4] -- z[3] -- cycle ; -p[3] = ulcorner Page -- z[1] -- z[5] -- z[3] -- cycle ; - -fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; -fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; -fill p[2] withcolor \MPcolor{simpleslides:contrastcolor} ; -fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; - -pickup pencircle scaled 5pt ; - -if \realfolio > 1: - theta = (PageNumber - 1)/(NOfPages - 1) ; - p[4] = unitcircle scaled b rotated 90 shifted (b + ((a-b)/2),(a-b)/2) ; - fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ; - t[0] = center p[4] ; - t[1] = point 1 along p[4] ; - t[2] = point -theta along p[4] ; - t[3] = point -theta/2 along p[4] ; - p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ; - fill p[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ; -fi ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay - [simpleslides:background:ornament] - [\useMPgraphic{simpleslides:MP:ornament}] - -\defineoverlay - [simpleslides:background:title] - [\useMPgraphic{simpleslides:MP:ornament}] - -%D We want the title to placed in color. - -\setupTitle[\c!headcolor={simpleslides:contrastcolor}] - -%D We want the slide title on the top - -\setupSlideTitle - [\c!after=, - \c!alternative=layer, - \c!width=\textwidth, - \c!height=2.5cm, - \c!color=simpleslides:backgroundcolor] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{simpleslides:itemize:triangle}] -\setupitemize[1][inmargin][color=simpleslides:backgroundcolor] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-default.tex b/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-default.tex deleted file mode 100644 index 513d0e744c2..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/simpleslides-s-default.tex +++ /dev/null @@ -1,772 +0,0 @@ -%D \module -%D [ file=simpleslides-s-default, -%D version=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=fit, - margin=0.6cm, - height=fit, - 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] - -%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[verytolerant,stretch] - -%D We use combinations for placing vertical pictures and text side by side, and -%D we want a distance of 1.1 cm between both. - -\setupcombinations[distance=1.1cm] - -%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:highlight] - [\useMPgraphic{simpleslides:MP:highlight}]% - -\definelayer[simpleslides:layer:slidetitle] - [\c!width=\paperwidth, - \c!height=\paperheight] - -%D A generic frame which is used for titles and other commands - -\defineframed[simpleslides:framed] - [frame=off,offset=0pt, - top=\vss,bottom=\vss] - -%D Now we define setups for specific backgrounds - -\startsetups simpleslides:background:title - \setuplayout[simpleslides:layout:title] - \setupbackgrounds[\v!page] - [background={simpleslides:background:title}] -\stopsetups - -\startsetups simpleslides:background:horizontal - \setuplayout[simpleslides:layout:horizontal] - \setupbackgrounds[\v!page] - [background={simpleslides:background:horizontal, - simpleslides:background:ornament, - simpleslides:layer:slidetitle}] -\stopsetups - -\startsetups simpleslides:background:vertical - \setuplayout[simpleslides:layout:vertical] - \setupbackgrounds[\v!page] - [background={simpleslides:background:vertical, - simpleslides:background:ornament}] -\stopsetups - -%D We also define some fall backs for presentation backgrounds. - -\startsetups simpleslides:background:default - \setups{simpleslides:background:horizontal} -\stopsetups - -\startsetups simpleslides:background:none - \setupbackgrounds[\v!page] - [background=] -\stopsetups - -\startsetups simpleslides:background:empty - \message{I don't know the name of the background you have provided.} - \setups{simpleslides:background:horizontal} -\stopsetups - -%D Now we move on to specific components of the presentation. The first thing in -%D any presentation is the title page, so we start with that. We define a macro -%D that stores values for the title, author and date of the presentation. These -%D are input as -%D \starttyping -%D \setupTitle[title={How to write a sub module for simpleslides}, -%D author={Aditya Mahajan}, -%D date={\currentdate[d=10,m=7,y=2008]}] -%D \stoptyping -%D This setup command can also setup the color and style for the title, author, -%D and date. - -\def\setupTitle% - {\dosingleargument\dosetupTitle} - -\def\dosetupTitle[#1]% - {\setupmodule[simpleslides:title][#1]} - -%D A few macros to save some typing - -\def\simpleslidestitleparameter%#1 - {\moduleparameter{simpleslides:title}} - -\def\simpleslidestitlecomponent#1% - {\simpleslidestitleparameter{\c!before#1} - \startalignment[\simpleslidestitleparameter{#1\c!align}] - \doattributes{\??md:simpleslides:title:}{#1\c!style}{#1\c!color} - {\moduleparameter{simpleslides:title}{#1}} - \stopalignment - \simpleslidestitleparameter{\c!after#1}} - -%D \macros{placeTitle} -%D -%D The macro \tex{placeTitle} produces a title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\placeTitle - {\page - \setupPageBackground[title] - \null - \simpleslidestitleparameter\c!before - \startalignment[\simpleslidestitleparameter\c!align] - \dostartattributes{\??md:simpleslides:title:}\c!headstyle\c!headcolor - \simpleslidestitlecomponent\c!title - \simpleslidestitlecomponent\c!author - \simpleslidestitlecomponent\c!date - \dostopattributes - \stopalignment - \simpleslidestitleparameter\c!after - \page} - -%D If a sub-module wants to display more information about the presentation -%D (e.g., institute of the author), it can be simply input as -%D \starttyping -%D \setupTitle[institute={Some University}] -%D \stoptyping -%D This parameter can be accessed inside the module as -%D \type{\simpleslidestitleparameter{institute}}, and the module writer -%D can redefine \type{\placeTitle} to display the institute at the appropriate -%D place. - - -%D Now we setup some default values for the title page. Other modules will -%D redefine these values later. - -\setupTitle - [\c!title=, - \c!author=, - \c!date=\currentdate, - \c!style=, - \c!color=red, - \c!align=\v!middle, - \c!before=\vfill, - \c!after=\vfill, - \c!title\c!style={\switchtobodyfont[\TitleSize]}, - \c!title\c!color=, - \c!title\c!align=,%\v!middle, - \c!author\c!style=, - \c!author\c!color=, - \c!author\c!align=,%\v!middle, - \c!date\c!style=, - \c!date\c!color=, - \c!date\c!align=,%\v!middle, - \c!before\c!title=, - \c!before\c!author=, - \c!before\c!date=, - \c!after\c!title={\blank[2*line]}, - \c!after\c!author={\blank[3*line]}, - \c!after\c!date=] - -%D \macros{SlideTitle} -%D \tex{SlideTitle}: well, the name says it all. The -%D argument is typeset as the title, but the implementation and the result -%D (alignment, size, distance to text, color etc.) vary from module to module, -%D so this macro is defined in each of the submodules. - -\def\setupSlideTitle - {\dosingleargument\dosetupSlideTitle} - -\def\dosetupSlideTitle[#1]% - {\setupmodule[simpleslides:slidetitle] - [\c!alternative=\v!normal,\c!width=\textwidth, - \c!height=2\lineheight,#1]} - -\def\simpleslidesslidetitleparameter%#1 - {\moduleparameter{simpleslides:slidetitle}} - -\def\defineSlideTitleAlternative - {\dodoubleargument\dodefineSlideTitleAlternative} - -\def\dodefineSlideTitleAlternative[#1][#2]% #3 - {\setvalue{simpleslides:slidetitle:#1}} - -\defineSlideTitleAlternative[\v!normal]#1% - {\page[\simpleslidesslidetitleparameter\c!page]% - \simpleslidesslidetitleparameter\c!before - \startalignment[\simpleslidesslidetitleparameter\c!align] - \doattributes{\??md:simpleslides:slidetitle:}\c!style\c!color{#1}% - \stopalignment - \simpleslidesslidetitleparameter\c!after} - -%D The layered alternative is adapted from a sample document that Brooks Moses -%D published on the wiki: - -\defineSlideTitleAlternative[layer]#1% - {\page[\simpleslidesslidetitleparameter\c!page]% - \simpleslidesslidetitleparameter\c!before - \setlayer[simpleslides:layer:slidetitle]% - {\getvalue{simpleslides:framed} - [\c!width=\simpleslidesslidetitleparameter\c!width, - \c!height=\simpleslidesslidetitleparameter\c!height, - \c!align=\simpleslidesslidetitleparameter\c!align] - {\doattributes{\??md:simpleslides:slidetitle:}\c!style\c!color{#1}}}% - \simpleslidesslidetitleparameter\c!after} - - -%D Now the main user command - -\def\SlideTitle{\dowithpargument\doSlideTitle} - -\def\doSlideTitle% #1 - {\getvalue{simpleslides:slidetitle:\simpleslidesslidetitleparameter{alternative}}} - -\setupSlideTitle - [\c!page=\v!yes, - \c!style={\switchtobodyfont[\TitleSize]}, - \c!before={\setupPageBackground[horizontal]}, - \c!after={\blank[0.75cm]}, - \c!align=\v!middle, - \c!alternative=\v!normal] - - -%AM: Clean this up later. - -%D \macros{IncludePicture} -%D The macros for placing pictures. This section has been entirely rewritten in -%D order to provide a cleaner user interface and to make the code easier to -%D maintain. We now have just one macro, \tex{IncludePicture}, which -%D automatically inserts page breaks and adjusts the background and margins, if -%D necessary. This macro takes four arguments: -%D \setup{IncludePicture} -%D The first argument decides whether the picture will be place in a horizontal -%D or vertical arrangement; the second argument is the filename of the picture -%D you want to include; the third argument does some setup, and the fourth -%D argument (in braces) is the text accompanying the picture, which will be -%D placed either in a \tex{SlideTitle} environment (for horizontal pictures) or -%D opposite the picture, centered horizontally and vertically, for vertical -%D pictures. - -%D The user macro takes three arguments in brackets + an additional argument -%D for typeset content. So we define it in two steps: - -\def\setupPicture - {\dosingleargument\dosetupPicture} - -\def\dosetupPicture[#1]% - {\setupmodule[simpleslides:picture] - [highlight=\v!no, - steps=5, - opacity=0.5, - \c!x\c!scale=couple, - \c!y\c!scale=couple, - \c!width=,\c!height=,#1]} - -\setupPicture - [highlight=\v!no,%yes|no|default=no - \c!alternative=\v!none,%none|circle|arrow|focus|default=none - \c!grid\c!color=darkgreen, - \c!grid=\v!no, - \c!sub\c!grid=\v!no, - steps=5,%controls the number of subdivisions of the subgrid - \c!rulethickness={OverlayWidth/100},%for circle and arrow - \c!color=orange,% should this be called highlightcolor? - \c!x=5, - \c!y=5, - \c!x\c!scale=couple, - \c!y\c!scale=couple, - length=2cm, - direction=0, - opacity=0.5, - shadow=\v!no, - shadow\c!color=black, - ] - -\def\simpleslidesPictureParameter%#1 - {\moduleparameter{simpleslides:picture}} - - -\newconditional\simpleslidesHighlight \setfalse\simpleslidesHighlight -\newconditional\simpleslidesGrid \setfalse\simpleslidesGrid -\newconditional\simpleslidesSubGrid \setfalse\simpleslidesSubGrid - -\chardef\simpleslidesHighlightAlternative\zerocount %0=none, 1=circle, - %2=arrow, 3=focus -\chardef\simpleslidesShadow\zerocount %0=no, 1=topleft, 2=topright, - %3=bottomright, 4=bottomleft - -\def\IncludePicture% - {\dotripleargument\doIncludePicture} - - -\def\doIncludePicture[#1][#2][#3]#4% dir graphic options text - {\begingroup % Else the settings of \setupPicture are global - \setupPicture[#3]% - \processaction - [\simpleslidesPictureParameter{highlight}] - [ \v!yes=>\settrue\simpleslidesHighlight, - \v!no=>\setfalse\simpleslidesHighlight, - \v!default=>\setfalse\simpleslidesHighlight, - \v!unknown=>\setfalse\simpleslidesHighlight] - % - \processaction - [\simpleslidesPictureParameter\c!grid] - [ \v!yes=>\settrue\simpleslidesGrid, - \v!no=>\setfalse\simpleslidesGrid, - \v!default=>\setfalse\simpleslidesGrid, - \v!unknown=>\setfalse\simpleslidesGrid] - % - \processaction - [\simpleslidesPictureParameter{\c!sub\c!grid}] - [ \v!yes=>\settrue\simpleslidesSubGrid, - \v!no=>\setfalse\simpleslidesSubGrid, - \v!default=>\setfalse\simpleslidesSubGrid, - \v!unknown=>\setfalse\simpleslidesSubGrid] - % - \processaction - [\simpleslidesPictureParameter{shadow}] - [ \v!no=>\chardef\simpleslidesShadow\zerocount, - \v!yes=>\chardef\simpleslidesShadow\plusthree, - \v!top\v!left=>\chardef\simpleslidesShadow\plusone, - \v!top\v!right=>\chardef\simpleslidesShadow\plustwo, - \v!bottom\v!right=>\chardef\simpleslidesShadow\plusthree, - \v!bottom\v!left=>\chardef\simpleslidesShadow\plusfour, - \v!default=>\chardef\simpleslidesShadow\zerocount, - \v!unknown=>\chardef\simpleslidesShadow\zerocount] - % - \edef\simpleslidesGridColor{\simpleslidesPictureParameter{\c!grid\c!color}}% - \doifnothing{\simpleslidesGridColor}{\edef\simpleslidesGridColor{green}}% - % - \processaction - [\simpleslidesPictureParameter\c!alternative] - [ circle=>\chardef\simpleslidesHighlightAlternative\plusone - \simpleslidesSetEllipseDimensions, - arrow=>\chardef\simpleslidesHighlightAlternative\plustwo, - focus=>\chardef\simpleslidesHighlightAlternative\plusthree - \simpleslidesSetEllipseDimensions, - \v!default=>\chardef\simpleslidesHighlightAlternative\zerocount, - \v!unknown=>\chardef\simpleslidesHighlightAlternative\zerocount] - % - \processaction[#1] - [\v!horizontal=>{\doIncludePictureHorizontal[#2]{#4}}, - \v!vertical=>{\doIncludePictureVertical[#2]{#4}}, - \v!default=>{\doIncludePictureHorizontal[#2]{#4}}, - \v!unknown=>{\doIncludePictureHorizontal[#2]{#4}}% - \message{Keywords for positioning pictures are - "horizontal" or "vertical." - Please specify one of them!}] - \endgroup} - -%D We have to set the width or height for vertical and horizontal pictures -%D separately. We test if the user has supplied values for the "width" and -%D "height" key. If they have been set, these are used for the width/height of -%D the picture. If not, we determine the ratio of the picture and let it fill -%D the available space. Small pictures will be enlarged, big pictures will be -%D fit. This code was suggested by Wolfgang Schuster on the mailing list. - -\def\setPictureDimensionsTo#1#2% graphic width - {\doifelsenothing{\simpleslidesPictureParameter\c!width} - {\doifelsenothing{\simpleslidesPictureParameter\c!height} - {\setbox\scratchbox\hbox{\externalfigure[#1]} - % Courtsey Wolfgang Schuster - \ifdim\dimexpr#2*100/\wd\scratchbox\relax < - \dimexpr\PictureFrameHeight*100/\ht\scratchbox\relax - % - \setvalue{simpleslides:picture:width}{#2}% - \setvalue{simpleslides:picture:height}{}% - \else - \setvalue{simpleslides:picture:width}{}% - \setvalue{simpleslides:picture:height}{\PictureFrameHeight}% - \fi} - {\setvalue{simpleslides:picture:width}{}% - \setvalue{simpleslides:picture:height}{\simpleslidesPictureParameter\c!height}}} - {\setvalue{simpleslides:picture:width}{\simpleslidesPictureParameter\c!width} - \setvalue{simpleslides:picture:height}{}}}% not \simpleslidesPictureParameter\c!height - -%D This macro places the picture centered both vertically and horizontally. - -\def\doplacePictureFrame[#1]#2% - {\framed[\c!frame=\v!off, - \c!framecolor=green, - \c!align=\v!middle, - \c!top=\vss, - \c!bottom=\vss, - \c!strut=\v!no, - \c!offset=\zeropoint,#1] - {\framed[\c!frame=\v!off, - \c!framecolor=red, - \c!strut=\v!no, - \c!offset=\zeropoint, - \c!width=\v!fit, - \c!height=\v!fit, - \c!background={foreground,simpleslides:background:highlight}] - {#2}}} - - -%D This macro places the picture in horizontal mode. - -\def\doIncludePictureHorizontal[#1]#2% graphic text - {\setPictureDimensionsTo{#1}\textwidth - \SlideTitle{#2}% - \doplacePictureFrame - [\c!width=\textwidth, - \c!height=\PictureFrameHeight] - {\externalfigure[#1] - [\c!height=\getvalue{simpleslides:picture:height}, - \c!width=\getvalue{simpleslides:picture:width}]}% - \page}% Otherwise last page is not correct in \MKII. - -%D This macro places the picture in vertical mode. - -\def\doIncludePictureVertical[#1]#2% graphic text - {\page - \setPictureDimensionsTo{#1}\PictureFrameWidth - \setupPageBackground[vertical] - \startcombination[2] - {\doplacePictureFrame - [\c!height=\textheight, - \c!width=\PictureFrameWidth] - {\externalfigure[#1] - [\c!height=\getvalue{simpleslides:picture:height}, - \c!width=\getvalue{simpleslides:picture:width}]}}{} - {\framed[\c!frame=\v!off, - \c!height=\textheight, - \c!width=\PictureFrameWidth, - \c!top=\vss, - \c!bottom=\vss, - \c!align=\v!middle, - \c!strut=\v!no]{#2}}{} - \stopcombination - \page}% Otherwise last page is not correct in \MKII. - -%D Now, we define the main \METAPOST\ graphic to highlight the picture. It first -%D checks if the user has asked for a grid, and if so, draws a grid and a -%D subgrid. Then it checks which alternative (arrow, circle, focus) is requested -%D and draws that. Notice that we have intermixed \TEX\ and \METAPOST, -%D exploiting the power of the MP-TEX interaction provided by \CONTEXT. - -\startuseMPgraphic{simpleslides:MP:highlight} -\ifconditional \simpleslidesHighlight - \ifconditional \simpleslidesGrid - \includeMPgraphic{simpleslides:MP:highlight:grid} - \ifconditional \simpleslidesSubGrid - \includeMPgraphic{simpleslides:MP:highlight:subgrid}% - \fi - \fi - \ifcase \simpleslidesHighlightAlternative \or - \includeMPgraphic{simpleslides:MP:highligh:circle} \or - \includeMPgraphic{simpleslides:MP:highligh:arrow} \or - \includeMPgraphic{simpleslides:MP:highligh:focus} \fi - \fi - setbounds currentpicture to OverlayBox ; -\stopuseMPgraphic - -%D Metapost graphic to draw a 10x10 grid on a picture. The width of the grid -%D line is 1/250th of the width of the picture, so smaller picture have smaller -%D grid lines. - -\startuseMPgraphic{simpleslides:MP:highlight:grid} - save xaxis, yaxis ; path xaxis, yaxis ; - xaxis := leftboundary OverlayBox ; - yaxis := bottomboundary OverlayBox ; - - - for i = 0 upto 10 : - - draw xaxis shifted (i/10*OverlayWidth, 0) - withpen pencircle scaled (OverlayWidth/250) - withcolor \MPcolor\simpleslidesGridColor ; - - draw yaxis shifted (0,i/10*OverlayHeight) - withpen pencircle scaled (OverlayWidth/250) - withcolor \MPcolor\simpleslidesGridColor ; - - label.bot(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" - & decimal i & "\stopcolor"), - (i/10*OverlayWidth, 0)) ; - label.top(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" - & decimal i & "\stopcolor"), - (i/10*OverlayWidth, OverlayHeight)) ; - - label.lft(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" - & decimal i & "\stopcolor"), - (0, i/10*OverlayHeight)) ; - label.rt(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" - & decimal i & "\stopcolor"), - (OverlayWidth, i/10*OverlayHeight)) ; - endfor ; - setbounds currentpicture to OverlayBox ; -\stopuseMPgraphic - -%D The Metapost graphic draws a fine grid on the picture. The number of grid -%D lines is controlled by \type{steps} parameter of \type{\setupPicture}. Each -%D grid box of the 10x10 grid drawn above is subdivided into \type{steps} number -%D of finer lines. - -\startuseMPgraphic{simpleslides:MP:highlight:subgrid} - save xaxis, yaxis ; path xaxis, yaxis ; - xaxis := leftboundary OverlayBox ; - yaxis := bottomboundary OverlayBox ; - - - save stepSize ; numeric stepSize ; - stepSize := \simpleslidesPictureParameter{steps} + epsilon ; - - for i = 0 step 10/stepSize until 100 : - if i mod 10 <> 0 : - draw xaxis shifted (i/100*OverlayWidth, 0) - withpen pencircle scaled (OverlayWidth/500) - withcolor \MPcolor\simpleslidesGridColor ; - draw yaxis shifted (0,i/100*OverlayHeight) - withpen pencircle scaled (OverlayWidth/500) - withcolor \MPcolor\simpleslidesGridColor ; - fi - - endfor ; - setbounds currentpicture to OverlayBox ; -\stopuseMPgraphic - - -%D This is a helper macro to get the dimensions for the circle. Taking care of -%D expansion inside Metapost is tricky, so we define an external macro to set -%D the x and y scales correctly. This macro does not check if both x and y are -%D equal to 'couple'. We should probably catch that error inside Metapost, and -%D give an error message on the terminal if that is the case. - - -\def\simpleslidesSetEllipseDimensions% - {\edef\simpleslidesCurrentXscale{\simpleslidesPictureParameter{\c!x\c!scale}} - \edef\simpleslidesCurrentYscale{\simpleslidesPictureParameter{\c!y\c!scale}} - \doifelse{\simpleslidesCurrentXscale}{couple} - {\doifelse{\simpleslidesCurrentYscale}{couple} - {\edef\simpleslidesCurrentXscale{1} - \edef\simpleslidesCurrentYscale{1}} - {\dosimpleslidesSetEllipseDimensions}} - {\dosimpleslidesSetEllipseDimensions}} - -\def\dosimpleslidesSetEllipseDimensions% - {\processaction - [\simpleslidesCurrentXscale] - [ couple=>\edef\simpleslidesCurrentXscale{\simpleslidesCurrentYscale*OverlayHeight/5}, - \v!unknown=>\edef\simpleslidesCurrentXscale{\simpleslidesCurrentXscale*OverlayWidth/5}] - \processaction - [\simpleslidesCurrentYscale] - [ couple=>\edef\simpleslidesCurrentYscale{\simpleslidesCurrentXscale}, % no *OverlayWidth/5, it has already been scaled - \v!unknown=>\edef\simpleslidesCurrentYscale{\simpleslidesCurrentYscale*OverlayHeight/5}]} - -%D Metapost graphic to draw a circle. The circle is centered at (x,y) with a -%D x-radius equal to \type{xscale} and y-radius equal to \type{yscale}. If -%D either \type{xscale} or \type{yscale} equals \type{couple}, a circle is drawn -%D with radius equal to the other (non-couple) scale parameter. The thickness of -%D the circle is \type{rulethickness} and the color is \type{color}. The -%D circle is rotated by an angle \type{direction} - -\startuseMPgraphic{simpleslides:MP:highligh:circle} - save p; path p; - p := fullcircle xyscaled - % The dimensions are divided by 5 rather than 10, since the scale - % measures the radius, rather than the diameter. - (\simpleslidesCurrentXscale, \simpleslidesCurrentYscale) - rotated (\simpleslidesPictureParameter\c!direction) - shifted - (\simpleslidesPictureParameter\c!x *OverlayWidth/10, - \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; - - \ifcase \simpleslidesShadow \else - - save shadow_direction ; pair shadow_direction ; - shadow_direction =\simpleslidesPictureParameter\c!rulethickness * - \ifcase \simpleslidesShadow \or - (-1,1) \or (1,1) \or (1,-1) \or (-1,-1) \fi ; - - - save shadow_thickness ; numeric shadow_thickness ; - shadow_thickness := 2.7\simpleslidesPictureParameter\c!rulethickness ; - - def shadow_draw = draw enddef ; - - \includeMPgraphic{simpleslides:MP:highligh:shadow} - \fi - - draw p withcolor \MPcolor{\simpleslidesPictureParameter\c!color} - withpen pencircle scaled (\simpleslidesPictureParameter\c!rulethickness); - -\stopuseMPgraphic - -%D Metapost graphic to draw an arrow. The arrow's tip is at \type{(x,y)}, and it -%D is \type{length} long in the direction specified by \type{direction}. The -%D arrow is \type{2×rulethickness} thick (the factor of 2 is there so that the -%D same default works for both circle and arrows) and is on \type{color} color. -%D -%D TODO: Add \type{shadow} key. - -\startuseMPgraphic{simpleslides:MP:highligh:arrow} - autoarrows := true ; % so that arrow heads are scaled correctly. - - z1 = (\simpleslidesPictureParameter\c!x *OverlayWidth/10, - \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; - z2 = z1 + \simpleslidesPictureParameter{length} * - dir(\simpleslidesPictureParameter{direction}) ; - - save p ; path p ; - p := z2 -- z1 ; - - \ifcase \simpleslidesShadow \else - save shadow_direction ; pair shadow_direction ; - shadow_direction =2*\simpleslidesPictureParameter\c!rulethickness * - dir(\simpleslidesPictureParameter{direction} + - \ifcase \simpleslidesShadow \or - 135 \or 45 \or -45 \or -135 \fi ) ; - - save shadow_thickness ; numeric shadow_thickness ; - shadow_thickness := 2*\simpleslidesPictureParameter\c!rulethickness ; - - def shadow_draw = drawarrow enddef ; - - \includeMPgraphic{simpleslides:MP:highligh:shadow} - \fi - - drawarrow p - withcolor \MPcolor{\simpleslidesPictureParameter\c!color} - withpen pencircle scaled (2*\simpleslidesPictureParameter\c!rulethickness); - -\stopuseMPgraphic - -%D Metapost graphic to focus on a particular area. The coordinates of the focus -%D area are equivalent to that of \type{alternative=circle}. The "unfocussed" -%D area is covered with \type{shadowcolor} made transparent by -%D \type{opacity} amount. - -\startuseMPgraphic{simpleslides:MP:highligh:focus} - save p; path p; - p := fullcircle xyscaled - % The dimensions are divided by 5 rather than 10, since the scale - % measures the radius, rather than the diameter. - (\simpleslidesCurrentXscale, \simpleslidesCurrentYscale) - rotated (\simpleslidesPictureParameter\c!direction) - shifted - (\simpleslidesPictureParameter\c!x *OverlayWidth/10, - \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; - - fill OverlayBox -- reverse p -- cycle - withcolor transparent ("normal", - \simpleslidesPictureParameter{opacity}, - \MPcolor{\simpleslidesPictureParameter{shadow\c!color}}) ; -\stopuseMPgraphic - -%D The next Metapost graphic draws an arrow. To ensure code re-usability, we -%D assume that the shape of the shadow is stored as a path \type{p}, it is -%D shifted by amount \type{shadow_direction} and its thickness is -%D \type{shadow_thickness}. It is the responsibility of the calling function to -%D ensure that this is done. There are four options for the shadow, -%D \type{topleft}, \type{topright}, \type{bottomright}, and \type{bottomleft}. -%D (TODO: Keep this thickness configurable). The shadow is drawn in color -%D \type{shadowcolor}. The arrow is drawn with a transparent color whose opacity -%D is given by \type{opacity}. - -\startuseMPgraphic{simpleslides:MP:highligh:shadow} - %% I hope there were a better way to do this. - for i = 1 upto 20 : - shadow_draw p shifted shadow_direction - withcolor transparent ("normal", - \simpleslidesPictureParameter{opacity}/10, % 0.1, - \MPcolor{\simpleslidesPictureParameter{shadow\c!color}}) - withpen pencircle scaled (i*shadow_thickness/20) ; - endfor -\stopuseMPgraphic - - -%D This is a small square which will be used for itemizations; it will be -%D placed in the margin. - -\startuniqueMPgraphic{simpleslides:itemize:triangle} - fill (0,0) -- (0,0.4cm) -- (0.6cm,0.2cm) -- cycle - withcolor \MPcolor{simpleslides:itemize:color} ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{simpleslides:itemize:square} - fill unitsquare xyscaled(0.4cm,0.4cm) - withcolor \MPcolor{simpleslides:itemize:color} ; -\stopuniqueMPgraphic - - -\protect - -\stopmodule diff --git a/Master/texmf-dist/tex/context/third/simple-slides/t-simpleslides.tex b/Master/texmf-dist/tex/context/third/simple-slides/t-simpleslides.tex deleted file mode 100644 index 19e26c5fe0f..00000000000 --- a/Master/texmf-dist/tex/context/third/simple-slides/t-simpleslides.tex +++ /dev/null @@ -1,80 +0,0 @@ -%D \module -%D [ file=t-simpleslides, -%D version=2009.03.30 -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module simpleslides, -%D author=Aditya Mahajan and Thomas A. Schmitz, -%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. - -%M \usemodule[int-load] -%M \setupcolors[state=start] -%M \loadsetups[cont-en.xml] -%M \loadsetups[t-simpleslides.xml] - -%D This module is meant to facilitate writing presentations in \CONTEXT. It -%D provides a consistent interface and macros; there are different styles which -%D give different output. The module has been written for projector||based -%D presentations, so elements which are typical for screen presentations (such -%D as interactive hyperlinks or tables of contents) are not included. The -%D module is meant for an academic environment, specifically in the humanities. -%D Hence, it has the following characteristics: -%D -%D \startitemize -%D -%D \item The look is rather sober. In academia, presentations are not meant to -%D showcase fancy \TeX\ effects; nothing should divert the audience's attention -%D from the content. -%D -%D \item The module is written for slides which exhibit text and/or images. -%D From my own experience with \TeX||based presentations, I have provided a -%D setup for horizontal (landscape) pictures and for vertical (portrait) -%D pictures, which are accompanied by an area for explanatory text. -%D -%D \item A simple switch in the module setup command will produce different -%D output. -%D -%D \item It is easy to customize the module or to add more styles. -%D -%D \stopitemize -%D -%D The macros are commented rather extensively to give users (especially users -%D relatively new to \CONTEXT) the chance to understand the mechanisms and -%D create their own styles. Of course, I did not invent this code on my own. My -%D thanks are due, as always, to Hans Hagen, whose presentation modules in the -%D \CONTEXT\ core have been a wonderful source of inspiration, to Mojca -%D Miklavec, who provided help with Metapost, and to Aditya Mahajan, who helped -%D tremendously in cleaning up the code and making the user interface more -%D consistent. - -\writestatus{loading}{module simpleslides} - -\startmodule[simpleslides] - -\unprotect - -\setupmodule - [style=DoubleFrame, - font=LatinModernSans, - size=17pt, - color=blue, - alternative=square] - -\usemodule - [simpleslides-s] - [default] - -\doiffileelse{\currentmoduleparameter\c!style} - {\usemodule[\currentmoduleparameter\c!style]} - {\usemodule[simpleslides-s][\currentmoduleparameter\c!style]} - -\usemodule - [simpleslides-f] - [default] - -\protect - -\stopmodule diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-f-default.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-f-default.tex new file mode 100644 index 00000000000..bb368d8e91c --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-f-default.tex @@ -0,0 +1,240 @@ +%D \module +%D [ file=simpleslides-f-default, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module simpleslides --- Default font setup, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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 font setup} + +\startmodule[simpleslides-f-default] + +\unprotect + +\setupbodyfontenvironment[default][em=italic] + +%D The fontsize is set via the \type{size}||key; it will be used in numerous +%D setup||commands. In earlier versions, I had used the \tex{processaction} +%D mechanism to define the \tex{NormalSize} and \tex{TitleSize}, but Aditya +%D rightly pointed out that this is somewhat inflexible. I now set the font +%D dimensions directly; \tex{TitleSize} is calculated from \tex{NormalSize}. I +%D do a few tests to get nice sizes. + +\newdimen\simpleslidesNormalSize +\newdimen\simpleslidesTitleSize +\newdimen\simpleslidesSlideTitleSize + +\simpleslidesNormalSize=\moduleparameter{simpleslides}{size}\relax + +\ifdim\simpleslidesNormalSize<16pt% + \simpleslidesTitleSize=1.6\simpleslidesNormalSize\relax% +\else% + \ifdim\simpleslidesNormalSize<20pt% + \simpleslidesTitleSize=1.4142\simpleslidesNormalSize\relax% + \else% + \simpleslidesTitleSize=30pt\relax% + \fi% +\fi% + +\simpleslidesSlideTitleSize = \simpleslidesTitleSize + +\def\NormalSize {\the\simpleslidesNormalSize} +\def\TitleSize {\the\simpleslidesTitleSize} +\def\SlideTitleSize {\the\simpleslidesSlideTitleSize} + +\beginOLDTEX +\setupencoding[default=ec] +\endOLDTEX + +%D The bodyfont needs to be defined so \CONTEXT\ can calculate size switches, +%D math formulas, etc. + +\starttypescript [serif] [default] [size] +\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [rm] [default] +\stoptypescript + +\starttypescript [sans] [default] [size] +\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize] [ss] [default] +\stoptypescript + +\definebodyfontenvironment[\NormalSize] +\definebodyfontenvironment[\TitleSize] + +%D Setups define which font will be used. The module provides simple keywords +%D for using a small set of predefined fonts: Latin Modern, Latin Modern Sans, +%D Adventor (the TeXGyre clone of Gothic), Schola (the TeXGyre clone of +%D Schoolbook), Bonum (the TeXGyre clone of Bookman), Termes (the TeXGyre clone +%D of Times), Pagella (the TeXGyre clone of Palatino), Heros (the TeXGyre clone +%D of Helvetica), and Chancery (the TeXGyre clone of Chancery). Since the +%D definition of typescripts etc. varies according to the \TeX-engine used, we +%D have to branch the code here. This is awkward, but for the time being, I see +%D no other way. + +\startsetups simpleslides:font:LatinModern +\setupbodyfont[\NormalSize] +\stopsetups + +\startsetups simpleslides:font:LatinModernSans +\setupbodyfont[ss,\NormalSize] +\stopsetups + +\beginLUATEX +\usetypescriptfile[type-otf] %Isn't this included by default? +\endLUATEX + +\beginXETEX +\usetypescriptfile[type-otf] +\endXETEX + +\beginOLDTEX +\usetypescriptfile[type-gyr] +\endOLDTEX + +%AM: For all the fonts, I have used traditional names rather than TeX Gyre +%names. + +%D It is difficult to write a typescript that will work with both \MKII\ and +%D \MKIV. If the sixth argument is absent, \CONTEXT\ does the right thing. When +%D the sixth argument is present, e.g., \type{rscale=1.1}, then we also need +%D \type{encoding=something} for the style to work in \MKII. We hope that \MKIV\ +%D simply ignores the \type{encoding} setting. + +\startsetups simpleslides:font:Bookman + \starttypescript[bookman] + \definetypeface [bookman] [rm] [serif] [bookman] [default] + \definetypeface [bookman] [ss] [sans] [adventor] [default] + \definetypeface [bookman] [tt] [mono] [modern] [default] [rscale=1.075] + \definetypeface [bookman] [mm] [math] [pagella] [default] + \stoptypescript + \usetypescript[bookman] + \setupbodyfont[bookman,\NormalSize] +\stopsetups + +\beginLUATEX +%AM: Was Chorus +\startsetups simpleslides:font:Chancery +\starttypescript[serif] [chancery] + \definefontsynonym [ChanceryRoman] [file:texgyrechorus-mediumitalic] [features=default] +\stoptypescript + + \starttypescript [serif] [chancery] + \definefontsynonym [Serif] [ChanceryRoman] [features=default] + \definefontsynonym [SerifItalic] [Serif] + \definefontsynonym [SerifBold] [Serif] + \definefontsynonym [SerifBoldItalic] [Serif] + \definefontsynonym [SerifCaps] [Serif] + \stoptypescript + + \starttypescript [chancery] + \definetypeface [chancery] [rm] [serif] [chancery] [default] + \stoptypescript + \usetypescript[chancery] + \setupbodyfont[chancery,\NormalSize] +\stopsetups +\endLUATEX + +\beginOLDTEX +\startsetups simpleslides:font:Chancery + \loadmapfile[qzc-ec.map] + \starttypescript[serif] [chancery] + \definefontsynonym [ChanceryRoman] [ec-qzcmi] [encoding=ec] + \stoptypescript + + \starttypescript [serif] [chancery] + \definefontsynonym [Serif] [ChanceryRoman] + \definefontsynonym [SerifItalic] [Serif] + \definefontsynonym [SerifBold] [Serif] + \definefontsynonym [SerifBoldItalic] [Serif] + \definefontsynonym [SerifCaps] [Serif] +\stoptypescript + +\starttypescript [chancery] + \definetypeface [chancery] [rm] [serif] [chancery] [encoding=ec] +\stoptypescript +\usetypescript[chancery] +\setupbodyfont[chancery,\NormalSize] +\stopsetups +\endOLDTEX + +\startsetups simpleslides:font:Gothic + \starttypescript[gothic] + \definetypeface [gothic] [rm] [serif] [schola] [default] + \definetypeface [gothic] [ss] [sans] [adventor] [default] + \definetypeface [gothic] [tt] [mono] [modern] [default] + [encoding=\defaultencoding,rscale=1.075] + \definetypeface [gothic] [mm] [math] [palatino] [default] + \stoptypescript + \usetypescript[gothic] + \setupbodyfont[gothic,ss,\NormalSize] +\stopsetups + + +\startsetups simpleslides:font:Helvetica + \usetypescript[postscript] + \setupbodyfont[postscript,ss,\NormalSize] +\stopsetups + + +\beginLUATEX +%AM: Was Pagella +\startsetups simpleslides:font:Palatino + \usetypescript[palatino] + \setupbodyfont[palatino,\NormalSize] +\stopsetups +\endLUATEX + +\beginOLDTEX +\startsetups simpleslides:font:Palatino +\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=texnansi] +\definetypeface [palatino] [tt] [mono] [modern] [default] [encoding=texnansi] +\setupbodyfont[palatino,\NormalSize] +\stopsetups +\endOLDTEX + +\startsetups simpleslides:font:Schoolbook + \starttypescript[schoolbook] + \definetypeface [schoolbook] [rm] [serif] [schola] [default] + \definetypeface [schoolbook] [ss] [sans] [adventor] [default] + \definetypeface [schoolbook] [tt] [mono] [modern] [default] [rscale=1.075] + \definetypeface [schoolbook] [mm] [math] [pagella] [default] + \stoptypescript + \usetypescript[schoolbook] + \setupbodyfont[schoolbook,\NormalSize] +\stopsetups + +\beginLUATEX +\startsetups simpleslides:font:Times + \usetypescript[postscript] + \setupbodyfont[postscript,\NormalSize] +\stopsetups +\endLUATEX + +\beginOLDTEX +\startsetups simpleslides:font:Times + \starttypescript [postscript] + \definetypeface [postscript] [rm] [serif] [times] [default] + \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9] + \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] + \definetypeface [postscript] [mm] [math] [times] [default] + \stoptypescript + \usetypescript[postscript] + \setupbodyfont[postscript,\NormalSize] +\stopsetups +\endOLDTEX + + +\doifsetupselse{simpleslides:font:\moduleparameter{simpleslides}{font}} + {\setups{simpleslides:font:\moduleparameter{simpleslides}{font}}} + {\setups{simpleslides:font:LatinModern}% + \message{There is no setup for + "font=\moduleparameter{simpleslides}{font}". Latin Modern Sans will be + used as a fallback}} + +\protect + +\stopmodule diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BigNumber.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BigNumber.tex new file mode 100644 index 00000000000..f0d890b0fb8 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BigNumber.tex @@ -0,0 +1,226 @@ +%D \module +%D [ file=simpleslides-s-BigNumber, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Big Number Style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{BigNumber} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading Big Number style} + +\startmodule[simpleslides-s-BigNumber] + +\unprotect + +%D First, we change the page layout to have more space all around + +\setuplayout [width=fit, + margin=2cm, + height=fit, + leftmargindistance=.8cm, + rightmargindistance=0cm, + header=18mm, + footer=0cm, + topspace=.8cm, + backspace=2cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=18mm] +\setuplayout [simpleslides:layout:vertical] [header=0mm] +\setuplayout [simpleslides:layout:title] + +\setuplayer[simpleslides:layer:slidetitle] + [width=\paperwidth, + height=\paperheight,x=20mm] + +%D Next we a generic frames, which will be used by other macros to +%D get a consistent look and feel. + +\defineframed[simpleslides:framed:small] + [frame=off,offset=0pt, + width=1.7cm,align=middle] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D This module has two color schemes, a blue one and a red one. + +\startsetups simpleslides:setups:blue +\definecolor [simpleslides:contrastcolor] [r=0.8,g=0.8,b=0.9] +\definecolor [simpleslides:backgroundcolor] [s=.88] +\definecolor [simpleslides:textcolor] [s=0] +\stopsetups + +\startsetups simpleslides:setups:red +\definecolor [simpleslides:contrastcolor] [r=0.45,] +\definecolor [simpleslides:backgroundcolor] [s=.18] +\definecolor [simpleslides:textcolor] [s=1] +\stopsetups + +%D Now we choose the scheme that the user asked for + +\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} + {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} + {\setups{simpleslides:setups:blue}} + +\setupcolors[textcolor={simpleslides:textcolor}] + + +%D The characteristic feature of this module is that the page number is drawn in +%D big letters on the slide. First we define the font used to draw the number. +%D The is a bit verbose since \MKII\ and \MKIV\ have different ways of loading +%D fonts. + +\beginOLDTEX +\loadmapfile[qhv-ec.map] +\definefontsynonym [BigNumberFont] [ec-qhvb] +\endOLDTEX + +\beginXETEX +\loadmapfile[qhv-ec.map] +\definefontsynonym [BigNumberFont] [ec-qhvb] +\endXETEX + +\beginLUATEX +\definefontsynonym [BigNumberFont] [name:texgyreherosbold] +\endLUATEX + +\definefont [NumberFont] [BigNumberFont at 30pt] + + +%D We use \METAPOST\ to draw backgrounds. First, we define a few helper macros +%D to place text inside \METAPOST + +\definetextext[simpleslides:sometxt:left] {\TaspresentSometxtLeft} +\definetextext[simpleslides:sometxt:right]{\TaspresentSometxtRight} + +\unexpanded\def\TaspresentSometxtLeft#1% + {\getvalue{simpleslides:framed:small} + {\color[simpleslides:contrastcolor] + {\NumberFont #1}}} + +\unexpanded\def\TaspresentSometxtRight#1% + {\getvalue{simpleslides:framed:small} + {\color[simpleslides:backgroundcolor] + {\NumberFont #1}}} + +%D Now we define a \METAPOST| graphic that draws the number. The exact +%D dimensions have been found by trial and error. + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; +save Left, Right ; +picture Left, Right ; + +Left := \sometxt [simpleslides:sometxt:left]{\folio} ysized 6cm; +Right := \sometxt[simpleslides:sometxt:right]{\folio} ysized 6cm; + +save LeftBox, RightBox ; +path LeftBox, RightBox ; + +save split ; numeric split ; +split := if PageNumber < 10 : 1/2 else : 2/3 fi ; + +LeftBox := llcorner Left -- split[llcorner Left, lrcorner Left] + -- split[ulcorner Left, urcorner Left] -- ulcorner Left --cycle ; + +RightBox := lrcorner Right -- split[lrcorner Right, llcorner Right] + -- split[urcorner Right, ulcorner Right] -- urcorner Right --cycle ; + +if PageNumber >= 10 : +RightBox := RightBox shifted split[lrcorner Right, llcorner Right] ; +fi; + +clip Left to LeftBox ; +clip Right to RightBox ; + +save corner; pair corner ; +corner := lrcorner Field[Text][Text] shifted (.2cm,-1cm) ; % same as x2 + +labeloffset := 0bp; + +label.ulft(Left, corner) ; +label.urt (Right, corner) ; + +StopPage ; +\stopuseMPgraphic + +%D We also use \METAPOST\ to draw the horizontal and vertical page backgrounds. + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +fill Page withcolor \MPcolor{simpleslides:contrastcolor} ; +fill Field[Text][Text] enlarged 0.2cm + withcolor \MPcolor{simpleslides:backgroundcolor} ; +StopPage ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:vertical} +StartPage ; +fill Page withcolor \MPcolor{simpleslides:contrastcolor} ; + +z1 = urcorner Field[Text][Text] shifted (.2cm,0) ; +z2 = lrcorner Field[Text][Text] shifted (.2cm,-.2cm) ; +z3 = z1 shifted (-8.05cm,0) ; +z4 = (x3,y2) ; + +save Main ; +path Main ; +Main := z1 -- z2 -- z4 -- z3 --cycle ; + +fill Main withcolor \MPcolor{simpleslides:backgroundcolor} ; +StopPage ; +\stopuniqueMPgraphic + + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D The slide title is placed on the top of the text area. The layer takes care +%D of the positioning. + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!height=2.5cm, + \c!command=\doSlideTitle] + + +%D Squares are used as the first level of itemizations + +\definesymbol[1][$\square$] +\setupitemize[1][inmargin] +%\setupitemize[each][joinedup,unpacked] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex new file mode 100644 index 00000000000..77633d23c69 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex @@ -0,0 +1,135 @@ +%D \module +%D [ file=simpleslides-s-BottomSquares, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- BottomSquares style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{BottomSquares} style for the presentation +%D module. It is loaded at runtime. This minimalistic design is inspired by a +%D presentation Taco gave at EuroTeX 2006. + +\writestatus{simpleslides}{loading module BottomSquares} + +\startmodule[simpleslides-s-BottomSquares] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + height=middle, + margin=0cm, + height=fit, + margindistance=0cm, + header=0cm, + footer=0cm, + topspace=1cm, + bottomspace=2cm, + backspace=1.5cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=1.4cm] +\setuplayout [simpleslides:layout:vertical] [header=0cm] +\setuplayout [simpleslides:layout:title] [header=0cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=15mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.5\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.5\textwidth} + +% %D We define a generic frame that is used by the slide title. +% +% \defineframed[simpleslides:framed] +% [frame=off,offset=0pt, +% top=\vss,bottom=\vss] + + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3] +\definecolor [simpleslides:variantcolor] [s=.3] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We let \METAPOST\ calculate the background: + +%AM: Why not implement this as an interaction bar? + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +save diff ;numeric diff; +diff = .3cm ; + +save w; numeric w; +w = xpart (lrcorner Field[Text][Text] - llcorner Field[Text][Text]) - diff ; + +save factor; numeric factor; +factor = w/(NOfPages - 1) ; + +save p; path p ; +p = unitsquare xyscaled (diff,diff) + shifted (xpart llcorner Field[Text][Text],0.85cm) ; + +for i = 1 upto NOfPages: + if PageNumber = i: + fill p xyscaled (0,2) shifted ( (i-1)*factor,-diff-0.85cm) + withcolor \MPcolor{simpleslides:contrastcolor} ; + else : + fill p shifted ( (i-1)*factor, 0) + withcolor \MPcolor{simpleslides:variantcolor} ; + fi ; +endfor ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We want the title information to be colored + +\setupTitle + [\c!headcolor={simpleslides:contrastcolor}] + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:contrastcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=3cm, + \c!after=] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Boxed.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Boxed.tex new file mode 100644 index 00000000000..cec57643210 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Boxed.tex @@ -0,0 +1,173 @@ +%D \module +%D [ file=simpleslides-s-Boxed, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Boxed Style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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. + +%D This file provides the \quotation{Boxed} style for the presentation +%D module. It is loaded at runtime. The look of this style was inspired by the +%D screen version of the Metafun manual. + +\writestatus{simpleslides}{loading style Boxed} + +\startmodule[simpleslides-s-Boxed] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=2cm, + height=fit, + leftmargindistance=1cm, + rightmargindistance=0cm, + header=2.8cm, + footer=1cm, + topspace=.7cm, + backspace=2cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=2.8cm] +\setuplayout [simpleslides:layout:vertical] [header=1.4cm] +\setuplayout [simpleslides:layout:title] [header=1.4cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=20mm, + y=15mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D We define our colorscheme: + +\definecolor [simpleslides:backgroundcolor] [s=.75] +\definecolor [simpleslides:altbackgroundcolor] [s=.2] +\definecolor [simpleslides:contrastcolor] [r=.55, g=0, b=.04] +\definecolor [simpleslides:variantcolor] [yellow] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We let Metapost calculate the background: + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; + +save p; path p[] ; + +save a ; numeric a ; +a := 1.5cm ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z1 = ulcorner Page shifted (a,0) ; z2 = urcorner Page shifted (-a,0) ; +z3 = urcorner Page shifted (0,-a); z4 = lrcorner Page shifted (0,a) ; +z5 = (x2,0) ; z6 = (x1,0) ; +z7 = (0,y4) ; z8 = (0,y3) ; +z9 = (x1,y3) ; z10 = (x2,y3) ; +z11 = (x2,y4) ; z12 = (x1,y4) ; + +p[1] = z9 -- z12 -- z7 -- z8 -- cycle ; +p[2] = z10 -- z3 -- z4 -- z11 -- cycle ; +p[3] = z12 -- z11 -- z5 -- z6 -- cycle ; +p[4] = z9 -- z10 -- z2 -- z1 -- cycle ; + +fill p[1] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; +fill p[2] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; +fill p[3] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; +fill p[4] withcolor \MPcolor{simpleslides:altbackgroundcolor} ; + +pickup pencircle scaled 8 pt ; + +draw z1 -- z6 withcolor \MPcolor{simpleslides:contrastcolor} ; +draw z2 -- z5 withcolor \MPcolor{simpleslides:contrastcolor} ; +draw z7 -- z4 withcolor \MPcolor{simpleslides:contrastcolor} ; +draw z8 -- z3 withcolor \MPcolor{simpleslides:contrastcolor} ; + +StopPage ; +\stopuniqueMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage + +save a; numeric a; +a := 1.5cm ; + +save factor, allpages, shift ; +numeric factor, allpages, shift ; + +factor :=(NOfPages div 18) + 1 ; +allpages := if NOfPages <= 18 : NOfPages elseif odd NOfPages : NOfPages + 1 + else : NOfPages fi ; + +shift := factor * (PaperWidth -2a)/allpages ; + +save p ;path p ; +p := fullcircle scaled 4mm shifted (a + shift/2, a/2) ; + +for i = 1 upto allpages/factor : + fill p shifted ( (i-1)*shift, 0) + if i - 1 = floor ((PageNumber - 1)/factor) : + withcolor \MPcolor{simpleslides:variantcolor} ; + else : + withcolor \MPcolor{simpleslides:backgroundcolor} ; + fi ; +endfor ; + + +StopPage +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D The title page: + +\setupTitle + [\c!headcolor={simpleslides:contrastcolor}] + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:contrastcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=2.3cm, + \c!after=] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][inmargin][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Ellipse.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Ellipse.tex new file mode 100644 index 00000000000..09657f7ccc2 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Ellipse.tex @@ -0,0 +1,129 @@ +%D \module +%D [ file=simpleslides-s-Ellipse, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module Ellipse, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{Ellipse} style for the presentation +%D module. The design is inspired by Hans's "funny" presentation module +%D (s-pre-03). It is loaded at runtime. + +\writestatus{simpleslides}{loading Ellipse style} + +\startmodule[simpleslides-s-Ellipse] + +\unprotect + +%D First, we change the page layout. + +\setuplayout [width=fit, + height=fit, + margin=0cm, + header=1.2cm, + footer=0cm, + topspace=1.8cm, + backspace=1.5cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=15mm] +\setuplayout [simpleslides:layout:vertical] [header=0mm] +\setuplayout [simpleslides:layout:title] [header=0mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.5\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.5\textwidth} + +\setuplayer + [simpleslides:layer:slidetitle] + [y=8mm, + x=15mm] + +%D We define our color scheme: + +\definecolor[simpleslides:variantcolor] [s=0] +\definecolor[simpleslides:backgroundcolor] [s=.8] +\definecolor[simpleslides:contrastcolor] [r=.5,g=0,b=0] +\definecolor[simpleslides:altcontrastcolor] [r=.9,g=0,b=0] +\definecolor[simpleslides:itemize:color] [r=.5] + +%D We let Metapost calculate the background: + +\startuseMPgraphic{simpleslides:MP:horizontal} +StartPage ; + fill Page withcolor \MPcolor{simpleslides:variantcolor} ; + save p ; path p ; + p := Page enlarged (-15pt,-15pt) superellipsed .9 ; + fill p withcolor \MPcolor{simpleslides:backgroundcolor} ; + pickup pencircle scaled 20pt ; + draw p withcolor \MPcolor{simpleslides:contrastcolor} ; +StopPage ; +\stopuseMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; + save p ; path p ; + p := Page enlarged (-15pt,-15pt) superellipsed .9 ; + pickup pencircle scaled 20pt ; + save pa, pb; pair pa, pb ; + if PageNumber>1: + pa := point (3 + (6*PageNumber) / NOfPages) of p ; + pb := point (3 + (6*(PageNumber-1)) / NOfPages) of p ; + draw (p cutafter pa) cutbefore pb + withcolor \MPcolor{simpleslides:altcontrastcolor} ; + fi ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We want the title to placed in color. + +\setupTitle[\c!headcolor={simpleslides:contrastcolor}] + +%D We want the slide title on the top + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!align=\v!center, + \c!height=3.5cm, + \c!color=simpleslides:contrastcolor] + +\setupcombinations[distance=0cm] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][\c!color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Embossed.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Embossed.tex new file mode 100644 index 00000000000..e8e24f39bd4 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Embossed.tex @@ -0,0 +1,172 @@ +%D \module +%D [ file=simpleslides-s--Embossed, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Embossed style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{embossed} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading module embossed} + +\startmodule[simpleslides-s-Embossed] + +\unprotect +%D The page layout: + +\setuplayout [width=fit, + margin=1.3cm, + height=fit, + header=1cm, + footer=1cm, + topspace=10mm, + backspace=2cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=1cm] +\setuplayout [simpleslides:layout:vertical] [header=0cm] +\setuplayout [simpleslides:layout:title] [header=0cm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight{.94\textheight} +\define\NormalWidth{.476\textwidth} +\define\PictureFrameHeight{.94\textheight} +\define\PictureFrameWidth{.476\textwidth} + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=20mm,y=2mm] + +%D Next we define a generic frame + +\defineframed[simpleslides:framed] + [frame=off,offset=0pt, + top=\vss,bottom=\vss] + +\defineframed[simpleslides:framed:big] + [frame=off,offset=0pt,strut=no, + width=\textwidth,height=2cm, + top=\vss,bottom=\vss] + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [r=1,g=1,b=.8] +\definecolor [simpleslides:variantcolor] [r=.6,g=.2,b=.2] +\definecolor [simpleslides:specialcolor:1] [r=.4,g=.2,b=.2] +\definecolor [simpleslides:specialcolor:2] [r=.7,g=.2,b=.2] +\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.5] +\definecolor [simpleslides:framecolor] [s=.4] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D This module write "Made with ConTeXt" in bold at the bottom. We first define +%D a font for it. + +\beginOLDTEX +\loadmapfile[qhv-ec.map] +\definefontsynonym [Embossed] [ec-qhvb] +\endOLDTEX + +\beginXETEX +\loadmapfile[qhv-ec.map] +\definefontsynonym [Embossed] [ec-qhvb] +\endXETEX + +\beginLUATEX +\definefontsynonym [Embossed] [name:texgyreherosbold] +\endLUATEX + +\definefont[EmblemFont] [Embossed at 30pt] + +%D The emblem string is configurable. + +\setuplabeltext [\s!en] [simpleslidesemblem={Made with \CONTEXT}] + +\definetextext[simpleslides:sometxt:left] {\TaspresentSometxtLeft} +\definetextext[simpleslides:sometxt:right]{\TaspresentSometxtRight} + +\unexpanded\def\TaspresentSometxtLeft#1% + {\getvalue{simpleslides:framed:big} + {\EmblemFont\color[simpleslides:specialcolor:1] + {#1}}} + +\unexpanded\def\TaspresentSometxtRight#1% + {\getvalue{simpleslides:framed:big} + {\EmblemFont\color[simpleslides:specialcolor:2] + {#1}}} + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; + +save a, b; +numeric a; a = 2cm ; +numeric b; b = 0.9cm ; + +z1 = llcorner Page shifted (0,a) ; +z2 = lrcorner Page shifted (0,a) ; + +save bottom ; path bottom ; +bottom = llcorner Page -- z1 -- z2 -- lrcorner Page -- cycle ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill bottom withcolor \MPcolor{simpleslides:variantcolor} ; + +draw Page withcolor \MPcolor{simpleslides:framecolor} + withpen pencircle scaled 12pt ; +draw topboundary bottom withcolor \MPcolor{simpleslides:framecolor} + withpen pencircle scaled 6pt ; + + +draw \sometxt[simpleslides:sometxt:left]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage} + shifted (1.96cm,0.04cm) ; + +draw \sometxt[simpleslides:sometxt:right]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage} + shifted (2cm,0) ; + +StopPage ; +\stopuseMPgraphic + + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + + +%D We want the presentation title to be in color + +\setupTitle[\c!title\c!color=simpleslides:contrastcolor] + +%D We also want the slide title in a framed box. + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!color={simpleslides:contrastcolor}, + \c!width=\textwidth, + \c!height=2cm, + \c!align=\v!middle] + + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Framed.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Framed.tex new file mode 100644 index 00000000000..4cde7723962 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Framed.tex @@ -0,0 +1,223 @@ +%D \module +%D [ file=simpleslides-s-Framed, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Framed Style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{Framed} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading style Framed} + +\startmodule[simpleslides-s-Framed] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=0.6cm, + height=fit, + header=2.1cm, + footer=1.35cm, + footerdistance=0.5cm, + topspace=0.5cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=2.1cm,backspace=1cm] +\setuplayout [simpleslides:layout:vertical] [header=0cm,backspace=1cm] +\setuplayout [simpleslides:layout:title] [header=0cm,backspace=0.5cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=10mm,y=3mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {.975\textheight} +\define\NormalWidth {.485\textwidth} +\define\PictureFrameHeight {.975\textheight} +\define\PictureFrameWidth {.485\textwidth} + + +%D We define our colors: + +\definecolor [simpleslides:backgroundcolor] [r=.85, g=.85, b=.85] +\definecolor [simpleslides:framecolor] [r=.42, g=.42, b=.7] +\definecolor [simpleslides:contrastcolor] [r=0, g=0, b=.5] +\definecolor [simpleslides:variantcolor] [r=0, g=0, b=1] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We let \METAPOST\ calculate the background. This style have two options for +%D ornaments, square or stripes. We define both, and then choose one depending +%D on the user's choice. + +\startuseMPgraphic{simpleslides:MP:ornament:square} +StartPage; + +save a,b,c,p; +numeric a; a = 0.955cm ; +numeric b; b = 0.52cm ; +numeric c; c = 0.8cm ; +path p[] ; + +for i=1 upto 11: + p[i] = unitsquare xyscaled (a,a) shifted (b+2*(i-1)*a, c) ; + fill p[i] withcolor ((i-1)/10)[\MPcolor{simpleslides:contrastcolor}, + \MPcolor{simpleslides:variantcolor}] ; +endfor ; + +if NOfPages >= 12: + save n ; numeric n ; + n := (10*(PageNumber - 1) div (NOfPages - 1)) + 1; + + draw llcorner p[n] -- urcorner p[n] + withpen pencircle scaled 2pt + withcolor \MPcolor{simpleslides:backgroundcolor} ; +fi ; + +StopPage; +\stopuseMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament:stripe} +StartPage; + +save p ; +path p[] ; + +p[1] := unitsquare xyscaled(0.95*OverlayWidth,1cm) shifted (0.52cm,0.8cm) ; + +linear_shade(p[1],0, + \MPcolor{simpleslides:backgroundcolor}, + \MPcolor{simpleslides:contrastcolor}) ; + +save i ; +numeric i; i = PageNumber/NOfPages ; + +p[2] = ulcorner p[1] -- urcorner p[1] ; +p[3] = llcorner p[1] -- lrcorner p[1] ; + +save o; +pair o[] ; + +o[1] := point i along p[2] ; +o[2] := point i along p[3] ; + +p[4] = ulcorner p[1] -- o[1] -- o[2] -- llcorner p[1] -- cycle ; + +clip currentpicture to p[4] ; + +StopPage; +\stopuseMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:vertical} +StartPage ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +draw Page enlarged (-.2cm) + withpen pencircle scaled 4pt + withcolor \MPcolor{simpleslides:framecolor} ; + +draw unitsquare + xyscaled(0.448*PaperWidth,0.815*PaperHeight) + shifted (0.528*PaperWidth, 0.15*PaperHeight) + withpen pencircle scaled 2pt + withcolor \MPcolor{simpleslides:framecolor} ; + +StopPage ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +draw Page enlarged (-.2cm) + withpen pencircle scaled 4pt + withcolor \MPcolor{simpleslides:framecolor} ; + +draw unitsquare + xyscaled(0.95*PaperWidth,0.7*PaperHeight) + shifted (0.025*PaperWidth, 0.15*PaperHeight) + withpen pencircle scaled 2pt + withcolor \MPcolor{simpleslides:framecolor} ; + +StopPage; +\stopuniqueMPgraphic + +%D We define these backgrounds as overlays: + + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +%D We define the ornament according to user's choice. + +\startsetups simpleslides:alternative:square +\defineoverlay + [simpleslides:background:ornament] + [\uniqueMPgraphic{simpleslides:MP:ornament:square}] +\stopsetups + +\startsetups simpleslides:alternative:stripe +\defineoverlay + [simpleslides:background:ornament] + [\uniqueMPgraphic{simpleslides:MP:ornament:stripe}] +\stopsetups + +\startsetups simpleslides:alternative:empty + \setups{simpleslides:alternative:square} +\stopsetups + +%D Now we activate the user's choice + +\setups{simpleslides:alternative:\moduleparameter{simpleslides}{alternative}} + +%D The title is typed in a slightly larger font. + +\setupTitle + [\c!title\c!color={simpleslides:contrastcolor}, + \c!title\c!style=\tfc, + \c!author\c!color={simpleslides:contrastcolor}, + \c!author\c!style=\tfa, + \c!date\c!color={simpleslides:contrastcolor}, + \c!date\c!style=\tfa] + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:contrastcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=2.1cm, + \c!after=] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-FramedTitle.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-FramedTitle.tex new file mode 100644 index 00000000000..6c6c3abe8a7 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-FramedTitle.tex @@ -0,0 +1,161 @@ +%D \module +%D [ file=simpleslides-s-FramedTitle, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- FramedTitle style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{FramedTitle} style for the presentation +%D module. It is loaded at runtime. The most interesting part is the scratch +%D counter at the bottom of the page, which is explained in the metafun manual. + +\writestatus{simpleslides}{loading style FramedTitle} + +\startmodule[simpleslides-s-FramedTitle] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=0cm, + height=fit, + header=2.2cm, + footer=.8cm, + topspace=.6cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=2.2cm] +\setuplayout [simpleslides:layout:vertical] [header=0.5cm] +\setuplayout [simpleslides:layout:title] [header=0.5cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=10mm,y=2mm] + + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +\setupframed[simpleslides:framed] + [corner=round, + background=color,backgroundcolor={simpleslides:contrastcolor}] + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [s=.9] +\definecolor [simpleslides:variantcolor] [s=.7] +\definecolor [simpleslides:contrastcolor] [r=.5] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We let Metapost calculate the background: + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +StopPage ; +\stopuniqueMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; + +save a,b ; +numeric a,b ; +a = 7mm ; +b = PaperWidth/2 - NOfPages * 2.5pt ; + +save p,q; path p,q ; +p =((0,5mm) -- (1mm,11mm)) shifted (b,0) ; +q =((-8mm,5mm) -- (0,11mm) ) shifted (b,0) ; + +pickup pencircle scaled 3pt ; +for i := NOfPages-1 downto 1: + draw (if i mod 5 = 0 : q else : p fi) + shifted (i*5pt, 0pt) + withcolor if i < PageNumber : \MPcolor{simpleslides:contrastcolor} + else : \MPcolor{simpleslides:variantcolor} + fi ; +endfor ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We want the title to placed in a framed box. We redefine all the keys of +%D \type{\setupTitle}, so that the module is easier to maintain. + +\setupTitle + [\c!title=, + \c!author=, + \c!date=\currentdate, + \c!headstyle=, + \c!headcolor={simpleslides:backgroundcolor}, + \c!align=\v!middle, + \c!before={\vfill\getvalue{simpleslides:framed} + [\c!width=\textwidth,\c!height=.75\textheight, + \c!align=\v!middle, \c!strut=\v!no] + \bgroup}, + \c!after={\egroup\vfill}, + \c!title\c!style={\switchtobodyfont[\TitleSize]}, + \c!title\c!color=, + \c!title\c!align=,%\v!middle, + \c!author\c!style=, + \c!author\c!color=, + \c!author\c!align=,%\v!middle, + \c!date\c!style=, + \c!date\c!color=, + \c!date\c!align=,%\v!middle, + \c!before\c!title=, + \c!before\c!author=, + \c!before\c!date=, + \c!after\c!title={\blank[1*line]}, + \c!after\c!author={\blank[2*line]}, + \c!after\c!date=] + +%D We also want the slide title in a framed box. + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!height=2.1cm, + \c!width=\textwidth, + \c!color=simpleslides:backgroundcolor] + + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color=simpleslides:contrastcolor] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-HorizontalStripes.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-HorizontalStripes.tex new file mode 100644 index 00000000000..025b74534e0 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-HorizontalStripes.tex @@ -0,0 +1,184 @@ +%D \module +%D [ file=simpleslides-s-HorizontalStripes, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module HorizontalStripes, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \filename{HorizontalStripes} style for the +%D presentation module. It is loaded at runtime. The look of this style was +%D inspired by the \quotation{Copenhagen} theme of the \LaTeX\ {\tt beamer} +%D package. + +\writestatus{simpleslides}{loading HorizontalStripes style} + +\startmodule[simpleslides-s-HorizontalStripes] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=0cm, + height=fit, + header=2.73cm, + footer=0.9cm, + topspace=0cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=2.73cm] +\setuplayout [simpleslides:layout:vertical] [header=0.75cm] +\setuplayout [simpleslides:layout:title] [header=0cm] + +%D In this style, we don't want the ornament background for vertical slides: + +\startsetups simpleslides:background:vertical + \setuplayout[simpleslides:layout:vertical] + \setupbackgrounds[\v!page] + [background={simpleslides:background:vertical}] +\stopsetups + + + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [width=\paperwidth, + height=\paperheight, + x=10mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D This module has three color schemes, blue, green and red. + +\startsetups simpleslides:setups:blue +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:framecolor] [r=.58,g=.58,b=.82] +\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.73] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] +\stopsetups + +\startsetups simpleslides:setups:red +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:framecolor] [r=.82,g=.58,b=.58] +\definecolor [simpleslides:contrastcolor] [r=.73,g=.2,b=.2] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] +\stopsetups + +\startsetups simpleslides:setups:green +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:framecolor] [r=.58,g=.82,b=.58] +\definecolor [simpleslides:contrastcolor] [r=.2,g=.73,b=.2] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] +\stopsetups + +%D Now we choose the scheme that the user asked for + +\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} + {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} + {\setups{simpleslides:setups:blue}} + +%D We let Metapost calculate the background: + +\startuseMPgraphic{simpleslides:MP:common} +save a ; numeric a ; +a = 1.5mm ; + +save p; path p[] ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z1 = ulcorner Page shifted (0,-a) ; +z2 = urcorner Page shifted (0,-a) ; +z3 = llcorner Page shifted (0,a) ; +z4 = lrcorner Page shifted (0,a) ; + +p[1] = ulcorner Page -- z1 -- z2 -- urcorner Page -- cycle ; +p[3] = llcorner Page -- z3 -- z4 -- lrcorner Page -- cycle ; +p[4] = p[3] shifted (0,.75cm) ; + +fill p[1] withcolor \MPcolor{simpleslides:framecolor} ; +fill p[3] withcolor \MPcolor{simpleslides:framecolor} ; +fill p[4] withcolor \MPcolor{simpleslides:framecolor} ; +\stopuseMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:vertical} +StartPage ; +\includeMPgraphic{simpleslides:MP:common} ; +StopPage ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +\includeMPgraphic{simpleslides:MP:common} ; + +p[2] = p[1] shifted (0,-2cm) ; +fill p[2] withcolor \MPcolor{simpleslides:framecolor} ; +StopPage ; +\stopuniqueMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:vertical}] + +%D We define the footer + +\setupfooter[\c!color=simpleslides:contrastcolor, + \c!style={\switchtobodyfont[10pt]}, + \c!strut=\v!yes] + +\setupfootertexts[{\framed[\c!frame=\v!off, + \c!height=0.65cm, + \c!width=\textwidth] + {\simpleslidestitleparameter{title} + \hfill \pagenumber\ of \lastpage}}] + + +%D this sets up the title page: + +\setupTitle + [\c!title\c!color={simpleslides:contrastcolor}, + \c!author\c!color={simpleslides:contrastcolor}, + \c!date\c!color={simpleslides:contrastcolor}] + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:contrastcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=2.2cm, + \c!after=] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-NarrowStripes.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-NarrowStripes.tex new file mode 100644 index 00000000000..471eb208e31 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-NarrowStripes.tex @@ -0,0 +1,170 @@ +%D \module +%D [ file=simpleslides-s-NarrowStripes, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module NarrowStripes, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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. + +%D This file provides the \quotation{NarrowStripes} style for the presentation +%D module. It is loaded at runtime. The theme for this style is inspired by the +%D \quotation{Berkeley} theme of the \LaTeX\ Beamer package. + +\writestatus{simpleslides}{loading NarrowStripes style} + +\startmodule[simpleslides-s-NarrowStripes] + +\unprotect + +%D First, we change the page layout. + +\setuplayout [width=fit, + leftmargin=1.5cm, + rightmargin=0cm, + leftmargindistance=1.8cm, + rightmargindistance=0pt, + height=fit, + header=2.5cm, + footer=0cm, + topspace=.4cm, + backspace=3.2cm, + cutspace=3.7cm, + bottomspace=0cm, + bottom=0pt, + location=singlesided] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [width=\paperwidth, + height=\paperheight, + x=32mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight{\textheight} +\define\NormalWidth{.476\textwidth} +\define\PictureFrameHeight{\textheight} +\define\PictureFrameWidth{.476\textwidth} + +%D This module has three color schemes, blue, green and red. + +\startsetups simpleslides:setups:blue +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:altcontrastcolor] [r=0,g=0,b=1] +\definecolor [simpleslides:variantcolor] [r=.69,g=.69,b=.97] +\definecolor [simpleslides:contrastcolor] [b=.8] +\definecolor [simpleslides:itemize:color] [b=.8] +\stopsetups + +\startsetups simpleslides:setups:red +\definecolor [simpleslides:itemize:color] [r=.8] +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:altcontrastcolor] [r=1] +\definecolor [simpleslides:variantcolor] [b=.69,g=.69,r=.97] +\definecolor [simpleslides:contrastcolor] [r=.8] +\stopsetups + +\startsetups simpleslides:setups:green +\definecolor [simpleslides:itemize:color] [g=.4] +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:altcontrastcolor] [g=.4] +\definecolor [simpleslides:variantcolor] [b=.68,r=.68,g=.79] +\definecolor [simpleslides:contrastcolor] [g=.4] +\stopsetups + +%D Now we choose the scheme that the user asked for + +\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{color}} + {\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}} + {\setups{simpleslides:setups:blue}} + +%D We let Metapost calculate the background: + +\definetextext[simpleslides:sometxt:text] {\TaspresentSometxtText} + +\unexpanded\def\TaspresentSometxtText#1% + {\framed[\c!frame=\v!off, \c!width=2.25cm, \c!height=2.25cm] + {\switchtobodyfont[12pt]\color[simpleslides:contrastcolor]{#1}}} + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; + +save a,b,c ; numeric a,b,c ; +a = 2.25cm ; +b = 0.4 cm ; +c = PaperHeight - a/2 ; + +z1 = ulcorner Page shifted (0,-a) ; +z2 = ulcorner Page shifted (0,-a-b) ; +z3 = urcorner Page shifted (0,-a-b) ; +z4 = urcorner Page shifted (0,-a) ; +z5 = ulcorner Page shifted (a,0) ; +z6 = ulcorner Page shifted (a+b,0) ; +z7 = llcorner Page shifted (a+b,0) ; +z8 = llcorner Page shifted (a,0) ; +z9 = ulcorner Page shifted (a,-a) ; +z10 = ulcorner Page shifted (a+b,-a) ; +z11 = ulcorner Page shifted (a+b,-a-b) ; +z12 = ulcorner Page shifted (a,-a-b) ; + +save p; path p[] ; +p[1] = z1 -- z2 -- z3 -- z4 -- cycle ; +p[2] = z5 -- z6 -- z7 -- z8 -- cycle ; +p[3] = z9 -- z10 --z11 -- z12 -- cycle ; + +linear_shade(p[1],1, + \MPcolor{simpleslides:backgroundcolor}, + \MPcolor{simpleslides:altcontrastcolor}) ; + +linear_shade(p[2],2, + \MPcolor{simpleslides:altcontrastcolor}, + \MPcolor{simpleslides:backgroundcolor}) ; + +fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; + +if PageNumber > 1: + draw \sometxt[simpleslides:sometxt:text]{\folio} shifted (0,PaperHeight-a) ; +fi ; +StopPage ; +\stopuseMPgraphic + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D this sets up the title page: + +\setupTitle + [\c!title\c!color={simpleslides:contrastcolor}, + \c!author\c!color={simpleslides:contrastcolor}, + \c!date\c!color={simpleslides:contrastcolor}] + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:contrastcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=2.25cm, + \c!after=] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][inmargin][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex new file mode 100644 index 00000000000..5ca00ec6b2e --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex @@ -0,0 +1,221 @@ +%D \module +%D [ file=simpleslides-t-RainbowStripe, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module RainbowStripe, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{RainbowStripe} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading RainbowStripe style} + +\startmodule[simpleslides-s-RainbowStripe] + +\unprotect + +%D First, we provide the page layout. + +\setuplayout [width=fit, + margin=1.5cm, + height=fit, + header=11mm, + footer=0cm, + topspace=15mm, + backspace=2cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=11mm] +\setuplayout [simpleslides:layout:vertical] [header=0mm] +\setuplayout [simpleslides:layout:title] [header=0mm] + + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +\setuplayer + [simpleslides:layer:slidetitle] + [y=12mm, + x=20mm] + +%D We define our colorscheme: + +\definecolor [simpleslides:backgroundcolor] [s=.88] +\definecolor [simpleslides:itemize:color] [s=0] +\definecolor [simpleslides:rainbowone] [r=.5,g=0,b=.5] +\definecolor [simpleslides:rainbowtwo] [b=1] +\definecolor [simpleslides:rainbowthree] [g=1,b=1] +\definecolor [simpleslides:rainbowfour] [g=1] +\definecolor [simpleslides:rainbowfive] [r=1,g=1] +\definecolor [simpleslides:rainbowsix] [r=1] + +%D In a first attempt to achieve the rainbow effect, I produced the rainbow +%D background with asymptote and then converted it to a pdf file which was then +%D used as a background. In that case, it was necessary to instruct \CONTEXT\ +%D to look in the default \TeX\ input paths for figures. The background spans +%D the entire height of the page and the width of the text area; the gray +%D background was then calculated so that the two stripes at the top and at the +%D bottom were left unfilled so the rainbow background would then be visible. +%D Here is the code: + +%\setupexternalfigures[location={global}] + +%\defineoverlay[rainb][{\externalfigure[rainbow.pdf][width=1.05\textwidth,height=1.4\textheight]}] + +% \startuniqueMPgraphic{gray} +% StartPage ; +% pair zf[] ; +% path gr[] ; +% numeric a; a = 2cm ; +% numeric b; b = 0.8cm ; +% z.f1 = ulcorner Page shifted (a,0) ; +% z.f2 = urcorner Page shifted (-a,0) ; +% z.f3 = lrcorner Page shifted (-a,0) ; +% z.f4 = llcorner Page shifted (a,0) ; +% z.f5 = z.f1 shifted (0,-b) ; +% z.f6 = z.f2 shifted (0,-b) ; +% z.f7 = z.f3 shifted (0,b) ; +% z.f8 = z.f4 shifted (0,b) ; +% z.f9 = z.f5 shifted (0,-b) ; +% z.f10 = z.f6 shifted (0,-b) ; +% z.f11 = z.f7 shifted (0,b) ; +% z.f12 = z.f8 shifted (0,b) ; +% gr[1] = ulcorner Page -- urcorner Page -- lrcorner Page -- llcorner Page -- z.f8 -- z.f7 -- z.f6 -- z.f5 -- z.f4 -- llcorner Page -- cycle ; +% gr[2] = z.f9 -- z.f10 -- z.f11 -- z.f12 -- cycle ; +% gr[2] := gr[2] enlarged (.5cm,0cm) ; +% fill gr[1] withcolor \MPcolor{a} ; +% fill gr[2] withcolor \MPcolor{a} ; +% StopPage ; +% \stopuniqueMPgraphic + +%D However, it seemed more portable to let Metapost calculate the background. +%D The rainbow effect takes some lines of code, but it's not too bad: + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +pair zf[] ; +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +path gr[] ; +numeric a; a = 2cm ; +numeric b; b = 0.4cm ; +numeric c; c = 0.7cm ; +z.f1 = ulcorner Page shifted (a,-c) ; +z.f2 = urcorner Page shifted (-a,-c) ; +z.f3 = z.f2 shifted (0,-b) ; +z.f4 = z.f1 shifted (0,-b) ; +gr[1] = z.f1 -- z.f2 ; +gr[2] = z.f4 -- z.f3 ; +z.f5 = point .2 along gr[1] ; +z.f6 = point .2 along gr[2] ; +z.f7 = point .4 along gr[1] ; +z.f8 = point .4 along gr[2] ; +z.f9 = point .6 along gr[1] ; +z.f10 = point .6 along gr[2] ; +z.f11 = point .8 along gr[1] ; +z.f12 = point .8 along gr[2] ; +gr[3] = z.f1 -- z.f5 -- z.f6 -- z.f4 -- cycle ; +gr[4] = z.f7 -- z.f5 -- z.f6 -- z.f8 -- cycle ; +gr[4] := gr[4] enlarged (.02cm,0) ; +gr[5] = z.f9 -- z.f7 -- z.f8 -- z.f10 -- cycle ; +gr[5] := gr[5] enlarged (.02cm,0) ; +gr[6] = z.f11 -- z.f9 -- z.f10 -- z.f12 -- cycle ; +gr[6] := gr[6] enlarged (.02cm,0) ; +gr[7] = z.f11 -- z.f2 -- z.f3 -- z.f12 -- cycle ; +linear_shade(gr[3],0,\MPcolor{simpleslides:rainbowone},\MPcolor{simpleslides:rainbowtwo}) ; +linear_shade(gr[4],0,\MPcolor{simpleslides:rainbowtwo},\MPcolor{simpleslides:rainbowthree}) ; +linear_shade(gr[5],0,\MPcolor{simpleslides:rainbowthree},\MPcolor{simpleslides:rainbowfour}) ; +linear_shade(gr[6],0,\MPcolor{simpleslides:rainbowfour},\MPcolor{simpleslides:rainbowfive}) ; +linear_shade(gr[7],0,\MPcolor{simpleslides:rainbowfive},\MPcolor{simpleslides:rainbowsix}) ; +z.f21 = llcorner Page shifted (a,c) ; +z.f22 = lrcorner Page shifted (-a,c) ; +z.f23 = z.f22 shifted (0,b) ; +z.f24 = z.f21 shifted (0,b) ; +gr[21] = z.f21 -- z.f22 ; +gr[22] = z.f24 -- z.f23 ; +z.f25 = point .2 along gr[21] ; +z.f26 = point .2 along gr[22] ; +z.f27 = point .4 along gr[21] ; +z.f28 = point .4 along gr[22] ; +z.f29 = point .6 along gr[21] ; +z.f30 = point .6 along gr[22] ; +z.f31 = point .8 along gr[21] ; +z.f32 = point .8 along gr[22] ; +gr[23] = z.f21 -- z.f25 -- z.f26 -- z.f24 -- cycle ; +gr[24] = z.f27 -- z.f25 -- z.f26 -- z.f28 -- cycle ; +gr[24] := gr[24] enlarged (.02cm,0) ; +gr[25] = z.f29 -- z.f27 -- z.f28 -- z.f30 -- cycle ; +gr[25] := gr[25] enlarged (.02cm,0) ; +gr[26] = z.f31 -- z.f29 -- z.f30 -- z.f32 -- cycle ; +gr[26] := gr[26] enlarged (.02cm,0) ; +gr[27] = z.f31 -- z.f22 -- z.f23 -- z.f32 -- cycle ; +linear_shade(gr[23],0,\MPcolor{simpleslides:rainbowone},\MPcolor{simpleslides:rainbowtwo}) ; +linear_shade(gr[24],0,\MPcolor{simpleslides:rainbowtwo},\MPcolor{simpleslides:rainbowthree}) ; +linear_shade(gr[25],0,\MPcolor{simpleslides:rainbowthree},\MPcolor{simpleslides:rainbowfour}) ; +linear_shade(gr[26],0,\MPcolor{simpleslides:rainbowfour},\MPcolor{simpleslides:rainbowfive}) ; +linear_shade(gr[27],0,\MPcolor{simpleslides:rainbowfive},\MPcolor{simpleslides:rainbowsix}) ; +StopPage ; +\stopuniqueMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage +path p[] ; +p[1] := unitsquare xyscaled(MakeupWidth,.4cm) shifted (2cm,0.7cm) ; +numeric i; i = (PageNumber - 1)/(NOfPages - 1) ; +p[2] = ulcorner p[1] -- urcorner p[1] ; +p[3] = llcorner p[1] -- lrcorner p[1] ; +pair o[] ; +o[1] := point i along p[2] ; +o[2] := point i along p[3] ; +p[4] = o[1] -- o[2] ; +p[4] := p[4] enlarged (0,-1pt) ; +pickup pensquare scaled 2pt ; +draw p[4] ; +StopPage +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We set up our SlideTitles: + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!align=\v!center, + \c!height=1.5cm] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][inmargin] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Rounded.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Rounded.tex new file mode 100644 index 00000000000..10c15be7139 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Rounded.tex @@ -0,0 +1,224 @@ +%D \module +%D [ file=simpleslides-s-Rounded, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module Rounded, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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. + +%D This file provides the \quotation{Rounded} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading style Rounded} + +\startmodule[simpleslides-s-Rounded] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + leftmargin=1.5cm, + rightmargin=0cm, + leftmargindistance=1.2cm, + rightmargindistance=0pt, + height=fit, + header=5.3cm, + footer=0cm, + topspace=.4cm, + backspace=2.5cm, + cutspace=3.2cm, + bottomspace=0cm, + bottom=0pt, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=5.3cm] +\setuplayout [simpleslides:layout:vertical] [header=2.3cm] +\setuplayout [simpleslides:layout:title] [header=2.3cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [y=23mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [s=.95] +\definecolor [simpleslides:contrastcolor] [r=.58,g=.81,b=.58] +\definecolor [simpleslides:textcolor] [r=.09,g=.2,b=.41] +\definecolor [simpleslides:variantcolor] [r=.04,g=.4,b=.4] +\definecolor [simpleslides:itemize:color] [simpleslides:textcolor] + +\setupcolors[textcolor=simpleslides:textcolor] + +%D We let \METAPOST\ calculate the background: + +\startuseMPgraphic{simpleslides:MP:common} +save a,b,c,d; +numeric a,b,c,d ; + +a = 2cm ; b = 0.7cm ; +c = 6cm ; d = .7cm ; + +save p ; path p[] ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z1 = llcorner Page shifted (a,0) ; +z2 = ulcorner Page shifted (a,-a-b) ; +z3 = ulcorner Page shifted (a+b/4,-a-b/4) ; +z4 = ulcorner Page shifted (a+b,-a) ; +z5 = urcorner Page shifted (0,-a) ; +z6 = ulcorner Page shifted (c,0) ; +z7 = ulcorner Page shifted (c,-a) ; + + +p[1] = llcorner Page -- z1 -- z2 .. z3 .. z4 -- z7 -- z6 -- + ulcorner Page -- cycle ; + +fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; + +\stopuseMPgraphic + +\startuseMPgraphic{simpleslides:MP:vertical} +StartPage ; +\includeMPgraphic{simpleslides:MP:common} ; +% The pagenumber cannot be part of MP:common otherwise pdftex ignores it. +draw \sometxt{\framed[frame=off,width=2cm,height=2cm]% + {\color[simpleslides:backgroundcolor]{\pagenumber}}} ; + +StopPage ; +\stopuseMPgraphic + +\startuseMPgraphic{simpleslides:MP:horizontal} +StartPage; + +\includeMPgraphic{simpleslides:MP:common} ; +draw \sometxt{\framed[frame=off,width=2cm,height=2cm]% + {\color[simpleslides:backgroundcolor]{\pagenumber}}} ; + + +z8 = ulcorner Page shifted (a/2,-2.2*a) ; +z9 = z8 shifted (0,-d) ; +z10 = urcorner Page shifted (-a,-2.2*a-d) ; +z11 = z10 shifted (0,d) ; +z12 = z8 shifted (-d/2,-d/2) ; + +p[2] = z8 .. z12 .. z9 -- z10 -- z11 -- cycle ; + +fill p[2] withcolor \MPcolor{simpleslides:textcolor} ; + +StopPage ; +\stopuseMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:title} +StartPage ; + +save a,b,c,d; +numeric a,b,c,d; + +a = 4cm ; b = 3cm ; +c = 8cm ; d = .7cm ; + +save p; path p[] ; +p[1] = ulcorner Page -- ulcorner Page shifted (PaperWidth/2,0) -- + llcorner Page shifted (PaperWidth/2,0) -- llcorner Page -- cycle ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; + +z1 = ulcorner Page shifted (PaperWidth/2,-b) ; +z2 = z1 shifted (-c,0) ; +z3 = z2 shifted (0,-a) ; +z4 = z3 shifted (c,0) ; +z5 = z2 shifted (-1.5cm,-a/2) ; + +p[2] = z1 -- z2 .. z5 .. z3 -- z4 -- cycle ; +fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z6 = llcorner Page shifted (PaperWidth/2,0) ; +z7 = 1/2[z6,z4] ; +z8 = z7 shifted (-.75*b,d/2) ; +z9 = z8 shifted (0,-d) ; +z10 = z9 shifted (1.3*c,0) ; +z11 = z10 shifted (0,d) ; +z12 = z10 shifted (d/2,d/2) ; + +p[3] = z8 -- z9 -- z10 .. z12 .. z11 -- cycle ; +fill p[3] withcolor \MPcolor{simpleslides:textcolor} ; + +StopPage ; +\stopuniqueMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:title}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + + +%D The title page: + +\setupTitle + [\c!before=\strut{\blank[0.25cm]}, + \c!author\c!align=\v!right, + \c!before\c!author={\blank[3.1cm]\setupnarrower[left=9cm] + \startnarrower[left]}, + \c!after\c!author={\stopnarrower}, + \c!date\c!align=\v!right, + \c!before\c!date={\blank[3.7cm]\setupnarrower[left=9cm] + \startnarrower[left]}, + \c!after\c!date={\stopnarrower}, + \c!headcolor={simpleslides:textcolor}] + + +%D The slide title is typeset in a layer + +\setupSlideTitle + [\c!color={simpleslides:variantcolor}, + \c!alternative=layer, + \c!align=\v!center, + \c!width=\textwidth, + \c!style={\switchtobodyfont[\TitleSize]\bf}, + \c!height=2cm, + \c!after=] + +% \definelayer[presauthor] +% [width=.5\paperwidth, +% height=.5\paperheight, +% x=104mm, +% y=118mm] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][inmargin][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Shaded.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Shaded.tex new file mode 100644 index 00000000000..97844cb5cd3 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Shaded.tex @@ -0,0 +1,128 @@ +%D \module +%D [ file=simpleslides-s-Shaded, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Shaded style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{Shaded} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading Shaded style} + +\startmodule[simpleslides-s-Shaded] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=1.5cm, + leftmargindistance=0pt, + rightmargindistance=0pt, + height=fit, + header=0pt, + footer=5pt, + topspace=.8cm, + backspace=1.5cm, + bottomspace=.8cm, + bottom=12pt, + location=singlesided] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {.88\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {.88\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D This module has three color schemes, blue, green and bluered. + + +\startsetups simpleslides:setups:bluered +\definecolor [simpleslides:textcolor] [white] +\definecolor [simpleslides:interactioncolor] [b=.2] +\definecolor [simpleslides:contrastcolor] [b=.8] +\definecolor [simpleslides:itemize:color] [s=1] +\definecolor [simpleslides:backgroundcolor] [r=0.5,g=0,b=0] +\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.5] +\stopsetups + +\startsetups simpleslides:setups:blue +\definecolor [simpleslides:textcolor] [white] +\definecolor [simpleslides:interactioncolor] [b=.2] +\definecolor [simpleslides:contrastcolor] [r=.72,g=.77,b=.94] +\definecolor [simpleslides:itemize:color] [s=1] +\definecolor [simpleslides:backgroundcolor] [r=0,g=0,b=1] +\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.05] +\stopsetups + +\startsetups simpleslides:setups:green +\definecolor [simpleslides:textcolor] [white] +\definecolor [simpleslides:interactioncolor] [s=.2] +\definecolor [simpleslides:contrastcolor] [s=.5] +\definecolor [simpleslides:itemize:color] [s=1] +\definecolor [simpleslides:backgroundcolor] [r=0,g=.8,b=0] +\definecolor [simpleslides:variantcolor] [r=0,g=0.05,b=0] +\stopsetups + +%D Now we choose the scheme that the user asked for + +\setups{simpleslides:setups:blue} +\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}} + +\setupcolors[textcolor={simpleslides:textcolor}] + + +%D This module shades the background in a gradient. We use \METAPOST\ to draw +%D the background. + +\startuniqueMPgraphic{simpleslides:MP:ornament} +save p; +path p ; +p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; +linear_shade(p,6, + \MPcolor{simpleslides:backgroundcolor}, + \MPcolor{simpleslides:variantcolor}) ; +\stopuniqueMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +%D The \quotation{Shaded} style uses \CONTEXT's interactionbar: + +\setupsubpagenumber[way=bytext,state=start] + +\setupinteraction + [page=yes, + color=simpleslides:interactioncolor, + contrastcolor=simpleslides:contrastcolor, + menu=on, + state=start] + +\startinteractionmenu[bottom] +{\interactionbar[alternative=f,width=\makeupwidth,height=1ex]} +\stopinteractionmenu + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-SideSquares.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-SideSquares.tex new file mode 100644 index 00000000000..8ecce564439 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-SideSquares.tex @@ -0,0 +1,157 @@ +%D \module +%D [ file=simpleslides-s-SideSquares, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module SideSquares, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{SideSquares} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading SideSquares style} + +\startmodule[simpleslides-s-SideSquares] + +\unprotect + +%D First, we define the page layout. + +\setuplayout [width=fit, + height=middle, + margin=1.5cm, + height=fit, + leftmargindistance=.4cm, + rightmargindistance=0cm, + header=1.5cm, + footer=0cm, + topspace=1cm, + backspace=2.5cm, + cutspace=1.5cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=15mm] +\setuplayout [simpleslides:layout:vertical] [header=0mm] +\setuplayout [simpleslides:layout:title] [header=0mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.5\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.5\textwidth} + +\setuplayer + [simpleslides:layer:slidetitle] + [x=25mm, + y=2mm] + +%D We define our color scheme: + +\definecolor[simpleslides:contrastcolor] [r=0,g=0,b=.92] +\definecolor[simpleslides:altcontrastcolor] [r=0,g=0,b=.4] +\definecolor[simpleslides:backgroundcolor] [s=.98] +\definecolor[simpleslides:itemize:color] [r=0,g=0,b=.92] + +%D We let Metapost calculate the background: + +\startuseMPgraphic{simpleslides:MP:horizontal} +StartPage ; +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +z1 = ulcorner Page ; +z5 = llcorner Page ; +path q ; +q = z1 -- z5 ; +t := arclength (q) ; +u := t/15 ; +v := (PageNumber/NOfPages) ; +z4 = (x1+1cm, y1-1cm) ; +z3 = (x4, y1) ; +z2 = (x1, y4) ; +path m[] ; +m[1] = z1 -- z2 -- z4 -- z3 -- cycle ; +m[2] = m[1] shifted (0, -2*u) ; +m[3] = m[1] shifted (0, -4*u) ; +m[4] = m[1] shifted (0, -6*u) ; +m[5] = m[1] shifted (0, -8*u) ; +m[6] = m[1] shifted (0, -10*u) ; +m[7] = m[1] shifted (0, -12*u) ; +m[8] = m[1] shifted (0, (-14*u-0.5mm)) ; +for i=1 upto 8: + fill m[i] withcolor\MPcolor{simpleslides:contrastcolor} ; +endfor; +if PageNumber=1: + fill m[1] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.001) and (v<.167) : + fill m[2] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.166) and (v<.334): + fill m[3] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.333) and (v<.501): + fill m[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.5) and (v<.667): + fill m[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.666) and (v<.834): + fill m[6] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif (v>.833) and (v<1): + fill m[7] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +elseif v=1: + fill m[8] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +fi ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:horizontal}] + +%D We want the title to placed in color. + +\setupTitle[\c!headcolor={simpleslides:contrastcolor}] + +%D This sets up the SlideTitle: + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!align=\v!center, + \c!height=2.5cm, + \c!color=simpleslides:contrastcolor] + +%D We set up the titlepage: + +\setupTitle + [\c!title\c!color={simpleslides:contrastcolor}, + \c!author\c!color={simpleslides:contrastcolor}, + \c!date\c!color={simpleslides:contrastcolor}] + +\setupcombinations[distance=0cm] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][$\square$] +\setupitemize[1][inmargin][color=simpleslides:itemize:color] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Split.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Split.tex new file mode 100644 index 00000000000..c1fbe136d48 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Split.tex @@ -0,0 +1,195 @@ +%D \module +%D [ file=simpleslides-s-Split, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Split style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{Split} style for the presentation +%D module. It is loaded at runtime. The look of this style was inspired by the +%D \quotation{Copenhagen} theme of the \LaTeX\ \filename{beamer} package. + +\writestatus{simpleslides}{loading Black Blue style} + +\startmodule[simpleslides-s-Split] + +\unprotect + +%AM: NOTE: The black and blue colors can be made configurable. + +%D First, we change the page layout to have more space on the top and the +%D bottom. + +\setuplayout [width=fit, + margin=0cm, + height=fit, + header=3.2cm, + footer=.5cm, + topspace=.6cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=3.2cm] +\setuplayout [simpleslides:layout:vertical] [header=0.5cm] +\setuplayout [simpleslides:layout:title] [header=0.5cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=10mm,y=12mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + + +%D Next we define a few generic frames, which will be used by other macros to +%D get a consistent look and feel. + +\setupframed[simpleslides:framed] + [corner=round, + background=color,backgroundcolor={simpleslides:contrastcolor}] + +\defineframed[simpleslides:framed:small] + [frame=off,offset=0pt,strut=no, + width=0.5\textwidth,height=0.5cm, + top=\vss,bottom=\vss] + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [s=.9] +\definecolor [simpleslides:contrastcolor] [r=.2, g=.2, b=.72] +\definecolor [simpleslides:variantcolor] [s=0] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We use \METAPOST\ to draw backgrounds. First, we define a few helper macros +%D to place text inside \METAPOST + +\definetextext[simpleslides:sometxt:left] {\SimpleSlidesSometxtLeft} +\definetextext[simpleslides:sometxt:right]{\SimpleSlidesSometxtRight} + +\unexpanded\def\SimpleSlidesSometxtLeft#1% + {\getvalue{simpleslides:framed:small}[align=left] + {\switchtobodyfont[9pt]\color[simpleslides:backgroundcolor] + {#1\quad\strut}}} + +\unexpanded\def\SimpleSlidesSometxtRight#1% + {\getvalue{simpleslides:framed:small}[align=right] + {\switchtobodyfont[9pt]\color[simpleslides:backgroundcolor] + {\strut\quad#1}}} + +%D Now we use \METAPOST\ to draw a page ornament, which will then be inherited +%D by different backgrounds. + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; +save p, Main, a ; +path p[] ; path Main ; + +numeric a; a=.5cm ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z1 = ulcorner Page shifted (0,-a) ; +z2 = urcorner Page shifted (0,-a) ; +z3 = llcorner Page shifted (0,a) ; +z4 = lrcorner Page shifted (0,a) ; +z5 = 1/2[ulcorner Page,urcorner Page] ; +z6 = 1/2[z1,z2] ; +z7 = 1/2[llcorner Page,lrcorner Page] ; +z8 = 1/2[z3,z4] ; + +p[1] = ulcorner Page -- urcorner Page -- z2 -- z1 -- cycle ; +p[2] = ulcorner Page -- z5 -- z6 -- z1 -- cycle ; +p[3] = llcorner Page -- lrcorner Page -- z4 -- z3 -- cycle ; +p[4] = llcorner Page -- z7 -- z8 -- z3 -- cycle ; + +fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; +fill p[2] withcolor \MPcolor{simpleslides:variantcolor} ; +fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; +fill p[4] withcolor \MPcolor{simpleslides:contrastcolor} ; + +draw \sometxt[simpleslides:sometxt:left]{\noexpand\moduleparameter{simpleslides:title}{date}} + shifted (1cm,y1) ; + +draw \sometxt[simpleslides:sometxt:right]{\folio\ of \lastpage} + shifted (x5,y1) ; + +draw \sometxt[simpleslides:sometxt:left]{\noexpand\moduleparameter{simpleslides:title}{author}} + shifted (1cm,0) ; + +draw \sometxt[simpleslides:sometxt:right]{\noexpand\moduleparameter{simpleslides:title}{title}} + shifted (x5,0) ; + +StopPage ; +\stopuseMPgraphic + +%D We use this ornament in different backgrounds. + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We want the title to placed in a framed box. We redefine all the keys of +%D \type{\setupTitle}, so that the module is easier to maintain. + +\setupTitle + [\c!title=, + \c!author=, + \c!date=\currentdate, + \c!headstyle=, + \c!headcolor={simpleslides:backgroundcolor}, + \c!align=\v!middle, + \c!before={\vfill\getvalue{simpleslides:framed} + [\c!width=\textwidth,\c!height=.75\textheight, + \c!align=\v!middle, \c!strut=\v!no] + \bgroup}, + \c!after={\egroup\vfill}, + \c!title\c!style={\switchtobodyfont[\TitleSize]}, + \c!title\c!color=, + \c!title\c!align=,%\v!middle, + \c!author\c!style=, + \c!author\c!color=, + \c!author\c!align=,%\v!middle, + \c!date\c!style=, + \c!date\c!color=, + \c!date\c!align=,%\v!middle, + \c!before\c!title=, + \c!before\c!author=, + \c!before\c!date=, + \c!after\c!title={\blank[1*line]}, + \c!after\c!author={\blank[2*line]}, + \c!after\c!date=] + +%D We also want the slide title in a framed box. + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!height=2.1cm, + \c!width=\textwidth, + \c!color=simpleslides:backgroundcolor] + + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][\c!color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Sunrise.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Sunrise.tex new file mode 100644 index 00000000000..756b981aec5 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Sunrise.tex @@ -0,0 +1,206 @@ +%D \module +%D [ file=simpleslides-s-Sunrise, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module Sunrise +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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. + +%D This file provides the \quotation{Sunrise} style for the presentation +%D module. It is loaded at runtime. The look of this style was inspired by the +%D \quotation{husky} theme of the \LaTeX\ {\tt powerdot} package, created by +%D Jack Stalnaker. + +\writestatus{simpleslides}{loading Sunrise style} + +\startmodule[simpleslides-s-Sunrise] + +\unprotect + +%D The page layout: + +\setuplayout [width=fit, + margin=0cm, + height=fit, + header=2.75cm, + footer=1.5cm, + footerdistance=0.4cm, + topspace=0cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=2.75cm] +\setuplayout [simpleslides:layout:vertical] [header=0.4cm] +\setuplayout [simpleslides:layout:title] [header=2.75cm] + +\setuplayer + [simpleslides:layer:slidetitle] + [x=10mm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +%D We define our color scheme: + +\definecolor [simpleslides:variantcolor] [s=.97] +\definecolor [simpleslides:backgroundcolor] [s=.88] +\definecolor [simpleslides:contrastcolor] [r=.75] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] + +%D We let \METAPOST\ calculate the background: + +%D Both horizontal and vertical group share this part of the background. + +\startuseMPgraphic{simpleslides:MP:common} +save a, b ; +numeric a; a=2.1cm ; +numeric b; b=1.5cm ; + +fill Page withcolor \MPcolor{simpleslides:variantcolor} ; + +z1 = llcorner Page shifted (0,2*a) ; +z2 = z1 shifted (0,2*a) ; +z3 = lrcorner Page shifted (0,b) ; +z4 = z3 shifted (0,b) ; +z5 = z2 shifted (0,b) ; +z6 = ulcorner Page shifted (.1cm,0) ; +z7 = z4 shifted (0,b/2) ; +z8 = z7 shifted (0,b) ; +z9 = ulcorner Page shifted (.1cm+a,0) ; +z10 = z9 shifted (3*a,0) ; +z11 = z8 shifted (0,b/2) ; +z12 = z11 shifted (0,b) ; +z13 = z10 shifted (a,0) ; +z14 = z13 shifted (3*a,0) ; +z15 = z12 shifted (0,b/2) ; +z16 = z15 shifted (0,b) ; +z17 = llcorner Page shifted (0,b) ; + +save p ; +path p[] ; +p[1] = z1 -- z2 -- z4 -- z3 -- cycle ; +p[2] = z5 -- ulcorner Page -- z6 -- z8 -- z7 -- cycle ; +p[3] = z9 -- z10 -- z12 -- z11 -- cycle ; +p[4] = z13 -- z14 -- z16 -- z15 -- cycle ; +p[5] = llcorner Page -- z17 -- z3 -- lrcorner Page -- cycle ; + +fill p[1] withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ; +\stopuseMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:vertical} +StartPage ; +\includeMPgraphic{simpleslides:MP:common} ; +StopPage ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +\includeMPgraphic{simpleslides:MP:common} ; +z18 = ulcorner Page shifted (0,-1.5*b) ; +z19 = z18 shifted (0,-1pt) ; +z20 = urcorner Page shifted (0,-1.5*b) ; +z21 = z20 shifted (0,-1pt) ; + +p[6] = z18 -- z19 -- z21 -- z20 -- cycle ; + +linear_shade(p[6],0, + \MPcolor{simpleslides:contrastcolor}, + \MPcolor{simpleslides:variantcolor}) ; + +p[7] = p[6] shifted (0,-3pt) ; + +linear_shade(p[7],0, + \MPcolor{simpleslides:contrastcolor}, + \MPcolor{simpleslides:variantcolor}) ; + +StopPage ; +\stopuniqueMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +%D We define the footer + +\setupfooter[\c!color=simpleslides:variantcolor, + \c!style={\switchtobodyfont[10pt]}, + \c!strut=\v!yes] + +\setupfootertexts[{\framed[\c!frame=\v!off, + \c!height=1cm, + \c!width=\textwidth] + {\simpleslidestitleparameter{title} + \hfill \pagenumber\ of \lastpage}}] + +%D We want the title to placed in a framed box. We redefine all the keys of +%D \type{\setupTitle}, so that the module is easier to maintain. + +\setupTitle + [\c!title=, + \c!author=, + \c!date=\currentdate, + \c!headstyle=, + \c!headcolor=simpleslides:contrastcolor, + \c!align=\v!middle, + \c!before={\vfill\getvalue{simpleslides:framed} + [\c!width=\textwidth,\c!height=.75\textheight, + \c!align=\v!middle, \c!strut=\v!no] + \bgroup}, + \c!after={\egroup\vfill}, + \c!title\c!style={\switchtobodyfont[\TitleSize]}, + \c!title\c!color=, + \c!title\c!align=,%\v!middle, + \c!author\c!style=, + \c!author\c!color=, + \c!author\c!align=,%\v!middle, + \c!date\c!style=, + \c!date\c!color=, + \c!date\c!align=,%\v!middle, + \c!before\c!title=, + \c!before\c!author=, + \c!before\c!date=, + \c!after\c!title={\blank[1*line]}, + \c!after\c!author={\blank[2*line]}, + \c!after\c!date=] + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!height=2.25cm, + \c!color={simpleslides:contrastcolor}] + + +%D The symbol for the first level of itemizations. + + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color={simpleslides:itemize:color}] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Swoosh.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Swoosh.tex new file mode 100644 index 00000000000..da62bf6dc4e --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-Swoosh.tex @@ -0,0 +1,235 @@ +%D \module +%D [ file=simpleslides-s-Swoosh, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module -- Swoosh Style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\currentdate, +%D copyright={Aditya Mahajan and Thomas A. Schmitz}] +%C +%C Copyright 2009 Aditya Mahajan and Thomas A. Schmitz +%C This file may be distributed under the GNU General Public License v. 2.0. + +%D This file provides the \quotation{Swoosh} style for the presentation +%D module. It is loaded at runtime. + +\writestatus{simpleslides}{loading Swoosh style} + +\startmodule[simpleslides-s-Swoosh] + +\unprotect + +%D First we change the page layout, adding more space on the top. + +\setuplayout [width=fit, + margin=0cm, + height=fit, + header=3cm, + footer=0.8cm, + topspace=.6cm, + backspace=1cm, + location=singlesided] + +\setuplayout [simpleslides:layout:horizontal][header=3cm] +\setuplayout [simpleslides:layout:vertical] [header=0.8cm] +\setuplayout [simpleslides:layout:title] [header=0.8cm] + +%D We also specify the position of the slidetitle. + +\setuplayer[simpleslides:layer:slidetitle] + [x=10mm,y=2mm] + +\setupcombinations[distance=1.85cm] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.45\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.45\textwidth} + +\defineframed[simpleslides:framed] + [frame=off,offset=0pt, + top=\vss,bottom=\vss] + +%D We define our color scheme: + +\definecolor [simpleslides:backgroundcolor] [r=.88,g=.92,b=.95] +\definecolor [simpleslides:contrastcolor] [r=.4,g=.6,b=.8] +\definecolor [simpleslides:altcontrastcolor] [r=.1,g=.1,b=.4] +\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] +\definecolor [simpleslides:textcolor] [simpleslides:altcontrastcolor] + +\setupcolors[textcolor=simpleslides:textcolor] + +%D We use \METAPOST\ to draw backgrounds. + +\startuniqueMPgraphic{simpleslides:MP:horizontal} +StartPage ; +save a, b; +numeric a ; a = 2.5cm ; +numeric b ; b = 0.7cm ; +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; + +z1 = ulcorner Page ; +z2 = urcorner Page ; +z3 = (x1,y1-0.7*a) ; +z4 = (x1+5cm,y1-a-b) ; +z5 = (x1+12cm,y1-a) ; +z6 = (x1+14cm,y1-a+0.3cm) ; +z7 = (x2,y2-a-b) ; + +save p ; +path p ; +p = z1--z3..z4..z5..z6..z7--z2--cycle ; +fill p withcolor \MPcolor{simpleslides:contrastcolor} ; +pickup pencircle scaled 4pt ; +draw z3..z4..z5..z6..z7 withcolor white ; +StopPage ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:MP:vertical} +StartPage ; + +save a,b; +numeric a ; a = 2cm ; +numeric b ; b = 1cm ; +pair t[] ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +z1 = ulcorner Page ; +z2 = llcorner Page ; +z3 = center Page ; +z4 = (x3,y1) ; +z5 = (x3+b,y1-4cm) ; +z6 = (x3+b/2,y1-7cm) ; +z7 = (x3-b/2,y2+2cm) ; +z8 = (x3,y2) ; + +save p; +path p[] ; +p[1] = z1--z4..z5..z6..z7..z8--z2--cycle ; +fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; +pickup pencircle scaled 4pt ; +draw z4..z5..z6..z7..z8 withcolor white ; +StopPage ; +\stopuniqueMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +save b, s, t, p, circcenter, theta, pic ; +StartPage ; +path p[] ; +pair t[] ; +pair s[] ; +pair circcenter ; circcenter = lrcorner Page shifted (-1cm, 1cm) ; +picture pic ; +b = 1.5cm ; +if \realfolio > 1: + theta = (PageNumber - 1)/(NOfPages - 1) ; + p[4] = fullcircle scaled b rotated 90 ; + fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ; + t[0] = center p[4] ; + t[1] = point 1 along p[4] ; + t[2] = point -theta along p[4] ; + t[3] = point -theta/2 along p[4] ; + p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ; + fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ; + for i = 1 upto NOfPages : + s[i] = point i/(NOfPages -1) along p[4] ; + pickup pencircle scaled 1pt ; + draw s[i] -- t[0] withcolor \MPcolor{simpleslides:backgroundcolor} ; + endfor ; + p[3] = p[4] scaled 0.4 ; + fill p[3] withcolor \MPcolor{simpleslides:contrastcolor} ; + draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ; + label(textext("\switchtobodyfont[10pt]\color[simpleslides:backgroundcolor]\pagenumber"),origin) ; + currentpicture := currentpicture shifted circcenter ; +fi ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:horizontal] + [\useMPgraphic{simpleslides:MP:horizontal}] + +\defineoverlay + [simpleslides:background:vertical] + [\useMPgraphic{simpleslides:MP:vertical}] + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\setupTitle + [\c!headcolor={simpleslides:altcontrastcolor}] + +%D We want the title to placed in a framed box. We redefine all the keys of +%D \type{\setupTitle}, so that the module is easier to maintain. + +\setupSlideTitle + [\c!alternative=layer, + \c!color=simpleslides:backgroundcolor, + \c!align=\v!center, + \c!width=\textwidth, + \c!height=2cm, + \c!after=] + + +% \setupTitle +% [\c!title=, +% \c!author=, +% \c!date=\currentdate, +% \c!headstyle=, +% \c!headcolor=, +% \c!align=\v!middle, +% \c!before={\vfill\getvalue{simpleslides:framed} +% [\c!width=\textwidth,\c!height=.75\textheight, +% \c!align=\v!middle, \c!strut=\v!no] +% \bgroup}, +% \c!after={\egroup\vfill}, +% \c!title\c!style={\switchtobodyfont[\TitleSize]}, +% \c!title\c!color=, +% \c!title\c!align=,%\v!middle, +% \c!author\c!style=, +% \c!author\c!color=, +% \c!author\c!align=,%\v!middle, +% \c!date\c!style=, +% \c!date\c!color=, +% \c!date\c!align=,%\v!middle, +% \c!before\c!title=, +% \c!before\c!author=, +% \c!before\c!date=, +% \c!after\c!title={\blank[1*line]}, +% \c!after\c!author={\blank[2*line]}, +% \c!after\c!date=] +% +% %D We want the title to be of a specific height +% +% \setuphead[SlideTitle] +% [\c!after=, +% \c!alternative=\v!text, +% \c!color=white, +% \c!command=\doSlideTitle] +% +% \define[2]\doSlideTitle +% {\setlayer[simpleslides:layer:slidetitle]% +% {\getvalue{simpleslides:framed}[\c!width=\textwidth,\c!height=1.1cm, +% \c!align=\v!right] +% {#1#2}}} + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}] +\setupitemize[1][color=simpleslides:itemize:color] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-ThickStripes.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-ThickStripes.tex new file mode 100644 index 00000000000..b7deead545b --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-ThickStripes.tex @@ -0,0 +1,146 @@ +%D \module +%D [ file=simpleslides-s-ThickStripes, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module --- Thick Stripes style, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%D date=\PRESTITdate, +%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. + +%D This file provides the \quotation{ThickStripes} style for the presentation +%D module. It is loaded at runtime. The theme for this style is inspired by the +%D \quotation{Berkeley} theme of the \LaTeX\ Beamer package. + +\writestatus{simpleslides}{loading Thick Stripes style} + +\startmodule[simpleslides-s-ThickStripes] + +\unprotect + +%D First, we change the page layout to have more space on the top and the +%D left. + +\setuplayout [width=fit, + leftmargin=1.5cm, + rightmargin=0cm, + leftmargindistance=.9cm, + rightmargindistance=0pt, + height=fit, + header=2.5cm, + footer=0cm, + topspace=.4cm, + backspace=2.9cm, + cutspace=2.8cm, + bottomspace=0cm, + bottom=0pt, + location=singlesided] + +%D These macros are used for placing figures/pictures: + +\define\NormalHeight {\textheight} +\define\NormalWidth {.476\textwidth} +\define\PictureFrameHeight {\textheight} +\define\PictureFrameWidth {.476\textwidth} + +\setuplayer + [simpleslides:layer:slidetitle] + [x=29mm] + +%D We define our color scheme + +\definecolor [simpleslides:backgroundcolor] [s=.9] +\definecolor [simpleslides:variantcolor] [r=.15,g=.15,b=.525] +\definecolor [simpleslides:contrastcolor] [r=.2,g=.2,b=.7] +\definecolor [simpleslides:altcontrastcolor] [s=.4] +\definecolor [simpleslides:itemize:color] [simpleslides:backgroundcolor] + + +%D We use \METAPOST to draw the background. The background consists of two +%D stripes and a "clock" at the bottom. + +\startuseMPgraphic{simpleslides:MP:title} +StartPage ; +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +StopPage ; +\stopuseMPgraphic + +\startuseMPgraphic{simpleslides:MP:ornament} +StartPage ; +save a, b, theta; +numeric a, b, theta ; + +save t ; +pair t[] ; + +a = 2.5cm ; +b = 1.5cm ; + +z[1] = ulcorner Page shifted (a,0) ; +z[2] = llcorner Page shifted (a,0) ; +z[3] = ulcorner Page shifted (0,-a) ; +z[4] = urcorner Page shifted (0,-a) ; +z[5] = ulcorner Page shifted (a,-a) ; + +save p ; +path p[] ; +p[1] = ulcorner Page -- z[1] -- z[2] -- llcorner Page -- cycle ; +p[2] = ulcorner Page -- urcorner Page -- z[4] -- z[3] -- cycle ; +p[3] = ulcorner Page -- z[1] -- z[5] -- z[3] -- cycle ; + +fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ; +fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ; +fill p[2] withcolor \MPcolor{simpleslides:contrastcolor} ; +fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ; + +pickup pencircle scaled 5pt ; + +if \realfolio > 1: + theta = (PageNumber - 1)/(NOfPages - 1) ; + p[4] = unitcircle scaled b rotated 90 shifted (b + ((a-b)/2),(a-b)/2) ; + fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ; + t[0] = center p[4] ; + t[1] = point 1 along p[4] ; + t[2] = point -theta along p[4] ; + t[3] = point -theta/2 along p[4] ; + p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ; + fill p[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ; +fi ; +StopPage ; +\stopuseMPgraphic + +%D We define these backgrounds as overlays: + +\defineoverlay + [simpleslides:background:ornament] + [\useMPgraphic{simpleslides:MP:ornament}] + +\defineoverlay + [simpleslides:background:title] + [\useMPgraphic{simpleslides:MP:ornament}] + +%D We want the title to placed in color. + +\setupTitle[\c!headcolor={simpleslides:contrastcolor}] + +%D We want the slide title on the top + +\setupSlideTitle + [\c!after=, + \c!alternative=layer, + \c!width=\textwidth, + \c!height=2.5cm, + \c!color=simpleslides:backgroundcolor] + +%D The symbol for the first level of itemizations. + +\definesymbol[1][\useMPgraphic{simpleslides:itemize:triangle}] +\setupitemize[1][inmargin][color=simpleslides:backgroundcolor] + +\protect +\stopmodule + +\endinput + diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-default.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-default.tex new file mode 100644 index 00000000000..58764fa0b53 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-default.tex @@ -0,0 +1,774 @@ +%D \module +%D [ file=simpleslides-s-default, +%D version=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=fit, + margin=0.6cm, + height=fit, + 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] + +%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[verytolerant,stretch] + +%D We use combinations for placing vertical pictures and text side by side, and +%D we want a distance of 1.1 cm between both. + +\setupcombinations[distance=1.1cm] + +%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:highlight] + [\useMPgraphic{simpleslides:MP:highlight}]% + +\definelayer[simpleslides:layer:slidetitle] + [\c!width=\paperwidth, + \c!height=\paperheight] + +%D A generic frame which is used for titles and other commands + +\defineframed[simpleslides:framed] + [frame=off,offset=0pt, + top=\vss,bottom=\vss] + +%D Now we define setups for specific backgrounds + +\startsetups simpleslides:background:title + \setuplayout[simpleslides:layout:title] + \setupbackgrounds[\v!page] + [background={simpleslides:background:title}] +\stopsetups + +\startsetups simpleslides:background:horizontal + \setuplayout[simpleslides:layout:horizontal] + \setupbackgrounds[\v!page] + [background={simpleslides:background:horizontal, + simpleslides:background:ornament, + simpleslides:layer:slidetitle}] +\stopsetups + +\startsetups simpleslides:background:vertical + \setuplayout[simpleslides:layout:vertical] + \setupbackgrounds[\v!page] + [background={simpleslides:background:vertical, + simpleslides:background:ornament}] +\stopsetups + +%D We also define some fall backs for presentation backgrounds. + +\startsetups simpleslides:background:default + \setups{simpleslides:background:horizontal} +\stopsetups + +\startsetups simpleslides:background:none + \setupbackgrounds[\v!page] + [background=] +\stopsetups + +\startsetups simpleslides:background:empty + \message{I don't know the name of the background you have provided.} + \setups{simpleslides:background:horizontal} +\stopsetups + +%D Now we move on to specific components of the presentation. The first thing in +%D any presentation is the title page, so we start with that. We define a macro +%D that stores values for the title, author and date of the presentation. These +%D are input as +%D \starttyping +%D \setupTitle[title={How to write a sub module for simpleslides}, +%D author={Aditya Mahajan}, +%D date={\currentdate[d=10,m=7,y=2008]}] +%D \stoptyping +%D This setup command can also setup the color and style for the title, author, +%D and date. + +\def\setupTitle% + {\dosingleargument\dosetupTitle} + +\def\dosetupTitle[#1]% + {\setupmodule[simpleslides:title][#1]} + +%D A few macros to save some typing + +\def\simpleslidestitleparameter%#1 + {\moduleparameter{simpleslides:title}} + +\def\simpleslidestitlecomponent#1% + {\simpleslidestitleparameter{\c!before#1} + \startalignment[\simpleslidestitleparameter{#1\c!align}] + \doattributes{\??md:simpleslides:title:}{#1\c!style}{#1\c!color} + {\moduleparameter{simpleslides:title}{#1}} + \stopalignment + \simpleslidestitleparameter{\c!after#1}} + +%D \macros{placeTitle} +%D +%D The macro \tex{placeTitle} produces a title page with the author, the +%D title of the presentation, and the date. Using it is not mandatory. + +\define\placeTitle + {\page + \setupPageBackground[title] + \null + \simpleslidestitleparameter\c!before + \startalignment[\simpleslidestitleparameter\c!align] + \dostartattributes{\??md:simpleslides:title:}\c!headstyle\c!headcolor + \simpleslidestitlecomponent\c!title + \simpleslidestitlecomponent\c!author + \simpleslidestitlecomponent\c!date + \dostopattributes + \stopalignment + \simpleslidestitleparameter\c!after + \page} + +%D If a sub-module wants to display more information about the presentation +%D (e.g., institute of the author), it can be simply input as +%D \starttyping +%D \setupTitle[institute={Some University}] +%D \stoptyping +%D This parameter can be accessed inside the module as +%D \type{\simpleslidestitleparameter{institute}}, and the module writer +%D can redefine \type{\placeTitle} to display the institute at the appropriate +%D place. + + +%D Now we setup some default values for the title page. Other modules will +%D redefine these values later. + +\setupTitle + [\c!title=, + \c!author=, + \c!date=\currentdate, + \c!style=, + \c!color=red, + \c!align=\v!middle, + \c!before=\vfill, + \c!after=\vfill, + \c!title\c!style={\switchtobodyfont[\TitleSize]}, + \c!title\c!color=, + \c!title\c!align=,%\v!middle, + \c!author\c!style=,%{\switchtobodyfont[\SlideTitleSize]}, + \c!author\c!color=, + \c!author\c!align=,%\v!middle, + \c!date\c!style=,%{\switchtobodyfont[\SlideTitleSize]}, + \c!date\c!color=, + \c!date\c!align=,%\v!middle, + \c!before\c!title=, + \c!before\c!author=, + \c!before\c!date=, + \c!after\c!title={\blank[2*line]}, + \c!after\c!author={\blank[3*line]}, + \c!after\c!date=] + +%D \macros{SlideTitle} +%D \tex{SlideTitle}: well, the name says it all. The +%D argument is typeset as the title, but the implementation and the result +%D (alignment, size, distance to text, color etc.) vary from module to module, +%D so this macro is defined in each of the submodules. + +\def\setupSlideTitle + {\dosingleargument\dosetupSlideTitle} + +\def\dosetupSlideTitle[#1]% + {\setupmodule[simpleslides:slidetitle] + [\c!alternative=\v!normal,\c!width=\textwidth, + \c!height=2\lineheight,#1]} + +\def\simpleslidesslidetitleparameter%#1 + {\moduleparameter{simpleslides:slidetitle}} + +\def\defineSlideTitleAlternative + {\dodoubleargument\dodefineSlideTitleAlternative} + +\def\dodefineSlideTitleAlternative[#1][#2]% #3 + {\setvalue{simpleslides:slidetitle:#1}} + +\defineSlideTitleAlternative[\v!normal]#1% + {\page[\simpleslidesslidetitleparameter\c!page]% + \simpleslidesslidetitleparameter\c!before + \startalignment[\simpleslidesslidetitleparameter\c!align] + \doattributes{\??md:simpleslides:slidetitle:}\c!style\c!color{#1}% + \stopalignment + \simpleslidesslidetitleparameter\c!after} + +%D The layered alternative is adapted from a sample document that Brooks Moses +%D published on the wiki: + +\defineSlideTitleAlternative[layer]#1% + {\page[\simpleslidesslidetitleparameter\c!page]% + \simpleslidesslidetitleparameter\c!before + \setlayer[simpleslides:layer:slidetitle]% + {\getvalue{simpleslides:framed} + [\c!width=\simpleslidesslidetitleparameter\c!width, + \c!height=\simpleslidesslidetitleparameter\c!height, + \c!align=\simpleslidesslidetitleparameter\c!align] + {\doattributes{\??md:simpleslides:slidetitle:}\c!style\c!color{#1}}}% + \simpleslidesslidetitleparameter\c!after} + + +%D Now the main user command + +\def\SlideTitle{\dowithpargument\doSlideTitle} + +\def\doSlideTitle% #1 + {\getvalue{simpleslides:slidetitle:\simpleslidesslidetitleparameter{alternative}}} + +\setupSlideTitle + [\c!page=\v!yes, + \c!style={\switchtobodyfont[\SlideTitleSize]}, + \c!before={\setupPageBackground[horizontal]}, + \c!after={\blank[0.75cm]}, + \c!align=\v!middle, + \c!alternative=\v!normal] + + +%AM: Clean this up later. + +%D \macros{IncludePicture} +%D The macros for placing pictures. This section has been entirely rewritten in +%D order to provide a cleaner user interface and to make the code easier to +%D maintain. We now have just one macro, \tex{IncludePicture}, which +%D automatically inserts page breaks and adjusts the background and margins, if +%D necessary. This macro takes four arguments: +%D \setup{IncludePicture} +%D The first argument decides whether the picture will be place in a horizontal +%D or vertical arrangement; the second argument is the filename of the picture +%D you want to include; the third argument does some setup, and the fourth +%D argument (in braces) is the text accompanying the picture, which will be +%D placed either in a \tex{SlideTitle} environment (for horizontal pictures) or +%D opposite the picture, centered horizontally and vertically, for vertical +%D pictures. + +%D The user macro takes three arguments in brackets + an additional argument +%D for typeset content. So we define it in two steps: + +\def\setupPicture + {\dosingleargument\dosetupPicture} + +\def\dosetupPicture[#1]% + {\setupmodule[simpleslides:picture] + [highlight=\v!no, + steps=5, + opacity=0.5, + \c!x\c!scale=couple, + \c!y\c!scale=couple, + \c!width=,\c!height=,#1]} + +\setupPicture + [highlight=\v!no,%yes|no|default=no + \c!alternative=\v!none,%none|circle|arrow|focus|default=none + \c!grid\c!color=darkgreen, + \c!grid=\v!no, + \c!sub\c!grid=\v!no, + steps=5,%controls the number of subdivisions of the subgrid + \c!rulethickness={OverlayWidth/100},%for circle and arrow + \c!color=orange,% should this be called highlightcolor? + \c!x=5, + \c!y=5, + \c!x\c!scale=couple, + \c!y\c!scale=couple, + length=2cm, + direction=0, + opacity=0.5, + shadow=\v!no, + shadow\c!color=black, + ] + +\def\simpleslidesPictureParameter%#1 + {\moduleparameter{simpleslides:picture}} + + +\newconditional\simpleslidesHighlight \setfalse\simpleslidesHighlight +\newconditional\simpleslidesGrid \setfalse\simpleslidesGrid +\newconditional\simpleslidesSubGrid \setfalse\simpleslidesSubGrid + +\chardef\simpleslidesHighlightAlternative\zerocount %0=none, 1=circle, + %2=arrow, 3=focus +\chardef\simpleslidesShadow\zerocount %0=no, 1=topleft, 2=topright, + %3=bottomright, 4=bottomleft + +\def\IncludePicture% + {\dotripleargument\doIncludePicture} + + +\def\doIncludePicture[#1][#2][#3]#4% dir graphic options text + {\begingroup % Else the settings of \setupPicture are global + \setupPicture[#3]% + \processaction + [\simpleslidesPictureParameter{highlight}] + [ \v!yes=>\settrue\simpleslidesHighlight, + \v!no=>\setfalse\simpleslidesHighlight, + \v!default=>\setfalse\simpleslidesHighlight, + \v!unknown=>\setfalse\simpleslidesHighlight] + % + \processaction + [\simpleslidesPictureParameter\c!grid] + [ \v!yes=>\settrue\simpleslidesGrid, + \v!no=>\setfalse\simpleslidesGrid, + \v!default=>\setfalse\simpleslidesGrid, + \v!unknown=>\setfalse\simpleslidesGrid] + % + \processaction + [\simpleslidesPictureParameter{\c!sub\c!grid}] + [ \v!yes=>\settrue\simpleslidesSubGrid, + \v!no=>\setfalse\simpleslidesSubGrid, + \v!default=>\setfalse\simpleslidesSubGrid, + \v!unknown=>\setfalse\simpleslidesSubGrid] + % + \processaction + [\simpleslidesPictureParameter{shadow}] + [ \v!no=>\chardef\simpleslidesShadow\zerocount, + \v!yes=>\chardef\simpleslidesShadow\plusthree, + \v!top\v!left=>\chardef\simpleslidesShadow\plusone, + \v!top\v!right=>\chardef\simpleslidesShadow\plustwo, + \v!bottom\v!right=>\chardef\simpleslidesShadow\plusthree, + \v!bottom\v!left=>\chardef\simpleslidesShadow\plusfour, + \v!default=>\chardef\simpleslidesShadow\zerocount, + \v!unknown=>\chardef\simpleslidesShadow\zerocount] + % + \edef\simpleslidesGridColor{\simpleslidesPictureParameter{\c!grid\c!color}}% + \doifnothing{\simpleslidesGridColor}{\edef\simpleslidesGridColor{green}}% + % + \processaction + [\simpleslidesPictureParameter\c!alternative] + [ circle=>\chardef\simpleslidesHighlightAlternative\plusone + \simpleslidesSetEllipseDimensions, + arrow=>\chardef\simpleslidesHighlightAlternative\plustwo, + focus=>\chardef\simpleslidesHighlightAlternative\plusthree + \simpleslidesSetEllipseDimensions, + \v!default=>\chardef\simpleslidesHighlightAlternative\zerocount, + \v!unknown=>\chardef\simpleslidesHighlightAlternative\zerocount] + % + \processaction[#1] + [\v!horizontal=>{\doIncludePictureHorizontal[#2]{#4}}, + \v!vertical=>{\doIncludePictureVertical[#2]{#4}}, + \v!default=>{\doIncludePictureHorizontal[#2]{#4}}, + \v!unknown=>{\doIncludePictureHorizontal[#2]{#4}}% + \message{Keywords for positioning pictures are + "horizontal" or "vertical." + Please specify one of them!}] + \endgroup} + +%D We have to set the width or height for vertical and horizontal pictures +%D separately. We test if the user has supplied values for the "width" and +%D "height" key. If they have been set, these are used for the width/height of +%D the picture. If not, we determine the ratio of the picture and let it fill +%D the available space. Small pictures will be enlarged, big pictures will be +%D fit. This code was suggested by Wolfgang Schuster on the mailing list. + +\def\setPictureDimensionsTo#1#2% graphic width + {\doifelsenothing{\simpleslidesPictureParameter\c!width} + {\doifelsenothing{\simpleslidesPictureParameter\c!height} + {\setbox\scratchbox\hbox{\externalfigure[#1] + [\c!page=\simpleslidesPictureParameter\c!page]} + % Courtsey Wolfgang Schuster + \ifdim\dimexpr#2*100/\wd\scratchbox\relax < + \dimexpr\PictureFrameHeight*100/\ht\scratchbox\relax + % + \setvalue{simpleslides:picture:width}{#2}% + \setvalue{simpleslides:picture:height}{}% + \else + \setvalue{simpleslides:picture:width}{}% + \setvalue{simpleslides:picture:height}{\PictureFrameHeight}% + \fi} + {\setvalue{simpleslides:picture:width}{}% + \setvalue{simpleslides:picture:height}{\simpleslidesPictureParameter\c!height}}} + {\setvalue{simpleslides:picture:width}{\simpleslidesPictureParameter\c!width} + \setvalue{simpleslides:picture:height}{}}}% not \simpleslidesPictureParameter\c!height + +%D This macro places the picture centered both vertically and horizontally. + +\def\doplacePictureFrame[#1]#2% + {\framed[\c!frame=\v!off, + \c!framecolor=green, + \c!align=\v!middle, + \c!top=\vss, + \c!bottom=\vss, + \c!strut=\v!no, + \c!offset=\zeropoint,#1] + {\framed[\c!frame=\v!off, + \c!framecolor=red, + \c!strut=\v!no, + \c!offset=\zeropoint, + \c!width=\v!fit, + \c!height=\v!fit, + \c!background={foreground,simpleslides:background:highlight}] + {#2}}} + + +%D This macro places the picture in horizontal mode. + +\def\doIncludePictureHorizontal[#1]#2% graphic text + {\setPictureDimensionsTo{#1}\textwidth + \SlideTitle{#2}% + \doplacePictureFrame + [\c!width=\textwidth, + \c!height=\PictureFrameHeight] + {\externalfigure[#1] + [\c!height=\getvalue{simpleslides:picture:height}, + \c!width=\getvalue{simpleslides:picture:width}, + \c!page=\simpleslidesPictureParameter\c!page]}% + \page}% Otherwise last page is not correct in \MKII. + +%D This macro places the picture in vertical mode. + +\def\doIncludePictureVertical[#1]#2% graphic text + {\page + \setPictureDimensionsTo{#1}\PictureFrameWidth + \setupPageBackground[vertical] + \startcombination[2] + {\doplacePictureFrame + [\c!height=\textheight, + \c!width=\PictureFrameWidth] + {\externalfigure[#1] + [\c!height=\getvalue{simpleslides:picture:height}, + \c!width=\getvalue{simpleslides:picture:width}, + \c!page=\simpleslidesPictureParameter\c!page]}}{} + {\framed[\c!frame=\v!off, + \c!height=\textheight, + \c!width=\PictureFrameWidth, + \c!top=\vss, + \c!bottom=\vss, + \c!align=\v!middle, + \c!strut=\v!no]{#2}}{} + \stopcombination + \page}% Otherwise last page is not correct in \MKII. + +%D Now, we define the main \METAPOST\ graphic to highlight the picture. It first +%D checks if the user has asked for a grid, and if so, draws a grid and a +%D subgrid. Then it checks which alternative (arrow, circle, focus) is requested +%D and draws that. Notice that we have intermixed \TEX\ and \METAPOST, +%D exploiting the power of the MP-TEX interaction provided by \CONTEXT. + +\startuseMPgraphic{simpleslides:MP:highlight} +\ifconditional \simpleslidesHighlight + \ifconditional \simpleslidesGrid + \includeMPgraphic{simpleslides:MP:highlight:grid} + \ifconditional \simpleslidesSubGrid + \includeMPgraphic{simpleslides:MP:highlight:subgrid}% + \fi + \fi + \ifcase \simpleslidesHighlightAlternative \or + \includeMPgraphic{simpleslides:MP:highligh:circle} \or + \includeMPgraphic{simpleslides:MP:highligh:arrow} \or + \includeMPgraphic{simpleslides:MP:highligh:focus} \fi + \fi + setbounds currentpicture to OverlayBox ; +\stopuseMPgraphic + +%D Metapost graphic to draw a 10x10 grid on a picture. The width of the grid +%D line is 1/250th of the width of the picture, so smaller picture have smaller +%D grid lines. + +\startuseMPgraphic{simpleslides:MP:highlight:grid} + save xaxis, yaxis ; path xaxis, yaxis ; + xaxis := leftboundary OverlayBox ; + yaxis := bottomboundary OverlayBox ; + + + for i = 0 upto 10 : + + draw xaxis shifted (i/10*OverlayWidth, 0) + withpen pencircle scaled (OverlayWidth/250) + withcolor \MPcolor\simpleslidesGridColor ; + + draw yaxis shifted (0,i/10*OverlayHeight) + withpen pencircle scaled (OverlayWidth/250) + withcolor \MPcolor\simpleslidesGridColor ; + + label.bot(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" + & decimal i & "\stopcolor"), + (i/10*OverlayWidth, 0)) ; + label.top(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" + & decimal i & "\stopcolor"), + (i/10*OverlayWidth, OverlayHeight)) ; + + label.lft(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" + & decimal i & "\stopcolor"), + (0, i/10*OverlayHeight)) ; + label.rt(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]" + & decimal i & "\stopcolor"), + (OverlayWidth, i/10*OverlayHeight)) ; + endfor ; + setbounds currentpicture to OverlayBox ; +\stopuseMPgraphic + +%D The Metapost graphic draws a fine grid on the picture. The number of grid +%D lines is controlled by \type{steps} parameter of \type{\setupPicture}. Each +%D grid box of the 10x10 grid drawn above is subdivided into \type{steps} number +%D of finer lines. + +\startuseMPgraphic{simpleslides:MP:highlight:subgrid} + save xaxis, yaxis ; path xaxis, yaxis ; + xaxis := leftboundary OverlayBox ; + yaxis := bottomboundary OverlayBox ; + + + save stepSize ; numeric stepSize ; + stepSize := \simpleslidesPictureParameter{steps} + epsilon ; + + for i = 0 step 10/stepSize until 100 : + if i mod 10 <> 0 : + draw xaxis shifted (i/100*OverlayWidth, 0) + withpen pencircle scaled (OverlayWidth/500) + withcolor \MPcolor\simpleslidesGridColor ; + draw yaxis shifted (0,i/100*OverlayHeight) + withpen pencircle scaled (OverlayWidth/500) + withcolor \MPcolor\simpleslidesGridColor ; + fi + + endfor ; + setbounds currentpicture to OverlayBox ; +\stopuseMPgraphic + + +%D This is a helper macro to get the dimensions for the circle. Taking care of +%D expansion inside Metapost is tricky, so we define an external macro to set +%D the x and y scales correctly. This macro does not check if both x and y are +%D equal to 'couple'. We should probably catch that error inside Metapost, and +%D give an error message on the terminal if that is the case. + + +\def\simpleslidesSetEllipseDimensions% + {\edef\simpleslidesCurrentXscale{\simpleslidesPictureParameter{\c!x\c!scale}} + \edef\simpleslidesCurrentYscale{\simpleslidesPictureParameter{\c!y\c!scale}} + \doifelse{\simpleslidesCurrentXscale}{couple} + {\doifelse{\simpleslidesCurrentYscale}{couple} + {\edef\simpleslidesCurrentXscale{1} + \edef\simpleslidesCurrentYscale{1}} + {\dosimpleslidesSetEllipseDimensions}} + {\dosimpleslidesSetEllipseDimensions}} + +\def\dosimpleslidesSetEllipseDimensions% + {\processaction + [\simpleslidesCurrentXscale] + [ couple=>\edef\simpleslidesCurrentXscale{\simpleslidesCurrentYscale*OverlayHeight/5}, + \v!unknown=>\edef\simpleslidesCurrentXscale{\simpleslidesCurrentXscale*OverlayWidth/5}] + \processaction + [\simpleslidesCurrentYscale] + [ couple=>\edef\simpleslidesCurrentYscale{\simpleslidesCurrentXscale}, % no *OverlayWidth/5, it has already been scaled + \v!unknown=>\edef\simpleslidesCurrentYscale{\simpleslidesCurrentYscale*OverlayHeight/5}]} + +%D Metapost graphic to draw a circle. The circle is centered at (x,y) with a +%D x-radius equal to \type{xscale} and y-radius equal to \type{yscale}. If +%D either \type{xscale} or \type{yscale} equals \type{couple}, a circle is drawn +%D with radius equal to the other (non-couple) scale parameter. The thickness of +%D the circle is \type{rulethickness} and the color is \type{color}. The +%D circle is rotated by an angle \type{direction} + +\startuseMPgraphic{simpleslides:MP:highligh:circle} + save p; path p; + p := fullcircle xyscaled + % The dimensions are divided by 5 rather than 10, since the scale + % measures the radius, rather than the diameter. + (\simpleslidesCurrentXscale, \simpleslidesCurrentYscale) + rotated (\simpleslidesPictureParameter\c!direction) + shifted + (\simpleslidesPictureParameter\c!x *OverlayWidth/10, + \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; + + \ifcase \simpleslidesShadow \else + + save shadow_direction ; pair shadow_direction ; + shadow_direction =\simpleslidesPictureParameter\c!rulethickness * + \ifcase \simpleslidesShadow \or + (-1,1) \or (1,1) \or (1,-1) \or (-1,-1) \fi ; + + + save shadow_thickness ; numeric shadow_thickness ; + shadow_thickness := 2.7\simpleslidesPictureParameter\c!rulethickness ; + + def shadow_draw = draw enddef ; + + \includeMPgraphic{simpleslides:MP:highligh:shadow} + \fi + + draw p withcolor \MPcolor{\simpleslidesPictureParameter\c!color} + withpen pencircle scaled (\simpleslidesPictureParameter\c!rulethickness); + +\stopuseMPgraphic + +%D Metapost graphic to draw an arrow. The arrow's tip is at \type{(x,y)}, and it +%D is \type{length} long in the direction specified by \type{direction}. The +%D arrow is \type{2×rulethickness} thick (the factor of 2 is there so that the +%D same default works for both circle and arrows) and is on \type{color} color. + +\startuseMPgraphic{simpleslides:MP:highligh:arrow} + autoarrows := true ; % so that arrow heads are scaled correctly. + + z1 = (\simpleslidesPictureParameter\c!x *OverlayWidth/10, + \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; + z2 = z1 + \simpleslidesPictureParameter{length} * + dir(\simpleslidesPictureParameter{direction}) ; + + save p ; path p ; + p := z2 -- z1 ; + + \ifcase \simpleslidesShadow \else + save shadow_direction ; pair shadow_direction ; + shadow_direction = 2*\simpleslidesPictureParameter\c!rulethickness * + dir(%\simpleslidesPictureParameter{direction} + + \ifcase \simpleslidesShadow \or + 135 \or 45 \or -45 \or -135 \fi ) ; + + save shadow_thickness ; numeric shadow_thickness ; + shadow_thickness := 2*\simpleslidesPictureParameter\c!rulethickness ; + + def shadow_draw = drawarrow enddef ; + + \includeMPgraphic{simpleslides:MP:highligh:shadow} + \fi + + drawarrow p + withcolor \MPcolor{\simpleslidesPictureParameter\c!color} + withpen pencircle scaled (2*\simpleslidesPictureParameter\c!rulethickness); + +\stopuseMPgraphic + +%D Metapost graphic to focus on a particular area. The coordinates of the focus +%D area are equivalent to that of \type{alternative=circle}. The "unfocussed" +%D area is covered with \type{shadowcolor} made transparent by +%D \type{opacity} amount. + +\startuseMPgraphic{simpleslides:MP:highligh:focus} + save p; path p; + p := fullcircle xyscaled + % The dimensions are divided by 5 rather than 10, since the scale + % measures the radius, rather than the diameter. + (\simpleslidesCurrentXscale, \simpleslidesCurrentYscale) + rotated (\simpleslidesPictureParameter\c!direction) + shifted + (\simpleslidesPictureParameter\c!x *OverlayWidth/10, + \simpleslidesPictureParameter\c!y *OverlayHeight/10) ; + + fill OverlayBox -- reverse p -- cycle + withcolor transparent ("normal", + \simpleslidesPictureParameter{opacity}, + \MPcolor{\simpleslidesPictureParameter{shadow\c!color}}) ; +\stopuseMPgraphic + +%D The next Metapost graphic draws an arrow. To ensure code re-usability, we +%D assume that the shape of the shadow is stored as a path \type{p}, it is +%D shifted by amount \type{shadow_direction} and its thickness is +%D \type{shadow_thickness}. It is the responsibility of the calling function to +%D ensure that this is done. There are four options for the shadow, +%D \type{topleft}, \type{topright}, \type{bottomright}, and \type{bottomleft}. +%D (TODO: Keep this thickness configurable). The shadow is drawn in color +%D \type{shadowcolor}. The arrow is drawn with a transparent color whose opacity +%D is given by \type{opacity}. + +\startuseMPgraphic{simpleslides:MP:highligh:shadow} + %% I hope there were a better way to do this. + for i = 1 upto 20 : + shadow_draw p shifted shadow_direction + withcolor transparent ("normal", + \simpleslidesPictureParameter{opacity}/10, % 0.1, + \MPcolor{\simpleslidesPictureParameter{shadow\c!color}}) + withpen pencircle scaled (i*shadow_thickness/20) ; + endfor +\stopuseMPgraphic + + +%D This is a small square which will be used for itemizations; it will be +%D placed in the margin. + +\startuniqueMPgraphic{simpleslides:itemize:triangle} + fill (0,0) -- (0,0.4cm) -- (0.6cm,0.2cm) -- cycle + withcolor \MPcolor{simpleslides:itemize:color} ; +\stopuniqueMPgraphic + +\startuniqueMPgraphic{simpleslides:itemize:square} + fill unitsquare xyscaled(0.4cm,0.4cm) + withcolor \MPcolor{simpleslides:itemize:color} ; +\stopuniqueMPgraphic + + + +\protect + +\stopmodule diff --git a/Master/texmf-dist/tex/context/third/simpleslides/t-simpleslides.tex b/Master/texmf-dist/tex/context/third/simpleslides/t-simpleslides.tex new file mode 100644 index 00000000000..50b8e6afea9 --- /dev/null +++ b/Master/texmf-dist/tex/context/third/simpleslides/t-simpleslides.tex @@ -0,0 +1,80 @@ +%D \module +%D [ file=t-simpleslides, +%D version=2009.03.30 +%D title=\CONTEXT\ Style File, +%D subtitle=Presentation Module simpleslides, +%D author=Aditya Mahajan and Thomas A. Schmitz, +%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. + +%M \usemodule[int-load] +%M \setupcolors[state=start] +%M \loadsetups[cont-en.xml] +%M \loadsetups[t-simpleslides.xml] + +%D This module is meant to facilitate writing presentations in \CONTEXT. It +%D provides a consistent interface and macros; there are different styles which +%D give different output. The module has been written for projector||based +%D presentations, so elements which are typical for screen presentations (such +%D as interactive hyperlinks or tables of contents) are not included. The +%D module is meant for an academic environment, specifically in the humanities. +%D Hence, it has the following characteristics: +%D +%D \startitemize +%D +%D \item The look is rather sober. In academia, presentations are not meant to +%D showcase fancy \TeX\ effects; nothing should divert the audience's attention +%D from the content. +%D +%D \item The module is written for slides which exhibit text and/or images. +%D From my own experience with \TeX||based presentations, I have provided a +%D setup for horizontal (landscape) pictures and for vertical (portrait) +%D pictures, which are accompanied by an area for explanatory text. +%D +%D \item A simple switch in the module setup command will produce different +%D output. +%D +%D \item It is easy to customize the module or to add more styles. +%D +%D \stopitemize +%D +%D The macros are commented rather extensively to give users (especially users +%D relatively new to \CONTEXT) the chance to understand the mechanisms and +%D create their own styles. Of course, I did not invent this code on my own. My +%D thanks are due, as always, to Hans Hagen, whose presentation modules in the +%D \CONTEXT\ core have been a wonderful source of inspiration, to Mojca +%D Miklavec, who provided help with Metapost, and to Aditya Mahajan, who helped +%D tremendously in cleaning up the code and making the user interface more +%D consistent. + +\writestatus{loading}{module simpleslides} + +\startmodule[simpleslides] + +\unprotect + +\setupmodule + [style=DoubleFrame, + font=LatinModernSans, + size=17pt, + color=blue, + alternative=square] + +\usemodule + [simpleslides-f] + [default] + +\usemodule + [simpleslides-s] + [default] + +\doiffileelse{\currentmoduleparameter\c!style} + {\usemodule[\currentmoduleparameter\c!style]} + {\usemodule[simpleslides-s][\currentmoduleparameter\c!style]} + +\protect + +\stopmodule -- cgit v1.2.3