diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-09 22:18:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-09 22:18:33 +0000 |
commit | c3118eedc62b4c0d74ab498271fe46cfd8d1d7ce (patch) | |
tree | 2146aa6a46d7616e1643d1906c0f6435c3854577 /Master | |
parent | e737ab5ead4d8f9731cad3e5bc4b5fbe9b837ff0 (diff) |
rm context-taspresent, superseded by simpleslides per tschmitz
git-svn-id: svn://tug.org/texlive/trunk@14211 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
26 files changed, 0 insertions, 4689 deletions
diff --git a/Master/texmf-dist/doc/context/third/taspresent/demo.tex b/Master/texmf-dist/doc/context/third/taspresent/demo.tex deleted file mode 100644 index 5f6988d7f51..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/demo.tex +++ /dev/null @@ -1,153 +0,0 @@ -\usemodule[taspresent][style=rules,font=MyriadPro,size=17pt,stylecolor=red] - -\setvariables [taspresent] - [author={Groucho Marx}, - title={Marriage the Chief Cause of Divorce}] - -% \usetypescriptfile[type-gtamacfonts] -% \definetypeface[MyFace][ss][sans][optima][default][encoding=ec] -% %\usetypescript[LucidaSans][ec] -% \setupbodyfont[MyFace,ss,\Normalsize] - -% \usesymbols[lucidasans] -% \setupsymbolset[LucidaSans] -% \definesymbol[1][{\symbol[Check2]}] - -% \showframe - -% \traceexternalfigurestrue - -\starttext - -\Maketitle - -\Slidetitle{Text} - -\lecback - -Thus, I came to the conclusion that the designer of a new -system must not only be the implementer and first -large||scale user; the designer should also write the first -user manual. - -The separation of any of these four components would have -hurt \TeX\ significantly. If I had not participated fully in -all these activities, literally hundreds of improvements -would never have been made, because I would never have -thought of them or perceived why they were important. - -But a system cannot be successful if it is too strongly -influenced by a single person. Once the initial design is -complete and fairly robust, the real test begins as people -with many different viewpoints undertake their own -experiments. - -\Slidetitle{Itemization} - -\startitemize[1] -\item Thus, I came to the conclusion that the designer of a new - system -\item must not only be the implementer and first - large||scale user; -\item the designer should also write the first - user manual. -\item The separation of any of these four components would have - hurt \TeX\ significantly. -\stopitemize - -\Slidetitle{Numbered Itemization} - -\startitemize[n] -\item Thus, I came to the conclusion that the designer of a new - system -\item must not only be the implementer and first - large||scale user; -\item the designer should also write the first - user manual. -\item The separation of any of these four components would have - hurt \TeX\ significantly. -\stopitemize - -\Slidetitle{Picture in Horizontal Mode} - -\PicHoriz[hor][height=\NormalHeight] - -\page - -\picback - -\PicVert[vert][width=\NormalWidth]{Picture in \\ Vertical Mode} - -\page - -\CircVert[scale=22,x=23,y=25][vert][width=\NormalWidth]{Circle in \\ Vertical Mode} - -\page - -\ArrowVert[direction=90,x=7,y=23][vert][width=\NormalWidth]{Arrow in \\ Vertical Mode} - -\Slidetitle{Red Circle} - -\lecback - -\CircHoriz[scale=40,x=120,y=80][hor][height=\NormalHeight] - -\Slidetitle{Red Arrow} - -\ArrowHoriz[direction=135,x=105,y=15][hor][height=\NormalHeight] - -\Slidetitle{A MetaFun graphic} - -\placefigure[here]{none}{% -\startMPcode -pickup pencircle scaled 4pt ; -draw unitsquare xyscaled (5cm,5cm) withcolor red ; -\stopMPcode -} - -\Slidetitle{Some Code Snippets} - -To set up a horizontal picture, simply type: - -\startTEX -\PicHoriz[hor][height=\Normalheight] -\stopTEX - -\blank[line] - -For vertical pictures: - -\startTEX -\PicVert[vert][width=\NormalWidth]% -{Text placed \\ opposite picture} -\stopTEX - -\Slidetitle{Math} - -Since I know nothing about math, this example is copied from the wiki: - -\startformula - f(x) = \startmathcases - \NC x, \NC if $0 \le x \le \frac12$ \NR - \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR -\stopmathcases -\stopformula - -\Slidetitle{Your Own Ideas?} - -\null - -\vfill - -\midaligned{\tfd Go \color[red]{here!}} - -\vfill - -\page - -\stoptext - -%%% Local Variables: -%%% mode: context -%%% TeX-master: t -%%% End: diff --git a/Master/texmf-dist/doc/context/third/taspresent/hor.jpg b/Master/texmf-dist/doc/context/third/taspresent/hor.jpg Binary files differdeleted file mode 100644 index 892615f812e..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/hor.jpg +++ /dev/null diff --git a/Master/texmf-dist/doc/context/third/taspresent/readme b/Master/texmf-dist/doc/context/third/taspresent/readme deleted file mode 100644 index cbbc956c4b7..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/readme +++ /dev/null @@ -1,136 +0,0 @@ -Module for projector-based presentations ------------------------------------------ - -This directory provides a module to produce presentations with ConTeXt. It -contains the following files: - -doc/taspresent/readme (this file) -doc/taspresent/demo.tex -doc/taspresent/hor.jpg -doc/taspresent/taspresent-manual.pdf -doc/taspresent/vert.jpg -texmf/tex/context/third/taspresent/rainbow.pdf -texmf/tex/context/third/taspresent/t-blackblue.tex -texmf/tex/context/third/taspresent/t-bluegray.tex -texmf/tex/context/third/taspresent/t-bluestripe.tex -texmf/tex/context/third/taspresent/t-darkshade.tex -texmf/tex/context/third/taspresent/t-doubleframe.tex -texmf/tex/context/third/taspresent/t-doubleshade.tex -texmf/tex/context/third/taspresent/t-embossed.tex -texmf/tex/context/third/taspresent/t-graybeams.tex -texmf/tex/context/third/taspresent/t-graysquare.tex -texmf/tex/context/third/taspresent/t-greenblue.tex -texmf/tex/context/third/taspresent/t-horizontalblue.tex -texmf/tex/context/third/taspresent/t-lightblue.tex -texmf/tex/context/third/taspresent/t-narrowstripe.tex -texmf/tex/context/third/taspresent/t-quadblue.tex -texmf/tex/context/third/taspresent/t-rainbowstripe.tex -texmf/tex/context/third/taspresent/t-redframe.tex -texmf/tex/context/third/taspresent/t-taspresent.tex - -The two images hor.jpg and vert.jpg are copyright 2007 Patrick Gundlach and are -published under the GNU General Public License v. 2.0. All other files are -copyright 2007 by Thomas A. Schmitz; they are published under the GNU General -Public License v. 2.0. - - -Installation ------------- - -Simply move the module files t-* into a place where TeX can find them. The -canonical location would be $TEXMF/tex/context/third, where you can create a -subdiretory "presentations" to keep everything together. On most systems, you -will have to run texhash after installing new packages. If you want to test the -module before actually installing it, just leave everything in the original -directory and typeset the demo file. - - -Use ---- - -A full manual is included, Here is a very short version for the impatient: - -To use the module, include this line in your file: - -\usemodule[taspresent] -[style=doubleframe,font=Helvetica,size=17pt,stylecolor=blue,stylebottom=sqaure] - -For the "style" parameter, there are currently sixteen options: - -blackblue -bluegray -bluestripe -darkshade -doubleframe -doubleshade -embossed -graybeams -graysquare -greenblue -horizontalblue -lightblue -narrowstripe -quadblue -rainbowstripe -redframe - -This will modify the background of your slides and the placement of certain -elements. - -For the "font" parameter, there are currently five options: - -LatinModern [typesets in LatinModern Serif] -LatinModernSans [typesets in LatinModern Sans] -Times [the free clone of TimesNew Roman] -Helvetica [the free clone of Helvetica] -Pagella [the tex-gyre clone of Palatino; only if you have the tex-gyre - fonts installed] -User [this does not set a font; provide your own definitions] - -If you want to use your own typescripts, remember to use the bodyfont at -\Normalsize like so: - -\usetypescriptfile[type-mytypescript] -\usetypescript[myfont][ec] -\setupbodyfont[MyFont,\Normalsize] - -And of course, invoke the typescript after the \usemodule part! - -The "size" can be set to 16pt, 17pt, 18pt, 19pt, 20pt, or 21pt ; the default is -17pt for text and 27pt for titles. - -The easiest way to see what the module does and which macros it provides is -looking at (and typesetting) the included file "demo.tex" with different -options. If you want to know more about the way in which the module is set up, -typeset the source of the different source files with the command texmfstart -texexec --module. The source is annotated, so you should be able to see how it -works even if you don't have too much experience with ConTeXt. - -Defining your own styles is easy: have a look at the style files which are -included. Certain macros have to be defined. Roll your own definitions for -these macros and for the background, write them into a file whatever.tex and -use this new style by setting it as the value to the "style" key like so: -\usemodule[taspresent][font=Times,size=17pt,style=whatever] - - -Revision History ----------------- - -2008-08-11 - -- Added still more styles; -- cleaned up syntax for placing pictures and circles/arrows. - -2007-08-08 -- Added some new styles; -- added the \setvariables and \Maketitle macros; -- added the "stylecolor" and "stylebottom" options; -- arrows and circles for vertical pictures. - -2007-07-24 -- Added new commands for arrows and circles in vertical pictures; -- made syntax for picture placement more conform to ConTeXt use; -- easier syntax for adding custom styles (suggestion by Peter Münster). - -2007-07-22 -Initial release diff --git a/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.pdf b/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.pdf Binary files differdeleted file mode 100644 index f2748c30192..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.tex b/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.tex deleted file mode 100644 index 609dece5dcd..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/taspresent-manual.tex +++ /dev/null @@ -1,496 +0,0 @@ -%&latex - -\setupcolors[state=start] - -\setupbodyfontenvironment[default][em=italic] - -\definetype[typeTEX][option=color] -\setuptype[option=TEX] - -%\setuphead[subsection][page=yes] - -\define[1]\MyStyle{\color[blue]{\bf #1}} - -\starttext - -\section{Introduction} - -The modules in the {\tt taspresent} directory aim to provide an -easy|-|to|-|use, consistent interface for writing simple presentations in -\CONTEXT. I had the idea to write this module when I was preparing my own -presentations with \CONTEXT. I wanted to be able to achieve visually -different results without changing my source files, so I wrote different -styles that followed the same logic and provided the same macros. When I -created this module, I had the following requirements in mind: - -\startitemize -\item Most of the styles that are provided are rather sober in - appearance. I use them for my university lectures in the humanities. They - provide a nice but not too distracting background and a lot of space for - presentations with large amounts of text. -\item The module is meant for presentations which will be shown with the - help of a digital projector. Hence, they have no interactive elements - (such as buttons) and no tools for navigation (such as a table of - contents). -\item The module allows for user configurability. It comes with several - predefined styles and some predefined font options. The modular structure - makes it easy to add further styles. -\item Picture placement and changing backgrounds is made easy by predefined - macros. -\stopitemize - -The module provides a simple, basic structure; I think it will be best suited -for beginners or intermediate users of \CONTEXT. It is definitely not meant -to compete with Hans's fuller and fancier presentation modules, and it -offers much less than the \LaTeX\ {\tt beamer} package. On the other hand, -it is much easier to use; you should be able to write your first -presentation after spending five minutes with this manual. - -\section{Installation} - -Installation is easy: just put the files {\tt t-<something>} into a -directory where \TeX\ can see them. For \CONTEXT\ third|-|party modules, -the canonical place would be in one of your {\tt TEXMF} trees, under {\tt - tex/context/third}. If you want to keep things tidy, place them in a -subdirectory {\tt taspresent}. If you just unzip the archive {\tt - taspresent.zip} in a {\tt TEXMF} directory, things will be moved to the -right place automatically. On many \TeX|-|systems, you will have to run -{\tt texhash} after installing new files. To doublecheck whether the system -finds your files, run {\tt kpsewhich t-taspresent.tex} from the command -line; if all goes well, this should return the position of the file you -have just installed. - -\section{Setting up the Module} - -To use the module, you put this line into your source file: - -\startTEX -\usemodule[taspresent][style=,font=,size=,stylecolor=,stylebottom=] -\stopTEX - -The values for the different keys will be explained in the following -sections. - -\section{The {\tt style} Key} - -There are ten options for the {\tt style} key: - -\subsection{\MyStyle{blackblue}} - -This style was inspired by the \quotation{Copenhagen} theme of the \LaTeX\ -{\tt beamer} package. The narrow blue and black stripes at the top and the -bottom of the slides display the date and slidenumber (top) and the title -and author of the presentation. - -\placefigure[here]{The \MyStyle{blackblue} - style}{\externalfigure[blackblue][width=\textwidth]} - -\page - -\subsection{\MyStyle{bluegray}} - -The colors of this style are very subdued and quiet; the interesting thing -is the pagenumber on the border of the margin and text area; this detail -was inspired by Hans's \quotation{split} style ({\tt pre-14}). - -\placefigure[here]{The \MyStyle{bluegray} - style}{\externalfigure[bluegray][width=\textwidth]} - -\page - -\subsection{\MyStyle{bluestripe}} - -This theme is inspired by the \quotation{Berkeley} style of the \LaTeX\ -{\tt beamer} package. Apart from the blue sidebars, it has no ornaments. - -\placefigure[here]{The \MyStyle{bluestripe} - style}{\externalfigure[bluestripe][width=\textwidth]} - -\page - -\subsection{\MyStyle{darkshade}} - -The only ornament to this style is the dark shaded background; it has two -style colors, {\tt stylecolor=blue} and {\tt stylecolor=green}; if you feel -really adventurous, try {\tt stylecolor=bluered}! It uses \CONTEXT's {\tt - interactionbar} mechanism to show the progress of the presentation. It -provides much space for text. - -\placefigure[here]{The \MyStyle{darkshade} - style with {\tt stylecolor=blue}}{\externalfigure[blueshade][width=\textwidth]} - -\page - -\subsection{\MyStyle{doubleframe}} - -This style was inspired by Hans's \quotation{green} style ({\tt s-pre-02}). It -has a thick blue frame around the entire slide area and a thinner frame around -the text area. The style has two options for the bottom area: {\tt -stylebottom=stripe} will display a shaded blue area which will grow with each -slide; {\tt stylebottom=square} displays a row of blue squares at the bottom -which also measure the presentation's progress. - -\placefigure[here]{The \MyStyle{doubleframe} -style with the {\tt stylebottom=stripe} option}{\externalfigure[blueframe][width=\textwidth]} - -\page - -\placefigure[here]{The \MyStyle{doubleframe} -style with the {\tt stylebottom=square} option}{\externalfigure[squareframe][width=\textwidth]} - -\page - -\subsection{\MyStyle{doubleshade}} - -Similar to the \MyStyle{blueshade} style, but there is a differently shaded -area on the left with a progress meter. - -\placefigure[here]{The \MyStyle{doubleshade} - style}{\externalfigure[doubleshade][width=\textwidth]} - -\page - -\subsection{\MyStyle{embossed}} - -Spread the word, don't be shy! Show your pride in using \CONTEXT. The color -theme will probably look familiar; I copied it from the {\tt enattab} -manual. - -\placefigure[here]{The \MyStyle{embossed} - style}{\externalfigure[embossed][width=\textwidth]} - -\page - -\subsection{\MyStyle{graybeams}} - -This design is inspired by the {\tt husky} theme for the \LaTeX\ package {\tt -powerdot}, created by Jack Stalnaker. - -\placefigure[here]{The \MyStyle{graybeams} - style}{\externalfigure[graybeams][width=\textwidth]} - -\page - -\subsection{\MyStyle{graysquare}} - -This minimalistic design is inspired by a presentation Taco gave at EuroTeX -2006. - -\placefigure[here]{The \MyStyle{graysquare} - style}{\externalfigure[graysquare][width=\textwidth]} - -\page - -\subsection{\MyStyle{greenblue}} - -This style has cool colors and lots of white space; it is probably best suited -for presentations with relatively little text. - -\placefigure[here]{The \MyStyle{greenblue} - style}{\externalfigure[greenblue][width=\textwidth]} - -\page - -\subsection{\MyStyle{horizontalblue}} - -A sober style with an emphasis on horizontal lines, inspired by {\tt - beamer}'s \quotation{Szeged} theme. - -\placefigure[here]{The \MyStyle{horizontalblue} - style}{\externalfigure[horizontalblue][width=\textwidth]} - -\page - -\subsection{\MyStyle{lightblue}} - -This style emphasizes the title with its lively colors; the text area is -delimited by a light blue, shaded margin. - -\placefigure[here]{The \MyStyle{lightblue} - style}{\externalfigure[lightblue][width=\textwidth]} - -\page - -\subsection{\MyStyle{narrowstripe}} - -A variation on the \MyStyle{bluestripe} style, with shaded narrow -stripes. This style comes with two color options, which you set with the -{\tt stylecolor} key; {\tt stylecolor=red}, {\tt stylecolor=green}, or {\tt - stylecolor=blue}. - -\placefigure[here]{The \MyStyle{narrowblue} -style with {\tt stylecolor=blue}}{\externalfigure[narrowblue][width=\textwidth]} - -% \page -% -% \subsection{\MyStyle{narrowred}} -% -% Like the \MyStyle{narrowblue} style, but with a red theme color. -% -% \placefigure[here]{The \MyStyle{narrowred} -% style}{\externalfigure[narrowred][width=\textwidth]} - -\page - -\subsection{\MyStyle{quadblue}} - -This style is inspired by the colors and corporate look of my -university. It is very sober and offers much space for text and -images. There is a rough progress meter built into the blue quadrangles. - -\placefigure[here]{The \MyStyle{quadblue} - style}{\externalfigure[quadblue][width=\textwidth]} - -\page - - -\subsection{\MyStyle{rainbowstripe}} - -A colorful style for daring presenters. The black line which marks the -progress is reminiscent of absorption lines in star spectra, so this style -may be apt for astrophysical presentations? - -\placefigure[here]{The \MyStyle{rainbowstripe} - style}{\externalfigure[rainbowstripes][width=\textwidth]} - -\page - -\subsection{\MyStyle{redframe}} - -This style is inspired by the screen version of the Metafun manual. Watch -the small gray circles at the bottom! - -\placefigure[here]{The \MyStyle{redframe} - style}{\externalfigure[redframe][width=\textwidth]} - -\subsection{Customization} - -The style parameter allows easy customization. If you want to develop your -own theme, I would suggest copying one of the style files to another name, -say {\tt MyStyle.tex}, and modifying it to your heart's content: you can -change the colors or define a different background altogether, think of a -different way of displaying titles, different margins, etc. Just be sure to -define all the macros that are needed. After producing your own style, -again, copy it to a place where \TeX\ can find it (such as the same -directory where the source of your presentation resides) and instruct the -module to use your file: - -\startTEX -\usemodule[taspresent][style=MyStyle,font=Times,size=17pt] -\stopTEX - -\section{The {\tt font} Key} - -There is a number of predefined fonts which can be selected by setting the -{\tt font} key. - -\starttabulate[|l|p|] -\NC {\tt LatinModern} \NC typesets in LatinModern Serif\NC \NR -\NC {\tt LatinModernSans} \NC typesets in LatinModern Sans\NC \NR -\NC {\tt Times} \NC the free clone of TimesNew Roman\NC \NR -\NC {\tt Helvetica} \NC the free clone of Helvetica\NC \NR -\NC {\tt Pagella} \NC the tex-gyre clone of Palatino; this will -only work if you have the tex-gyre fonts installed\NC \NR -\stoptabulate - -In addition, there is a value {\tt User}; this will not set a font but -allow you to provide your own settings. If you set your own font, please -remember to select the bodyfont at \typeTEX{\Normalsize} and to give your setup -commands {\em after} loading the module (or \TeX\ will not know what -\typeTEX{\Normalsize} means and complain about an \quotation{undefined control - sequence}). For example, for the samples included here, I have used my own -typescript which defines the Adobe MyriadPro font: - -\startTEX -\usetypescriptfile[type-myriadpro] -\usetypescript[MyriadPro] [texnansi] -\setupbodyfont[MyMyriadPro,ss,\Normalsize] -\stopTEX - -\section{The {\tt size} Key} - -This selects the font size for the main text and defines a corresponding -size for titles. - -\placefigure[here]{Text and title sizes} -{\setupTABLE[column][width=3cm,align=middle] -\bTABLE -\bTR \bTD Value \eTD \bTD Normalsize \eTD \bTD Titlesize \eTD \eTR -\bTR \bTD 16pt \eTD \bTD 16pt \eTD \bTD 25pt \eTD \eTR -\bTR \bTD 17pt \eTD \bTD 17pt \eTD \bTD 27pt \eTD \eTR -\bTR \bTD 18pt \eTD \bTD 18pt \eTD \bTD 28pt \eTD \eTR -\bTR \bTD 19pt \eTD \bTD 19pt \eTD \bTD 30pt \eTD \eTR -\bTR \bTD 20pt \eTD \bTD 20pt \eTD \bTD 30pt \eTD \eTR -\bTR \bTD 21pt \eTD \bTD 21pt \eTD \bTD 30pt \eTD \eTR -\eTABLE} - -\section{Macros} - -The module provides some macros to facilitate the preparation of -presentations. - -\subsection{\typeTEX{\setvariables}} - -Begin your presentation by setting the name of the author(s) and the title -with this macro: - -\startTEX - -\setvariables [taspresent] - [author={Groucho Marx}, - title={Marriage the Chief Cause of Divorce}] -\stopTEX - -\subsection{\typeTEX{\Maketitle}} - -This macro will produce a title page with the author and the title of the -presentation; the look is of course determined by the style of your -presentation. - -\placefigure[here]{A Title Page}{\externalfigure[titlepage][width=\textwidth]} - -\subsection{\typeTEX{\Slidetitle{}}} - -As the name suggests, this macro typesets its argument as the title of the -slide. What the title looks like is determined by the selected presentation -style. - -\subsection{\typeTEX{\PicHoriz}} - -This macro facilitates the placement of landscape images. It takes two -arguments: - -\startTEX -\PicHoriz[image][height=\NormalHeight] -\stopTEX - -The first argument is the name of the image you want to place; the second -argument determines the size. If your picture is not too broad, a height of -\typeTEX{\NormalHeight} will make it fill up the entire text area. If your -picture is too broad, you should set \typeTEX{width=\textwidth}. - -\placefigure[here]{Placement of a horizontal picture}{\externalfigure[horizontal][width=\textwidth]} - -\page - -\subsection{\typeTEX{\PicVert}} - -This macro facilitates the placement of portrait images. It takes three -arguments: - -\startTEX -\PicVert[image][width=\NormalWidth]{Text \\ to go \\ with the picture} -\stopTEX - -Again, the first argument is the name of the image you want to place; the -second argument determines the size. If your picture is not too high, a -width of \typeTEX{\NormalWidth} will make it fill up the entire left half -of the text area. If your picture is too hight, you should set -\typeTEX{height=\textheight}. The third argument is the text that will be -placed opposite the picture. - -\placefigure[here]{Placement of a vertical picture}{\externalfigure[vertical][width=\textwidth]} - -\page - -\subsection{\typeTEX{\CircHoriz}} - -This command works exactly like \typeTEX{\PicHoriz}, but takes an -additional (third) argument. It places a red circle on top of the picture; -the placement and size of this circle is determined by this third argument: - -\startTEX -\CircHoriz[scale=40,x=120,y=80][image][height=\NormalHeight] -\stopTEX - -The {\tt scale} key sets the diameter of the circle (in mm), {\tt x} -and {\tt y} set horizontal and vertical position. You will probably -have to fiddle with these keys to get the circle exactly where you want -it. - - -\placefigure[here]{A picture with a red circle}{\externalfigure[circle][width=\textwidth]} - -\page - -\subsection{\typeTEX{\ArrowHoriz}} - -This command works exactly like \typeTEX{\PicHoriz}, but takes an -additional (third) argument. It places a red arrow on top of the picture; -the direction and size of this arrow is determined by this third argument: - -\startTEX -\CircHoriz[direction=135,x=120,y=80][image][height=\NormalHeight] -\stopTEX - -The {\tt direction} key sets the direction into which the arrowhead points, -{\tt x} and {\tt y} set its horizontal and vertical position. You will -probably have to fiddle with these keys to get the circle exactly where you -want it. - -\placefigure[here]{A picture with a red arrow}{\externalfigure[arrow][width=\textwidth]} - -\page - -\subsection{\typeTEX{\CircVert} and \typeTEX{ArrowVert}} - -Of course, there are also circles and arrows for \quotation{vertical} -pictures; again, the first argument is the position of the circle/arrow: - -\startTEX -\CircVert[scale=22,x=23,y=25]% -[vert]% -[width=\NormalWidth]% -{Circle in \\ Vertical Mode} - -\ArrowVert[direction=90,x=7,y=23]% -[vert]% -[width=\NormalWidth]% -{Arrow in \\ Vertical Mode} -\stopTEX - -\placefigure[here]{Vertical picture with red circle}{\externalfigure[circvert][width=\textwidth]} - -\placefigure[here]{Vertical picture with red arrow}{\externalfigure[arrvert][width=\textwidth]} - -\subsection{Background} - -Some of the styles provide up to three backgrounds: for titles, for slides -with vertical image, and for normal slides with text or horizontal -images. Switching the backgrounds also adjusts parameters like margins or -headers, where this is necessary. There are three commands for setting the -background for title slides, \quotation{horizontal} slides and -\quotation{vertical} slides respectively: - -\startTEX -\titback -\lecback -\picback -\stopTEX - -\section{Handouts} - -The easiest way to make handouts from your slides is post|-|processing the -pdf|-|file of your presentation. If you want to make the handouts from the -slides such as they appear, just run this command in the directory where -your slides are located (of course, put the name of your own presentation -where you see {\tt demo.pdf} in the example; the entire command has to go -in one long line): - -{\tt texmfstart texexec --pdfcombine --combination='2*3' --nobanner - - --result=handout demo.pdf} - -This way, you will get a handout with six slides typeset in two columns per -page. - -If you prefer to have the handouts without the colored background, typeset -your presentation and leave the {\em style} key unset; that way, you will -get a default version without backgrounds and fancy frames. - -\stoptext - -%%% Local Variables: -%%% mode: context -%%% TeX-master: t -%%% End: diff --git a/Master/texmf-dist/doc/context/third/taspresent/vert.jpg b/Master/texmf-dist/doc/context/third/taspresent/vert.jpg Binary files differdeleted file mode 100644 index ff9d234db16..00000000000 --- a/Master/texmf-dist/doc/context/third/taspresent/vert.jpg +++ /dev/null diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-blackblue.tex b/Master/texmf-dist/tex/context/third/taspresent/t-blackblue.tex deleted file mode 100644 index 6e79488a9ba..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-blackblue.tex +++ /dev/null @@ -1,145 +0,0 @@ -%D \module -%D [ file=t-blackblue, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module blackblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{blackblue} 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\ {\tt beamer} package. - -\writestatus{loading}{module blackblue} - -\startmodule[blackblue] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=3.2cm, - footer=.5cm, - topspace=.6cm, - backspace=1cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm, - y=12mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[corner=round,background=color,backgroundcolor=a,frame=off,width=\textwidth,height=2.1cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[b]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\framed[corner=round,background=color,backgroundcolor=a,frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[b]{\getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\color[b]{\getvariable{taspresent}{author}\blank[2*line]\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [b] [s=.9] -\definecolor [c] [s=0] -\definecolor [a] [r=.2, g=.2, b=.72] -\definecolor [Item] [r=.2, g=.2, b=.75] - -%D We let Metapost calculate the background: - -\startuseMPgraphic{slide} -StartPage ; -path p[] ; -numeric a; a=.5cm ; -fill Page withcolor \MPcolor{b} ; -path Main ; -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{a} ; -fill p[2] withcolor \MPcolor{c} ; -fill p[3] withcolor \MPcolor{c} ; -fill p[4] withcolor \MPcolor{a} ; -draw \sometxt{\framed[frame=off,offset=0pt,width=.5\textwidth,height=.5cm,align=left,top=\vss,bottom=\vss,strut=no]{\ix\color[b]{\currentdate \quad}}} shifted (1cm,y1) ; -draw \sometxt{\framed[frame=off,offset=0pt,width=.5\textwidth,height=.5cm,align=right,top=\vss,bottom=\vss,strut=no]{\ix\color[b]{\quad \folio\ of \lastpage}}} shifted (x5,y1) ; -draw \sometxt{\framed[frame=off,offset=0pt,width=.5\textwidth,height=.5cm,align=left,top=\vss,bottom=\vss,strut=no]{\ix\color[b]{\getvariable{taspresent}{author}\quad}}} shifted (1cm,0) ; -draw \sometxt{\framed[frame=off,offset=0pt,width=.5\textwidth,height=.5cm,align=right,top=\vss,bottom=\vss,strut=no]{\ix\color[b]{\quad \getvariable{taspresent}{title}}}} shifted (x5,0) ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{slide}] - -\defineoverlay -[picbackground] -[\useMPgraphic{slide}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=3.2cm]\setupbackgrounds[page][background={lecbackground,bottom,slidetitle}]} -\define\titback{\setuplayout[header=.5cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=.5cm]\setupbackgrounds[page][background={lecbackground,bottom}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=a] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-bluegray.tex b/Master/texmf-dist/tex/context/third/taspresent/t-bluegray.tex deleted file mode 100644 index e83b3e6f0e6..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-bluegray.tex +++ /dev/null @@ -1,271 +0,0 @@ -%D \module -%D [ file=t-bluegray, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module bluegray, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{bluegray} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module bluegray} - -\startmodule[bluegray] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D The bluegray module has parameters of its own; we set them up and use -%D them: - -\setupmodule[color=blue] - -\processaction[\currentmoduleparameter{color}] - [ blue=>\def\colormode{bluemode}, - red=>\def\colormode{redmode}, - \v!unknown=>\def\colormode{bluemode}, - \v!default=>\def\colormode{bluemode}] - -\enablemode[\colormode] - -%D We define our colors: - -\startmode[bluemode] -\definecolor [outer] [r=0.8,g=0.8,b=0.9] -\definecolor [inner] [s=.88] -\definecolor [One] [r=.67, g=0, b=.04] -\definecolor [tcolor] [s=0] -\stopmode - -\startmode[redmode] -\definecolor [outer] [r=0.45,] -\definecolor [inner] [s=.18] -\definecolor [One] [r=.67, g=0, b=.04] -\definecolor [tcolor] [s=1] -\stopmode - -%D We start colors: - -\setupcolors[state=start,textcolor=tcolor] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=2cm, - height=fit, - leftmargindistance=.8cm, - rightmargindistance=0cm, - header=18mm, - footer=0cm, - topspace=.8cm, - backspace=2cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=20mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,height=2.5cm,width=\textwidth,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]#1}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\getvariable{taspresent}{title}} -\blank[2*line] -\midaligned{\getvariable{taspresent}{author}} -\blank[3*line] -\midaligned{\currentdate} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D This is the font we will use to draw the numbers on the slides - -\beginOLDTEX -\definefontsynonym [BigN] [uhvb8r] -\definefont[NumberFont] [BigN at 30pt] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{textslide} -StartPage ; -fill Page withcolor \MPcolor{outer} ; -fill Field[Text][Text] enlarged.2cm withcolor \MPcolor{inner} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{vertpic} -StartPage ; -fill Page withcolor \MPcolor{outer} ; -path Main ; -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) ; -Main := z1 -- z2 -- z4 -- z3 --cycle ; -fill Main withcolor \MPcolor{inner} ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{Bottomone} -StartPage -picture Left, Right ; -%defaultfont := "texnansi-myros-MyriadProBold" ; -%defaultfont := "texnansi-lmssbx10" ; -%Left := Right := thelabel("\folio",origin) ysized 5cm ; -if PageNumber < 10: - Left := \sometxt{\framed[width=1cm,offset=0pt,align=middle,frame=off]{\color[outer]{\NumberFont \folio}}} ysized 6cm; - Right := \sometxt{\framed[width=1cm,offset=0pt,align=middle,frame=off]{\color[inner]{\NumberFont \folio}}} ysized 6cm; - clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/2,0) ; - draw Left shifted (16.34cm,-.3cm) ; - draw Right shifted (16.34cm,-.3cm) ; -fi; -StopPage -\stopuseMPgraphic - - -\startuseMPgraphic{Bottomten} -StartPage -picture Left, Right ; -%defaultfont := "texnansi-myros-MyriadProBold" ; -%defaultfont := "texnansi-lmssbx10" ; -%Left := Right := thelabel("\folio",origin) ysized 5cm ; -if PageNumber >= 10: - Left := \sometxt{\framed[width=1.7cm,offset=0pt,align=middle,frame=off]{\color[outer]{\NumberFont \folio}}} ysized 6cm ; - Right := \sometxt{\framed[width=1.7cm,offset=0pt,align=middle,frame=off]{\color[inner]{\NumberFont \folio}}} ysized 6cm ; - clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/1.5,0) ; - draw Left shifted (12.61cm,-.3cm) withcolor \MPcolor{outer} ; - draw Right shifted (12.61cm,-.3cm) withcolor \MPcolor{inner} ; -fi ; -StopPage -\stopuseMPgraphic -\endOLDTEX - -\beginLUATEX -\definefontfeature[intended][script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes,mode=node] -\font\NumberFont=name:texgyreheros-bold*intended at 30pt - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{textslide} -StartPage ; -fill Page withcolor \MPcolor{outer} ; -fill Field[Text][Text] enlarged.2cm withcolor \MPcolor{inner} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{vertpic} -StartPage ; -fill Page withcolor \MPcolor{outer} ; -path Main ; -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) ; -Main := z1 -- z2 -- z4 -- z3 --cycle ; -fill Main withcolor \MPcolor{inner} ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{Bottomone} -StartPage -picture Left, Right ; -%defaultfont := "texnansi-myros-MyriadProBold" ; -%defaultfont := "texnansi-lmssbx10" ; -%Left := Right := thelabel("\folio",origin) ysized 5cm ; -if PageNumber < 10: - Left := \sometxt{\framed[width=1cm,offset=0pt,align=middle,frame=off]{\color[outer]{\NumberFont \folio}}} ysized 6cm; - Right := \sometxt{\framed[width=1cm,offset=0pt,align=middle,frame=off]{\color[inner]{\NumberFont \folio}}} ysized 6cm; - clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/2,0) ; - draw Left shifted (16.34cm,-.3cm) ; - draw Right shifted (16.34cm,-.3cm) ; -fi; -StopPage -\stopuseMPgraphic - - -\startuseMPgraphic{Bottomten} -StartPage -picture Left, Right ; -%defaultfont := "texnansi-myros-MyriadProBold" ; -%defaultfont := "texnansi-lmssbx10" ; -%Left := Right := thelabel("\folio",origin) ysized 5cm ; -if PageNumber >= 10: - Left := \sometxt{\framed[width=1.7cm,offset=0pt,align=middle,frame=off]{\color[outer]{\NumberFont \folio}}} ysized 6cm ; - Right := \sometxt{\framed[width=1.7cm,offset=0pt,align=middle,frame=off]{\color[inner]{\NumberFont \folio}}} ysized 6cm ; - clip Right to boundingbox Right xyscaled(0,3cm) shifted (bbwidth(Right)/1.5,0) ; - draw Left shifted (12.61cm,-.3cm) withcolor \MPcolor{outer} ; - draw Right shifted (12.61cm,-.3cm) withcolor \MPcolor{inner} ; -fi ; -StopPage -\stopuseMPgraphic -\endLUATEX - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{textslide}] - -\defineoverlay -[picbackground] -[\useMPgraphic{vertpic}] - -\defineoverlay -[bottomone] -[\useMPgraphic{Bottomone}] - -\defineoverlay -[bottomten] -[\useMPgraphic{Bottomten}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=18mm]\setupbackgrounds[page][background={lecbackground,bottomone,bottomten,slidetitle}]} -\define\titback{\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=0mm]\setupbackgrounds[page][background={picbackground,bottomone,bottom,bottomten,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for 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/taspresent/t-bluestripe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-bluestripe.tex deleted file mode 100644 index ef61796d381..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-bluestripe.tex +++ /dev/null @@ -1,160 +0,0 @@ -%D \module -%D [ file=t-bluestripe, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module bluestripe, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{bluestripe} 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{loading}{module bluestripe} - -\startmodule[bluestripe] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors; textcolor is white: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\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 The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=29mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,height=2.5cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[a]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[b]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[b]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[b]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [Item] [s=.9] -\definecolor [a] [s=.9] -\definecolor [c] [r=.15,g=.15,b=.525] -\definecolor [b] [r=.2,g=.2,b=.7] -\definecolor [d] [s=.4] - -%D We let Metapost calculate the background: - -\startuseMPgraphic{stripe} -StartPage ; -numeric a, dur, now, before, proa, prob ; -pair k[], F[] ; -a = 2.5cm ; -dur = 1.5cm ; -k[1] = ulcorner Page shifted (a,0) ; -k[2] = llcorner Page shifted (a,0) ; -k[3] = ulcorner Page shifted (0,-a) ; -k[4] = urcorner Page shifted (0,-a) ; -k[5] = ulcorner Page shifted (a,-a) ; -path p[] ; -p[1] = ulcorner Page -- k[1] -- k[2] -- llcorner Page -- cycle ; -p[2] = ulcorner Page -- urcorner Page -- k[4] -- k[3] -- cycle ; -p[3] = ulcorner Page -- k[1] -- k[5] -- k[3] -- cycle ; -fill Page withcolor \MPcolor{a} ; -fill p[1] withcolor \MPcolor{b} ; -fill p[2] withcolor \MPcolor{b} ; -fill p[3] withcolor \MPcolor{c} ; -pickup pencircle scaled 5pt ; -if \realfolio > 1: - before = PageNumber - 1 ; - now = NOfPages - 1 ; - prob = before/now ; - p[4] = unitcircle scaled dur rotated 90 shifted (dur + ((a-dur)/2),(a-dur)/2) ; - fill p[4] withcolor \MPcolor{a} ; - F[0] = center p[4] ; - F[1] = point 1 along p[4] ; - F[2] = point -prob along p[4] ; - F[3] = point -prob/2 along p[4] ; - p[5] = F[0] -- F[1] .. F[3] .. F[2] -- cycle ; - fill p[5] withcolor \MPcolor{d} ; -fi ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{stripe}] - -%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 These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItTriangle}] -\setupitemize[1][inmargin][color=a] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-darkshade.tex b/Master/texmf-dist/tex/context/third/taspresent/t-darkshade.tex deleted file mode 100644 index e85473a0688..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-darkshade.tex +++ /dev/null @@ -1,165 +0,0 @@ -%D \module -%D [ file=t-darkshade, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module darkshade, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{darkshade} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module darkshade} - -\startmodule[darkshade] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors; textcolor is white: - -\setupcolors[state=start,textcolor=white] - -%D The darkshade module has parameters of its own; we set them up and use -%D them: - -\setupmodule[color=blue] - -\processaction[\currentmoduleparameter{color}] - [ blue=>\def\colormode{bluemode}, - green=>\def\colormode{greenmode}, - bluered=>\def\colormode{blueredmode}, - \v!unknown=>\def\colormode{bluemode}, - \v!default=>\def\colormode{bluemode}] - -\enablemode[\colormode] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.83\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.83\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%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 The macro for typesetting the Slidetitle: - -\define[1]\Slidetitle{\page\midaligned{\switchtobodyfont[\Titlesize]#1}\blank[0.75cm]} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\getvariable{taspresent}{title}} -\blank[2*line] -\midaligned{\getvariable{taspresent}{author}} -\blank[3*line] -\midaligned{\currentdate} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\startmode[blueredmode] -\definecolor [InteractionColor] [b=.2] -\definecolor [ContrastColor] [b=.8] -\definecolor [One] [s=.6] -\definecolor [Item] [s=1] -\definecolor [a] [r=0.5,g=0,b=0] -\definecolor [b] [r=0,g=0,b=0.5] -\stopmode - - -\startmode[bluemode] -\definecolor [InteractionColor] [b=.2] -\definecolor [ContrastColor] [b=.8] -\definecolor [One] [s=.6] -\definecolor [Item] [s=1] -\definecolor [a] [r=0,g=0,b=1] -\definecolor [b] [r=0,g=0,b=0.05] -\stopmode - -\startmode[greenmode] -\definecolor [InteractionColor] [s=.2] -\definecolor [ContrastColor] [s=.5] -\definecolor [One] [s=.6] -\definecolor [Item] [s=1] -\definecolor [a] [r=0,g=.8,b=0] -\definecolor [b] [r=0,g=0.05,b=0] -\stopmode - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{LinearShade} -path p ; -p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; -linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{LinearShade}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background=lecbackground]\setupinteractionbar[state=start]} -\define\titback{\setupbackgrounds[page][background=lecbackground]\setupinteractionbar[state=stop]} -\define\picback{\setupbackgrounds[page][background=lecbackground]\setupinteractionbar[state=start]} -\define\noback{\setupbackgrounds[page][background=lecbackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] - -%D The \quotation{darkshade} style uses \CONTEXT's interactionbar: - -\setupsubpagenumber[way=bytext,state=start] - -\setupinteraction - [page=yes, - color=InteractionColor, - contrastcolor=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/taspresent/t-doubleframe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-doubleframe.tex deleted file mode 100644 index 9dc579d0a6e..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-doubleframe.tex +++ /dev/null @@ -1,278 +0,0 @@ -%D \module -%D [ file=t-doubleframe, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module doubleframe, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{doubleframe} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module doubleframe} - -\startmodule[doubleframe] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D The doubleframe module has parameters of its own; we set them up and use -%D them: - -\setupmodule[bottom=square] - -\processaction[\currentmoduleparameter{bottom}] - [ square=>\def\bottommode{squaremode}, - stripe=>\def\bottommode{stripemode}, - \v!unknown=>\def\bottommode{squaremode}, - \v!default=>\def\bottommode{squaremode}] - -\enablemode[\bottommode] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.98\textheight} -\define\NormalWidth{.485\textwidth} -\define\PictureFrameHeight{.98\textheight} -\define\PictureFrameWidth{.485\textwidth} - -%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] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm, - y=3mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.1cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[One]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -%\switchtobodyfont[\Titlesize] -\null -\vfill -\midaligned{\color[One]{\tfc\getvariable{taspresent}{title}}} -\blank[3*line] -\midaligned{\tfa\getvariable{taspresent}{author}} -\blank[2*line] -\midaligned{\tfa\currentdate} -\vfill -\null\switchtobodyfont[\Normalsize]} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [BackgroundColor] [r=.85, g=.85, b=.85] -\definecolor [MyFrameColor] [r=.42, g=.42, b=.7] -\definecolor [Dark] [r=.9, g=.9, b=.9] -\definecolor [One] [r=0, g=0, b=.5] -\definecolor [Two] [r=0, g=0, b=.55] -\definecolor [Three] [r=0, g=0, b=.6] -\definecolor [Four] [r=0, g=0, b=.65] -\definecolor [Five] [r=0, g=0, b=.7] -\definecolor [Six] [r=0, g=0, b=.75] -\definecolor [Seven] [r=0, g=0, b=.8] -\definecolor [Eight] [r=0, g=0, b=.85] -\definecolor [Nine] [r=0, g=0, b=.9] -\definecolor [Ten] [r=0, g=0, b=.95] -\definecolor [Eleven] [r=0, g=0, b=1] -\definecolor [Item] [One] - -%D We let Metapost calculate the background: - -\startmode[squaremode] -\startuseMPgraphic{Bottom09} -StartPage -numeric a; a = 0.955cm ; -numeric b; b = 0.52cm ; -numeric c; c = 0.8cm ; -path p[] ; -p[2] = unitsquare xyscaled (a,a) shifted (b, c) ; -p[3] = unitsquare xyscaled (a,a) shifted (b+2*a, c) ; -p[4] = unitsquare xyscaled (a,a) shifted (b+4*a, c) ; -p[5] = unitsquare xyscaled (a,a) shifted (b+6*a, c) ; -p[6] = unitsquare xyscaled (a,a) shifted (b+8*a, c) ; -p[7] = unitsquare xyscaled (a,a) shifted (b+10*a, c) ; -p[8] = unitsquare xyscaled (a,a) shifted (b+12*a, c) ; -p[9] = unitsquare xyscaled (a,a) shifted (b+14*a, c) ; -p[10] = unitsquare xyscaled (a,a) shifted (b+16*a, c) ; -p[11] = unitsquare xyscaled (a,a) shifted (b+18*a, c) ; -p[12] = unitsquare xyscaled (a,a) shifted (b+20*a, c) ; -fill p[2] withcolor \MPcolor{One} ; -fill p[3] withcolor \MPcolor{Two} ; -fill p[4] withcolor \MPcolor{Three} ; -fill p[5] withcolor \MPcolor{Four} ; -fill p[6] withcolor \MPcolor{Five} ; -fill p[7] withcolor \MPcolor{Six} ; -fill p[8] withcolor \MPcolor{Seven} ; -fill p[9] withcolor \MPcolor{Eight} ; -fill p[10] withcolor \MPcolor{Nine} ; -fill p[11] withcolor \MPcolor{Ten} ; -fill p[12] withcolor \MPcolor{Eleven} ; -pickup pencircle scaled 2pt ; -if NOfPages = 12: - for j=2 upto 12: - if PageNumber=(j): - draw llcorner p[j] --urcorner p[j] withcolor \MPcolor{BackgroundColor} ; - fi ; - endfor ; -fi ; -numeric o; o = NOfPages - 1 ; -numeric i; i = PageNumber - 1 ; -numeric k; k = i/o ; -if NOfPages > 12: - if i = 1: - draw llcorner p[2] -- urcorner p[2] withcolor \MPcolor{BackgroundColor} ; - elseif (k>0.01) and (k<=2/11): - draw llcorner p[3] -- urcorner p[3] withcolor \MPcolor{BackgroundColor} ; - elseif (k>2/11) and (k<=3/11): - draw llcorner p[4] -- urcorner p[4] withcolor \MPcolor{BackgroundColor} ; - elseif (k>3/11) and (k<=4/11): - draw llcorner p[5] -- urcorner p[5] withcolor \MPcolor{BackgroundColor} ; - elseif (k>4/11) and (k<=5/11): - draw llcorner p[6] -- urcorner p[6] withcolor \MPcolor{BackgroundColor} ; - elseif (k>5/111) and (k<6/11): - draw llcorner p[7] -- urcorner p[7] withcolor \MPcolor{BackgroundColor} ; - elseif (k>6/11) and (k<=7/11): - draw llcorner p[8] -- urcorner p[8] withcolor \MPcolor{BackgroundColor} ; - elseif (k>7/11) and (k<=8/11): - draw llcorner p[9] -- urcorner p[9] withcolor \MPcolor{BackgroundColor} ; - elseif (k>8/11) and (k<=9/11): - draw llcorner p[10] -- urcorner p[10] withcolor \MPcolor{BackgroundColor} ; - elseif (k>9/11) and (k<1): - draw llcorner p[11] -- urcorner p[11] withcolor \MPcolor{BackgroundColor} ; - elseif k=1: - draw llcorner p[12] -- urcorner p[12] withcolor \MPcolor{BackgroundColor} ; - fi ; -fi -StopPage -\stopuseMPgraphic -\stopmode - -\startmode[stripemode] -\startuseMPgraphic{Bottom09} -StartPage -path p[] ; -p[1] := unitsquare xyscaled(0.95*OverlayWidth,1cm) shifted (0.52cm,0.8cm) ; -linear_shade(p[1],0,\MPcolor{BackgroundColor},\MPcolor{One}) ; -numeric i; i = PageNumber/NOfPages ; -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] = ulcorner p[1] -- o[1] -- o[2] -- llcorner p[1] -- cycle ; -clip currentpicture to p[4] ; -StopPage -\stopuseMPgraphic -\stopmode - -\startuniqueMPgraphic{PicBackground09} -StartPage ; -fill Page withcolor \MPcolor{BackgroundColor} ; -draw unitsquare -xyscaled(OverlayWidth,OverlayHeight) -enlarged (-.2cm) -withpen pencircle scaled 4pt -withcolor \MPcolor{MyFrameColor} ; -draw unitsquare -xyscaled(0.448*OverlayWidth,0.815*OverlayHeight) -shifted (0.528*OverlayWidth, 0.15*OverlayHeight) -withpen pencircle scaled 2pt -withcolor \MPcolor{MyFrameColor} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{Background09} -fill unitsquare -xyscaled(OverlayWidth,OverlayHeight) -withcolor \MPcolor{BackgroundColor} ; -draw unitsquare -xyscaled(OverlayWidth,OverlayHeight) -enlarged (-.2cm) -withpen pencircle scaled 4pt -withcolor \MPcolor{MyFrameColor} ; -draw unitsquare -xyscaled(0.95*OverlayWidth,0.7*OverlayHeight) -shifted (0.025*OverlayWidth, 0.15*OverlayHeight) -withpen pencircle scaled 2pt -withcolor \MPcolor{MyFrameColor} ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{FancyFrame} -draw unitsquare xyscaled(OverlayWidth-2pt,OverlayHeight-2pt) -withpen pencircle scaled 2pt -withcolor \MPcolor{MyFrameColor} ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[bottom] -[\useMPgraphic{Bottom09}] - -\defineoverlay -[lecbackground] -[\useMPgraphic{Background09}] - -\defineoverlay -[picbackground] -[\useMPgraphic{PicBackground09}] - -\defineoverlay -[FrameFrame] -[\uniqueMPgraphic{FancyFrame}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background={lecbackground,bottom,slidetitle}]\setuplayout[backspace=1cm,header=2.1cm]} -\define\titback{\setupbackgrounds[page][background=lecbackground]\setuplayout[backspace=1cm]} -\define\picback{\setupbackgrounds[page][background={picbackground,bottom}]\setuplayout[backspace=0.5cm,header=0cm]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[color=One] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-doubleshade.tex b/Master/texmf-dist/tex/context/third/taspresent/t-doubleshade.tex deleted file mode 100644 index 858540e9efa..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-doubleshade.tex +++ /dev/null @@ -1,130 +0,0 @@ -%D \module -%D [ file=t-doubleshade, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module doubleshade, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{doubleshade} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module doubleshade} - -\startmodule[doubleshade] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors; textcolor is white: - -\setupcolors[state=start,textcolor=white] - -%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 The page layout: - -\setuplayout [width=fit, - leftmargin=1.5cm, - rightmargin=0cm, - leftmargindistance=.7cm, - rightmargindistance=0pt, - height=fit, - header=0pt, - footer=5pt, - topspace=.8cm, - backspace=3.5cm, - cutspace=2.7cm, - bottomspace=0cm, - bottom=0pt, - location=singlesided] - -%D The macro for typesetting the Slidetitle: - -\define[1]\Slidetitle{\page\framed[frame=off,offset=0pt,height=1.1cm,width=\textwidth,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{#1}}\blank[0.5cm]} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[c]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[c]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[c]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [Item] [r=1,g=1,b=1] -\definecolor [a] [r=0,g=0,b=1] -\definecolor [c] [r=.63,g=.8,b=1] -\definecolor [b] [r=0,g=0,b=0.05] - -%D We let Metapost calculate the background: - -\startuseMPgraphic{LinearShade} -StartPage ; -path p[] ; -p[1] := ulcorner Page -- llcorner Page -- llcorner Page shifted (4cm,0) -- ulcorner Page shifted (4cm,0) -- cycle ; -circular_shade(p[1],0,\MPcolor{a},\MPcolor{b}) ; -numeric a; a = 2*NOfPages-1 ; -numeric c; c = PaperHeight/a ; -for i = 1 step 2 until a: - p[i] := unitsquare xyscaled (0.5cm,0.5cm) ; - fill p[i] shifted (0.75cm,c*i) withcolor \MPcolor{a} ; - if i=(2*PageNumber-3): - fill p[i] shifted (0.75cm,c*i) withcolor \MPcolor{c} ; - fi ; -endfor ; -p[3] := ulcorner Field[Text][Text] -- urcorner Page -- lrcorner Page -- llcorner Field[Text][Text] -- cycle ; -p[3] := p[3] enlarged (.4cm,.4cm) ; -linear_shade(p[3],6,\MPcolor{a},\MPcolor{b}) ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{LinearShade}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background=lecbackground]} -\define\titback{\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setupbackgrounds[page][background=lecbackground]} -\define\noback{\setupbackgrounds[page][background=lecbackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-embossed.tex b/Master/texmf-dist/tex/context/third/taspresent/t-embossed.tex deleted file mode 100644 index efeb9aab5ea..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-embossed.tex +++ /dev/null @@ -1,154 +0,0 @@ -%D \module -%D [ file=t-embossed, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module embossed, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 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{loading}{module embossed} - -\startmodule[embossed] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%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 The page layout: - -\setuplayout [width=fit, - margin=1.3cm, - height=fit, - header=1cm, - footer=1cm, - topspace=10mm, - backspace=2cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=20mm, - y=2mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,height=2cm,width=\textwidth,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[e]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[e]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\getvariable{taspresent}{author}} -\blank[3*line] -\midaligned{\currentdate} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [a] [r=1,g=1,b=.8] -\definecolor [Item] [r=.2,b=.2,b=.5] -\definecolor [b] [r=.6,g=.2,b=.2] -\definecolor [c] [r=.7,g=.2,b=.2] -\definecolor [d] [r=.4,g=.2,b=.2] -\definecolor [e] [r=.2,g=.2,b=.5] -\definecolor [f] [s=.4] - -\beginOLDTEX -\definefontsynonym [BigBoss] [uhvb8r] -\definefont[Emblem] [BigBoss at 30pt] -\endOLDTEX - -\beginLUATEX -\definefontsynonym [BigBoss] [name:TeXGyreHeros-Bold] -\definefont[Emblem] [BigBoss at 30pt] -\endLUATEX - -%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: - -\startuseMPgraphic{redyellow} -StartPage ; -picture boss ; -picture bboss ; -pair zf[] ; -fill Page withcolor \MPcolor{a} ; -path gr[] ; -numeric a; a = 2cm ; -numeric b; b = 0.9cm ; -z.f1 = llcorner Page shifted (0,a) ; -z.f2 = lrcorner Page shifted (0,a) ; -gr[1] = llcorner Page -- z.f1 -- z.f2 -- lrcorner Page -- cycle ; -fill gr[1] withcolor \MPcolor{b} ; -pickup pencircle scaled 6pt ; -gr[2] = ulcorner Page -- urcorner Page -- lrcorner Page -- llcorner Page -- cycle ; -gr[2] := gr[2] enlarged -2.8.pt ; -draw gr[2] withcolor \MPcolor{f} ; -draw z.f1 -- z.f2 withcolor \MPcolor{f} ; -boss := \sometxt{\framed[width=\textwidth,height=2cm,offset=0pt,align=right,top=\vss,bottom=\vss,frame=off]{\Emblem \color[c]{Made with \CONTEXT\hfill \pagenumber\ of \lastpage}}} ; -bboss := \sometxt{\framed[width=\textwidth,height=2cm,offset=0pt,align=right,top=\vss,bottom=\vss,frame=off]{\strut\Emblem \color[d]{Made with \CONTEXT\hfill \pagenumber\ of \lastpage}}} ; -draw bboss shifted (1.96cm,0.04cm) ; -draw boss shifted (2cm,0) ; -StopPage ; -\stopuseMPgraphic - - -%D We define these backgrounds as overlays: - -\defineoverlay[yellowbg] -[\useMPgraphic{redyellow}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=10mm]\setupbackgrounds[page][background={yellowbg,slidetitle}]} -\define\titback{\setuplayout[header=0mm]\setupbackgrounds[page][background={yellowbg}]} -\define\picback{\setuplayout[header=0mm]\setupbackgrounds[page][background={yellowbg}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin][color=e] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-graybeams.tex b/Master/texmf-dist/tex/context/third/taspresent/t-graybeams.tex deleted file mode 100644 index 1388cc93354..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-graybeams.tex +++ /dev/null @@ -1,172 +0,0 @@ -%D \module -%D [ file=t-graybeams, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module graybeams, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{graybeams} 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\ {\tt beamer} package. - -\writestatus{loading}{module graybeams} - -\startmodule[graybeams] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.97\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.97\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=14.7cm, - header=1.75cm, - footer=1.5cm, - topspace=1cm, - backspace=1cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.25cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\framed[frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{\getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\color[c]{\getvariable{taspresent}{author}\blank[2*line]\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [a] [s=.97] -\definecolor [b] [s=.88] -\definecolor [c] [r=.75] -\definecolor [Item] [r=.75] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{beams} -StartPage ; -pair zd[] ; -path pb[] ; -numeric a; a=2.1cm ; -numeric b; b=1.5cm ; -fill Page withcolor \MPcolor{a} ; -z.d1 = llcorner Page shifted (0,2*a) ; -z.d2 = z.d1 shifted (0,2*a) ; -z.d3 = lrcorner Page shifted (0,b) ; -z.d4 = z.d3 shifted (0,b) ; -z.d5 = z.d2 shifted (0,b) ; -z.d6 = ulcorner Page shifted (.1cm,0) ; -z.d7 = z.d4 shifted (0,b/2) ; -z.d8 = z.d7 shifted (0,b) ; -z.d9 = ulcorner Page shifted (.1cm+a,0) ; -z.d10 = z.d9 shifted (3*a,0) ; -z.d11 = z.d8 shifted (0,b/2) ; -z.d12 = z.d11 shifted (0,b) ; -z.d13 = z.d10 shifted (a,0) ; -z.d14 = z.d13 shifted (3*a,0) ; -z.d15 = z.d12 shifted (0,b/2) ; -z.d16 = z.d15 shifted (0,b) ; -z.d17 = llcorner Page shifted (0,b) ; -pb[1] = z.d1 -- z.d2 -- z.d4 -- z.d3 -- cycle ; -fill pb[1] withcolor \MPcolor{b} ; -pb[2] = z.d5 -- ulcorner Page -- z.d6 -- z.d8 -- z.d7 -- cycle ; -fill pb[2] withcolor \MPcolor{b} ; -pb[3] = z.d9 -- z.d10 -- z.d12 -- z.d11 -- cycle ; -fill pb[3] withcolor \MPcolor{b} ; -pb[4] = z.d13 -- z.d14 -- z.d16 -- z.d15 -- cycle ; -fill pb[4] withcolor \MPcolor{b} ; -pb[5] = llcorner Page -- z.d17 -- z.d3 -- lrcorner Page -- cycle ; -fill pb[5] withcolor \MPcolor{c} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{redstripes} -StartPage ; -path pb[] ; -numeric b; b=1.5cm ; -z.d18 = ulcorner Page shifted (0,-1.5*b) ; -z.d19 = z.d18 shifted (0,-1pt) ; -z.d20 = urcorner Page shifted (0,-1.5*b) ; -z.d21 = z.d20 shifted (0,-1pt) ; -pb[6] = z.d18 -- z.d19 -- z.d21 -- z.d20 -- cycle ; -linear_shade(pb[6],0,\MPcolor{c},\MPcolor{a}) ; -pb[7] = pb[6] shifted (0,-3pt) ; -linear_shade(pb[7],0,\MPcolor{c},\MPcolor{a}) ; -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{redstripes}] - -\defineoverlay -[picbackground] -[\useMPgraphic{beams}] - -%D We define the footer - -\setupfooter[color=a,style={\switchtobodyfont[10pt]},strut=yes] -\setupfootertexts[{\framed[frame=off,height=1cm,width=\textwidth]{\getvariable{taspresent}{title}\hfill \pagenumber\ of \lastpage}}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=1.75cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=1.75cm]\setupfooter[state=stop]\setupbackgrounds[page][background={picbackground,lecbackground}]} -\define\picback{\setuplayout[header=0cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=c] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-graysquare.tex b/Master/texmf-dist/tex/context/third/taspresent/t-graysquare.tex deleted file mode 100644 index e02fd0a1af0..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-graysquare.tex +++ /dev/null @@ -1,145 +0,0 @@ -%D \module -%D [ file=t-graysquare, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module graysquare, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{graysquare} 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{loading}{module graysquare} - -\startmodule[graysquare] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We define our colors: - -\definecolor [a] [r=.95,g=.95,b=.95] -\definecolor [b] [r=.7,g=.1,b=.3] -\definecolor [c] [s=.3] -\definecolor [Item] [r=.7,g=.1,b=.3] - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.5\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.5\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - height=middle, - margin=0cm, - height=fit, - margindistance=0cm, - header=0cm, - footer=0cm, - topspace=2cm, - backspace=1.5cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=15mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[framecolor=red,frame=off,width=\textwidth,height=3cm,offset=0pt,top=\vss,bottom=\vss,align=left]{\switchtobodyfont[\Titlesize]\color[b]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[b]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[b]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[b]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We let Metapost calculate the background: - -\startuseMPgraphic{bottom} -StartPage ; -fill Page withcolor \MPcolor{a} ; -z.b1 = llcorner Field[Text][Text] ; -z.b2 = lrcorner Field[Text][Text] ; -path wdt ; -wdt = z.b1 -- z.b2 ; -numeric diff; diff = .3cm ; -numeric arc; arc = arclength (wdt) - diff ; -numeric pages; pages = NOfPages - 1 ; -numeric factor; factor = arc/pages ; -path m[] ; -m[0] = unitsquare xyscaled (diff,diff) shifted (x.b1,0.85cm) ; -fill m[0] withcolor \MPcolor{c} ; -if PageNumber = 1: - fill m[0] xyscaled (0,2) shifted (0,-diff-.85cm) withcolor \MPcolor{b} ; -fi ; -for i = 1 upto pages: - m[i] = m[0] shifted (i*factor,0) ; - fill m[i] withcolor \MPcolor{c} ; - if i+1 = PageNumber: -% fill m[i] withcolor \MPcolor{b} ; - fill m[i] xyscaled (0,2) shifted (0,-diff-.85cm) withcolor \MPcolor{b} ; - fi ; -endfor ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{bottom}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=1cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=0cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=0cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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=0cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=b] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-greenblue.tex b/Master/texmf-dist/tex/context/third/taspresent/t-greenblue.tex deleted file mode 100644 index 311fe74d711..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-greenblue.tex +++ /dev/null @@ -1,209 +0,0 @@ -%D \module -%D [ file=t-greenblue, -%D version=2007.07.25, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module greenblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{greenblue} 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{loading}{module greenblue} - -\startmodule[greenblue] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We define our colors: - -\definecolor [Item] [r=.09,g=.2,b=.41] -\definecolor [a] [s=.95] -\definecolor [b] [r=.58,g=.81,b=.58] -\definecolor [c] [r=.09,g=.2,b=.41] -\definecolor [d] [r=.04,g=.4,b=.4] - -%D We start colors; textcolor is white: - -\setupcolors[state=start,textcolor=c] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%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] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=25mm, - y=25mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2cm,offset=0pt,align=right,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[d]{\bf #1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\definelayer[prestitle] - [width=\paperwidth, - height=\paperheight, - y=30mm] - -\definelayer[presauthor] - [width=.5\paperwidth, - height=.5\paperheight, - x=104mm, - y=118mm] - -\define\Maketitle{% -\titback\null -\setlayer[prestitle]% -{\framed[frame=off,width=\paperwidth,height=4cm,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{\bf \getvariable{taspresent}{title}}}} -\setlayer[presauthor]% -{\framed[frame=off,width=.5\paperwidth,height=4cm,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Normalsize]\color[c]{\getvariable{taspresent}{author}}}}} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We let Metapost calculate the background: - -\startuseMPgraphic{greenframe} -StartPage ; -fill Page withcolor \MPcolor{a} ; -numeric a ; a = 2cm ; -numeric b ; b = 0.7cm ; -numeric c ; c = 6cm ; -numeric d ; d = .7cm ; -pair zc[] ; -zc1 = llcorner Page shifted (a,0) ; -zc2 = ulcorner Page shifted (a,-a-b) ; -zc3 = ulcorner Page shifted (a+b/4,-a-b/4) ; -zc4 = ulcorner Page shifted (a+b,-a) ; -zc5 = urcorner Page shifted (0,-a) ; -zc6 = ulcorner Page shifted (c,0) ; -zc7 = ulcorner Page shifted (c,-a) ; -path pa[] ; -pa[1] = llcorner Page -- zc1 -- zc2 .. zc3 .. zc4 -- zc7 -- zc6 -- ulcorner Page -- cycle ; -fill pa[1] withcolor \MPcolor{b} ; -draw \sometxt{\framed[frame=off,width=2cm,height=2cm]{\color[a]{\pagenumber}}} ; -StopPage ; -\stopuseMPgraphic - -\startuniqueMPgraphic{bluebeam} -StartPage ; -numeric a ; a = 2cm ; -numeric b ; b = 0.7cm ; -numeric c ; c = 6cm ; -numeric d ; d = .7cm ; -pair zc[] ; -zc8 = ulcorner Page shifted (a/2,-2.2*a) ; -zc9 = zc8 shifted (0,-d) ; -zc10 = urcorner Page shifted (-a,-2.2*a-d) ; -zc11 = zc10 shifted (0,d) ; -zc12 = zc8 shifted (-d/2,-d/2) ; -path pa[] ; -pa[3] = zc8 .. zc12 .. zc9 -- zc10 -- zc11 -- cycle ; -fill pa[3] withcolor \MPcolor{c} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{Titlebg} -StartPage ; -numeric a ; a = 4cm ; -numeric b ; b = 3cm ; -numeric c ; c = 8cm ; -numeric d ; d = .7cm ; -path pa[] ; -pair zc [] ; -fill Page withcolor \MPcolor{a} ; -pa[1] = ulcorner Page -- ulcorner Page shifted (PaperWidth/2,0) -- llcorner Page shifted (PaperWidth/2,0) -- llcorner Page -- cycle ; -fill pa[1] withcolor \MPcolor{b} ; -zc1 = ulcorner Page shifted (PaperWidth/2,-b) ; -zc2 = zc1 shifted (-c,0) ; -zc3 = zc2 shifted (0,-a) ; -zc4 = zc3 shifted (c,0) ; -zc5 = zc2 shifted (-1.5cm,-a/2) ; -pa[2] = zc1 -- zc2 .. zc5 .. zc3 -- zc4 -- cycle ; -fill pa[2] withcolor \MPcolor{a} ; -zc6 = llcorner Page shifted (PaperWidth/2,0) ; -zc7 = 1/2[zc6,zc4] ; -zc8 = zc7 shifted (-.75*b,d/2) ; -zc9 = zc8 shifted (0,-d) ; -zc10 = zc9 shifted (1.3*c,0) ; -zc11 = zc10 shifted (0,d) ; -zc12 = zc10 shifted (d/2,d/2) ; -pa[3] = zc8 -- zc9 -- zc10 .. zc12 .. zc11 -- cycle ; -fill pa[3] withcolor \MPcolor{c} ; -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[picbackground] -[\useMPgraphic{greenframe}] - -\defineoverlay -[lecbackground] -[\useMPgraphic{bluebeam}] - -\defineoverlay -[titlebackground] -[\useMPgraphic{Titlebg}] - -%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 These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=5.3cm]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=2.3cm]\setupbackgrounds[page][background={titlebackground,prestitle,presauthor}]} -\define\picback{\setuplayout[header=2.3cm]\setupbackgrounds[page][background=picbackground]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin][color=c] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-horizontalblue.tex b/Master/texmf-dist/tex/context/third/taspresent/t-horizontalblue.tex deleted file mode 100644 index f586e058293..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-horizontalblue.tex +++ /dev/null @@ -1,150 +0,0 @@ -%D \module -%D [ file=t-horizontalblue, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module horizontalblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{horizontalblue} 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\ {\tt beamer} package. - -\writestatus{loading}{module horizontalblue} - -\startmodule[horizontalblue] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.97\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.97\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=14.7cm, - header=1.75cm, - footer=1.2cm, - topspace=1cm, - backspace=1cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.2cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\framed[frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{\bf \getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\getvariable{taspresent}{author}\blank[2*line]\currentdate} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [a] [s=.95] -\definecolor [b] [r=.58,g=.58,b=.82] -\definecolor [c] [r=.2,g=.2,b=.73] -\definecolor [Item] [r=.2,g=.2,b=.73] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{vertical} -StartPage ; -pair zd[] ; -path pb[] ; -fill Page withcolor \MPcolor{a} ; -z.d1 = ulcorner Page shifted (0,-5pt) ; -z.d2 = urcorner Page shifted (0,-5pt) ; -pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; -z.d3 = llcorner Page shifted (0,5pt) ; -z.d4 = lrcorner Page shifted (0,5pt) ; -pb[3] = llcorner Page -- z.d3 -- z.d4 -- lrcorner Page -- cycle ; -pb[4] = pb[3] shifted (0,.75cm) ; -fill pb[1] withcolor \MPcolor{b} ; -fill pb[3] withcolor \MPcolor{b} ; -fill pb[4] withcolor \MPcolor{b} ; -StopPage ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{horizontal} -StartPage ; -pair zd[] ; -path pb[] ; -z.d1 = ulcorner Page shifted (0,-5pt) ; -z.d2 = urcorner Page shifted (0,-5pt) ; -pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; -pb[2] = pb[1] shifted (0,-2cm) ; -fill pb[2] withcolor \MPcolor{b} ; -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{horizontal}] - -\defineoverlay -[picbackground] -[\useMPgraphic{vertical}] - -%D We define the footer - -\setupfooter[color=c,style={\switchtobodyfont[10pt]},strut=yes] -\setupfootertexts[{\framed[frame=off,height=.45cm,width=\textwidth]{\getvariable{taspresent}{title}\hfill \pagenumber \ of \lastpage}}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=1.75cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=1.75cm]\setupfooter[state=stop]\setupbackgrounds[page][background={picbackground,lecbackground}]} -\define\picback{\setuplayout[header=0cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=c] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-lightblue.tex b/Master/texmf-dist/tex/context/third/taspresent/t-lightblue.tex deleted file mode 100644 index 2a5499a413d..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-lightblue.tex +++ /dev/null @@ -1,162 +0,0 @@ -%D \module -%D [ file=t-lightblue, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module lightblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{lightblue} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module lightblue} - -\startmodule[lightblue] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors; textcolor is white: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - leftmargin=.5cm, - rightmargin=0cm, - leftmargindistance=1.5cm, - rightmargindistance=0pt, - height=fit, - header=2.5cm, - footer=0cm, - topspace=.2cm, - backspace=2.6cm, - cutspace=2.9cm, - bottomspace=.2cm, - bottomdistance=1.2cm, - bottom=1.2cm, - location=singlesided] - -%D We define our colors: - -\definecolor [Item] [r=0,g=.2,b=.4] -\definecolor [a] [r=.58,g=.84,b=.97] -\definecolor [b] [r=1,g=1,b=1] -\definecolor [c] [r=0,g=.2,b=.4] -\definecolor [d] [r=1,g=.6,b=0] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=2mm, - y=2mm] - -\define[1]\Slidetitle{% -\page\setupheadertexts[{\framed[frame=off,background=color,backgroundcolor=c,height=1.2cm,offset=3pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[d]{#1}}}]\setupheader[state=start]} - -\setupbottomtexts[{\framed[frame=off,background=color,backgroundcolor=c,height=1.2cm,offset=3pt,top=\vss,bottom=\vss]{\color[d]{\pagenumber}}}] - -\setupbottom[state=start] - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\framed[frame=off,background=color,backgroundcolor=c,height=1.2cm,offset=3pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[d]{\getvariable{taspresent}{title}}}} -\blank[2*line] -\midaligned{\color[c]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[c]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{blue1} -StartPage ; -numeric a ; -numeric b ; -numeric c ; -pair zk[] ; -path bl[] ; -a = 2cm ; -b = .7cm ; -c = .2 cm ; -z.k1 = ulcorner Page shifted (a,-a) ; -z.k2 = urcorner Page shifted (0,-a) ; -z.k3 = llcorner Page shifted (a,a) ; -z.k4 = lrcorner Page shifted (0,a) ; -z.k5 = z.k1 shifted (c,-c) ; -z.k6 = z.k2 shifted (0,-c) ; -z.k7 = z.k6 shifted (0,b) ; -z.k8 = z.k5 shifted (-b,b) ; -z.k9 = z.k3 shifted (c,c) ; -z.k10 = z.k4 shifted (0,c) ; -z.k11 = z.k10 shifted (0,-b) ; -z.k12 = z.k9 shifted (-b,-b) ; -bl[1] = urcorner Page -- ulcorner Page -- llcorner Page -- lrcorner Page -- z.k4 -- z.k3 -- z.k1 -- z.k2 -- cycle ; -bl[2] = z.k5 -- z.k6 -- z.k7 -- z.k8 -- cycle ; -bl[3] = z.k9 -- z.k10 -- z.k11 -- z.k12 -- cycle ; -bl[4] = z.k5 -- z.k9 -- z.k12 -- z.k8 --cycle ; -fill bl[1] withcolor \MPcolor{a} ; -linear_shade(bl[2],8,\MPcolor{a},\MPcolor{b}) ; -linear_shade(bl[3],6,\MPcolor{a},\MPcolor{b}) ; -linear_shade(bl[4],5,\MPcolor{a},\MPcolor{b}) ; -StopPage ; -\stopuniqueMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{blue1}] - -%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 These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setupheader[state=stop]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setupheader[state=stop]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin][color=c] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-narrowstripe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-narrowstripe.tex deleted file mode 100644 index 52ca9d8b412..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-narrowstripe.tex +++ /dev/null @@ -1,188 +0,0 @@ -%D \module -%D [ file=t-narrowstripe, -%D version=2007.07.25, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module narrowstripe, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{narrowstripe} 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{loading}{module narrowstripe} - -\startmodule[narrowstripe] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D The narrowframe module has parameters of its own; we set them up and use -%D them: - -\setupmodule[color=blue] - -\processaction[\currentmoduleparameter{color}] - [ red=>\def\colormode{redmode}, - blue=>\def\colormode{bluemode}, - green=>\def\colormode{greenmode}, - \v!unknown=>\def\colormode{bluemode}, - \v!default=>\def\colormode{bluemode}] - -\enablemode[\colormode] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D 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 The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=32mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[framecolor=red,frame=off,width=\textwidth,height=2.25cm,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[d]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[d]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[d]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[d]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors, depending on the mode: - -\startmode[bluemode] -\definecolor [Item] [b=.8] -\definecolor [a] [s=.95] -\definecolor [b] [r=0,g=0,b=1] -\definecolor [c] [r=.69,g=.69,b=.97] -\definecolor [d] [b=.8] -\stopmode - -\startmode[redmode] -\definecolor [Item] [r=.8] -\definecolor [a] [s=.95] -\definecolor [b] [r=1] -\definecolor [c] [b=.69,g=.69,r=.97] -\definecolor [d] [r=.8] -\stopmode - -\startmode[greenmode] -\definecolor [Item] [g=.4] -\definecolor [a] [s=.95] -\definecolor [b] [g=.4] -\definecolor [c] [b=.68,r=.68,g=.79] -\definecolor [d] [g=.4] -\stopmode - -%D We let Metapost calculate the background: - -\startuseMPgraphic{narrow} -StartPage ; -numeric a ; -numeric b ; -numeric c ; -c = PaperHeight - a/2 ; -pair za[] ; -path p[] ; -a = 2.25cm ; -b = 0.4 cm ; -za1 = ulcorner Page shifted (0,-a) ; -za2 = ulcorner Page shifted (0,-a-b) ; -za3 = urcorner Page shifted (0,-a-b) ; -za4 = urcorner Page shifted (0,-a) ; -za5 = ulcorner Page shifted (a,0) ; -za6 = ulcorner Page shifted (a+b,0) ; -za7 = llcorner Page shifted (a+b,0) ; -za8 = llcorner Page shifted (a,0) ; -za9 = ulcorner Page shifted (a,-a) ; -za10 = ulcorner Page shifted (a+b,-a) ; -za11 = ulcorner Page shifted (a+b,-a-b) ; -za12 = ulcorner Page shifted (a,-a-b) ; -p[1] = za1 -- za2 -- za3 -- za4 -- cycle ; -p[2] = za5 -- za6 -- za7 -- za8 -- cycle ; -p[3] = za9 -- za10 --za11 -- za12 -- cycle ; -linear_shade(p[1],1,\MPcolor{a},\MPcolor{b}) ; -linear_shade(p[2],2,\MPcolor{b},\MPcolor{a}) ; -fill p[3] withcolor \MPcolor{c} ; -draw \sometxt{\framed[frame=off,width=2.25cm,height=2.25cm]{\color[d]{\tfx \folio}}} shifted (0,PaperHeight-a) ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{narrow}] - -%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 These are shortcuts to switch backgrounds: - -\define\lecback{\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -\setupbackgrounds[page][background=lecbackground] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin][color=d] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-quadblue.tex b/Master/texmf-dist/tex/context/third/taspresent/t-quadblue.tex deleted file mode 100644 index 4b79b79eb57..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-quadblue.tex +++ /dev/null @@ -1,163 +0,0 @@ -%D \module -%D [ file=t-quadblue, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module quadblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{quadblue} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module quadblue} - -\startmodule[quadblue] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We define our colors: - -\definecolor[outer][r=0,g=0,b=.92] -\definecolor[current][r=0,g=0,b=.4] -\definecolor[inner][s=.98] - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.5\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.5\textwidth} - -%D 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] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=25mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.5cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[outer]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[outer]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[outer]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[outer]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We let Metapost calculate the background: - -\startuseMPgraphic{left} -StartPage ; -fill Page withcolor \MPcolor{inner} ; -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{outer} ; -endfor; -if PageNumber=1: - fill m[1] withcolor \MPcolor{current} ; -elseif (v>.001) and (v<.167) : - fill m[2] withcolor \MPcolor{current} ; -elseif (v>.166) and (v<.334): - fill m[3] withcolor \MPcolor{current} ; -elseif (v>.333) and (v<.501): - fill m[4] withcolor \MPcolor{current} ; -elseif (v>.5) and (v<.667): - fill m[5] withcolor \MPcolor{current} ; -elseif (v>.666) and (v<.834): - fill m[6] withcolor \MPcolor{current} ; -elseif (v>.833) and (v<1): - fill m[7] withcolor \MPcolor{current} ; -elseif v=1: - fill m[8] withcolor \MPcolor{current} ; -fi ; -StopPage ; - -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{left}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=1.5cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=0cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=0cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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=0cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][$\square$] -\setupitemize[1][inmargin][color=outer] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-rainbowstripe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-rainbowstripe.tex deleted file mode 100644 index a139438c9e5..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-rainbowstripe.tex +++ /dev/null @@ -1,243 +0,0 @@ -%D \module -%D [ file=t-bluegray, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module bluegray, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{bluegray} style for the presentation -%D module. It is loaded at runtime. - -\writestatus{loading}{module bluegray} - -\startmodule[bluegray] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=1.5cm, - height=fit, - header=11mm, - footer=0cm, - topspace=15mm, - backspace=2cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=20mm, - y=12mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,height=1.5cm,width=\textwidth,offset=0pt,align=middle,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]#1}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\getvariable{taspresent}{title}} -\blank[2*line] -\midaligned{\getvariable{taspresent}{author}} -\blank[3*line] -\midaligned{\currentdate} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [a] [s=.88] -\definecolor [Item] [s=0] -\definecolor [One] [r=.5,g=0,b=.5] -\definecolor [Two] [b=1] -\definecolor [Three] [g=1,b=1] -\definecolor [Four] [g=1] -\definecolor [Five] [r=1,g=1] -\definecolor [Six] [r=1] - -%D In a first attempt to avhieve 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{gray} -StartPage ; -pair zf[] ; -fill Page withcolor \MPcolor{a} ; -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{One},\MPcolor{Two}) ; -linear_shade(gr[4],0,\MPcolor{Two},\MPcolor{Three}) ; -linear_shade(gr[5],0,\MPcolor{Three},\MPcolor{Four}) ; -linear_shade(gr[6],0,\MPcolor{Four},\MPcolor{Five}) ; -linear_shade(gr[7],0,\MPcolor{Five},\MPcolor{Six}) ; -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{One},\MPcolor{Two}) ; -linear_shade(gr[24],0,\MPcolor{Two},\MPcolor{Three}) ; -linear_shade(gr[25],0,\MPcolor{Three},\MPcolor{Four}) ; -linear_shade(gr[26],0,\MPcolor{Four},\MPcolor{Five}) ; -linear_shade(gr[27],0,\MPcolor{Five},\MPcolor{Six}) ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{progress} -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[graybg] -[\useMPgraphic{gray}] - -\defineoverlay[bar] -[\useMPgraphic{progress}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=11mm]\setupbackgrounds[page][background={graybg,bar,slidetitle}]} -\define\titback{\setuplayout[header=0mm]\setupbackgrounds[page][background={graybg}]} -\define\picback{\setuplayout[header=0mm]\setupbackgrounds[page][background={graybg,bar}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-redframe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-redframe.tex deleted file mode 100644 index 9538360af8a..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-redframe.tex +++ /dev/null @@ -1,187 +0,0 @@ -%D \module -%D [ file=t-redframe, -%D version=2007.07.17, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module redframe, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{redframe} 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{loading}{module redframe} - -\startmodule[redframe] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{.95\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.95\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%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] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=20mm, - y=16mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.3cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[FrameColor]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[FrameColor]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[FrameColor]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[FrameColor]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [lightb] [s=.75] -\definecolor [darkb] [s=.2] -\definecolor [BackgroundColor] [s=.6] -\definecolor [FrameColor] [r=.55, g=0, b=.04] -\definecolor [Item] [r=.55, g=0, b=.04] -\definecolor [DarkYellow] [s=.6]%[r=.73, g=.61, b=.25] % gray looks better? - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{slide} -StartPage ; -path p[] ; -a=1.5cm ; -fill Page withcolor \MPcolor{lightb} ; -path Main ; -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{darkb} ; -fill p[2] withcolor \MPcolor{darkb} ; -fill p[3] withcolor \MPcolor{darkb} ; -fill p[4] withcolor \MPcolor{darkb} ; -pickup pencircle scaled 8 pt ; -draw z1 -- z6 withcolor \MPcolor{FrameColor} ; -draw z2 -- z5 withcolor \MPcolor{FrameColor} ; -draw z7 -- z4 withcolor \MPcolor{FrameColor} ; -draw z8 -- z3 withcolor \MPcolor{FrameColor} ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{Bottombg} -StartPage -path Q[] ; -path R[] ; -z4 = llcorner Page shifted (2cm,0.75cm) ; -z5 = lrcorner Page shifted (-2cm,0.75cm) ; -Q[1] = z4 -- z[5] ; -oa = NOfPages - 2 ; -ob = PageNumber - 2 ; -oc = arclength(Q[1]) ; -od = oc/oa ; -oe = oc/oa ; -Q[2] = fullcircle scaled .4 cm shifted (2cm,0.65cm) ; -fill Q[2] withcolor \MPcolor{DarkYellow} ; -for i = 1 upto NOfPages-2: - R[i] = Q[2] shifted (i*od,0) ; - fill R[i] withcolor \MPcolor{DarkYellow} ; -endfor ; -if PageNumber > 1 : - Q[2] := Q[2] shifted (od*ob,0) ; - fill Q[2] withcolor yellow ; -fi ; -StopPage -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{slide}] - -\defineoverlay -[picbackground] -[\useMPgraphic{slide}] - -\defineoverlay -[bottom] -[\useMPgraphic{Bottombg}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=2.8cm]\setupbackgrounds[page][background={lecbackground,bottom,slidetitle}]} -\define\titback{\setuplayout[header=1cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=1cm]\setupbackgrounds[page][background={lecbackground,bottom}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][inmargin][color=FrameColor] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-superellipse.tex b/Master/texmf-dist/tex/context/third/taspresent/t-superellipse.tex deleted file mode 100644 index ad4e93c1ab8..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-superellipse.tex +++ /dev/null @@ -1,139 +0,0 @@ -%D \module -%D [ file=t-superellipse, -%D version=2007.12.20, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module quadblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{superellipse} 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{loading}{module superellipse} - -\startmodule[superellipse] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We define our colors: - -\definecolor[outer][s=0] -\definecolor[inner][s=.8] -\definecolor[ellipse][r=.5,g=0,b=0] -\definecolor[contrast][r=.9,g=0,b=0] -\definecolor[Item] [r=.5] - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.5\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.5\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - height=fit, - margin=0cm, - header=1.2cm, - footer=0cm, - topspace=1.8cm, - backspace=1.5cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - y=10mm, - x=15mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[frame=off,width=\textwidth,height=2.5cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[ellipse]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\color[ellipse]{\getvariable{taspresent}{title}}} -\blank[2*line] -\midaligned{\color[ellipse]{\getvariable{taspresent}{author}}} -\blank[3*line] -\midaligned{\color[ellipse]{\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We let Metapost calculate the background: - -\startuseMPgraphic{left} -StartPage ; - fill Page withcolor \MPcolor{outer} ; - path p ; pair pa ; pair pb ; - p := Page enlarged (-15pt,-15pt) superellipsed .9 ; - fill p withcolor \MPcolor{inner} ; - pickup pencircle scaled 20pt ; - draw p withcolor \MPcolor{ellipse} ; - 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{contrast} ; - fi ; -% draw point 1 of p withcolor \MPcolor{contrast} ; -% draw point 8 of p withcolor blue ; -% draw point 4 of p withcolor green ; -% draw point 3 of p withcolor yellow ; -% draw point 2 of p withcolor cyan ; -% draw point 7 of p withcolor white ; -StopPage ; -\stopuseMPgraphic - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{left}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=1.5cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\titback{\setuplayout[header=0cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=0cm]\setupbackgrounds[page][background={lecbackground,slidetitle}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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=0cm] - -%D The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=ellipse] - -\protect -\stopmodule - -\endinput - diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-taspresent.tex b/Master/texmf-dist/tex/context/third/taspresent/t-taspresent.tex deleted file mode 100644 index 5b3f51e95d3..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-taspresent.tex +++ /dev/null @@ -1,684 +0,0 @@ -%D \module -%D [ file=t-taspresent, -%D version=2007.07.15, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module taspresent, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This module is meant to facilitate writing presentations in \CONTEXT. It -%D provides a consistent interface and macros; there are different styles -%D which give different output. The module has been written for -%D projector||based presentations, so elements which are typical for screen -%D presentations (such as interactive hyperlinks or tables of contents) are not -%D included. The module is meant for an academic environment, specifically in -%D the humanities. 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 unserstand 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, and to Mojca -%D Miklavec, who provided help with Metapost. - -\writestatus{loading}{module taspresent} - -\startmodule[taspresent] - -\unprotect - -%D First, we provide default setups for the module. These setups will be used -%D to choose the different styles; user input will overwrite the defaults. The -%D different styles are defined in additional modules which will be called in -%D turn. - -\setupmodule[style=doubleframe,font=LatinModernSans,size=17pt,stylecolor=blue,stylebottom=square] - -%D We collect author and title of the presentation in variables in the -%D namespace {\tt taspresent}; they will be used to typeset the title page and -%D in some headers and footers. The defaults are empty. - -\setvariables [taspresent] [ author=] -\setvariables [taspresent] [ title=] - -%D The fontsize is set via the \type{size}||key; it will be used in -%D numerous setup||commands. We use the \tex{processaction} mechanism to define -%D our \tex{Normalsize} and \tex{Titlesize}. - - -\processaction[\currentmoduleparameter{size}] - [ 16pt=>\def\Normalsize{16pt}\def\Titlesize{25pt}, - 17pt=>\def\Normalsize{17pt}\def\Titlesize{27pt}, - 18pt=>\def\Normalsize{18pt}\def\Titlesize{28pt}, - 19pt=>\def\Normalsize{19pt}\def\Titlesize{30pt}, - 20pt=>\def\Normalsize{20pt}\def\Titlesize{30pt}, - 21pt=>\def\Normalsize{21pt}\def\Titlesize{30pt}, - \v!unknown=>\def\Normalsize{17pt}\def\Titlesize{27pt}, - \v!default=>\def\Normalsize{17pt}\def\Titlesize{27pt}] - -%D Next, we define the different styles. The fallback is a style without -%D background which is defined in the module itself; it is included as a -%D \type{mode}. All other styles are defined in external files which are -%D called in turn. - -\beginOLDTEX -\setupencoding[default=ec] -\endOLDTEX - -\def\DefMode{\enablemode[defaultmode]} - -\processaction[\currentmoduleparameter{stylebottom}] - [ square=>\def\modbottom{square}, - stripe=>\def\modbottom{stripe}, - \v!unknown=>\def\modbottom{square}, - \v!default=>\def\modbottom{square}] - -\processaction[\currentmoduleparameter{stylecolor}] - [ red=>\def\modcolor{red}, - blue=>\def\modcolor{blue}, - green=>\def\modcolor{green}, - bluered=>\def\modcolor{bluered}, - \v!unknown=>\def\modcolor{blue}, - \v!default=>\def\modcolor{blue}] - -\processaction[\currentmoduleparameter{style}] - [ blackblue=>{\usemodule[blackblue]}, - bonn=>{\usemodule[bonn]}, - bluegray=>{\usemodule[bluegray][color=\modcolor]}, - bluestripe=>{\usemodule[bluestripe]}, - bluewhite=>{\usemodule[bluewhite]}, - darkshade=>{\usemodule[darkshade][color=\modcolor]}, - doubleframe=>{\usemodule[doubleframe][bottom=\modbottom]}, - doubleshade=>{\usemodule[doubleshade]}, - embossed=>{\usemodule[embossed]}, - graybeams=>{\usemodule[graybeams]}, - graysquare=>{\usemodule[graysquare]}, - greenblue=>{\usemodule[greenblue]}, - horizontalblue=>{\usemodule[horizontalblue]}, - lightblue=>{\usemodule[lightblue]}, - quadblue=>{\usemodule[quadblue]}, - rainbowstripe=>{\usemodule[rainbowstripe]}, - superellipse=>{\usemodule[superellipse]}, - titleframe=>{\usemodule[titleframe]}, - narrowstripe=>{\usemodule[narrowstripe][color=\modcolor]}, - redframe=>{\usemodule[redframe]}, - \v!unknown=>\doiffileelse{\currentmoduleparameter{style}}{\input \currentmoduleparameter{style}}{\DefMode}, - \v!default=>\DefMode] - -%D We set up the bodyfont - -\processaction[\currentmoduleparameter{font}] - [ LatinModern=>\def\fontmode{latinmodern}, - LatinModernSans=>\def\fontmode{latinmodernsans}, - Pagella=>\def\fontmode{pagella}, - Times=>\def\fontmode{times}, - MyriadPro=>\def\fontmode{myriadpro}, - Helvetica=>\def\fontmode{helvetica}, - User=>\def\fontmode{}, - \v!unknown=>\def\fontmode{latinmodernsans}, - \v!default=>\def\fontmode{latinmodernsans}] - -\enablemode[\fontmode] - -%D We begin by setting up the tolerance. Presentations have relatively dense -%D lines, we do not care about underfull lines, but allow emergeny stretch. - -\setuptolerance[verytolerant,stretch] - -\setupbodyfontenvironment[default][em=italic] - -%D Next, the page layout. S6 has the ratio of a usual computer screen. We do -%D not want page numbers, but we sometimes want to use the pagenumbering -%D mechanism, so we make sure pages are counted, but the numbers are not -%D displayed. 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. - -\setuppapersize[S6][S6] - -\setuppagenumbering[location=] - -\startmode[defaultmode] -\setupcolors[state=start] -\stopmode - -\startmode[defaultmode] -\setuplayout [width=fit, - margin=0.6cm, - height=fit, - header=0.15cm, - footer=1.35cm, - footerdistance=0.5cm, - topspace=0.5cm, - backspace=1cm, - location=singlesided] -\stopmode - -%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 - -%D Modes define which font will be used. - -\definebodyfontenvironment[\Normalsize] -\definebodyfontenvironment[\Titlesize] - -\startmode[latinmodern] -\setupbodyfont[\Normalsize] -\stopmode - -\startmode[latinmodernsans] -\setupbodyfont[ss,\Normalsize] -\stopmode - -\beginLUATEX -\usetypescriptfile[type-otf] - -\startmode[helvetica] -\usetypescript[times] -\setupbodyfont[times,ss,\Normalsize] -\stopmode - -\startmode[pagella] -\usetypescript[palatino] -\setupbodyfont[palatino,\Normalsize] -\stopmode - -\startmode[times] -\usetypescript[times] -\setupbodyfont[times,\Normalsize] -\stopmode -\endLUATEX - -\beginOLDTEX -\startmode[helvetica] -\definetypeface [SlideFace] [rm] [serif] [times] [default] -\definetypeface [SlideFace] [ss] [sans] [helvetica] [default] [rscale=.9] -\definetypeface [SlideFace] [tt] [mono] [courier] [default] [rscale=1.1] -\setupbodyfont[SlideFace,ss,\Normalsize] -\stopmode - -\startmode[times] -\definetypeface [SlideFace] [rm] [serif] [times] [default] -\definetypeface [SlideFace] [ss] [sans] [helvetica] [default] [rscale=.9] -\definetypeface [SlideFace] [tt] [mono] [courier] [default] [rscale=1.1] -\setupbodyfont[SlideFace,\Normalsize] -\stopmode - -\startmode[pagella] -\definebodyfontenvironment[\Normalsize] -\usetypescriptfile[type-gyr] -\definetypeface [SlideFace] [rm] [serif] [palatino] [default] [encoding=texnansi] -\definetypeface [SlideFace] [tt] [mono] [modern] [default] [encoding=texnansi] -\setupbodyfont[SlideFace,\Normalsize] -\stopmode - -\startmode[myriadpro] -\usetypescriptfile[type-myriadpro] -\usetypescript[MyriadPro] [texnansi] -\setupbodyfont[MyMyriadPro,ss,\Normalsize] -\stopmode -\endOLDTEX - -\beginXETEX -\startmode[times] -\starttypescript [serif] [sliter] - \definefontsynonym [Termes-Roman] [file:texgyretermes-regular] - \definefontsynonym [Termes-Bold] [file:texgyretermes-bold] - \definefontsynonym [Termes-Italic] [file:texgyretermes-italic] - \definefontsynonym [Termes-Bold-Italic] [file:texgyretermes-bolditalic] - \stoptypescript - -\starttypescript [serif] [sliter] [name] - \definefontsynonym [Serif] [Termes-Roman] [features=default] - \definefontsynonym [SerifItalic] [Termes-Italic] [features=default] - \definefontsynonym [SerifBold] [Termes-Bold] [features=default] - \definefontsynonym [SerifBoldItalic] [Termes-Bold-Italic] [features=default] - \definefontsynonym [SerifCaps] [Serif] - \definefontsynonym [OldStyle] [Serif] -\stoptypescript -\definetypeface [SlideFace] [rm] [serif] [sliter] [default] -\setupbodyfont[SlideFace,\Normalsize] -\stopmode - -\startmode[helvetica] -\starttypescript [sans] [slihe] - \definefontsynonym [Helvetica-Roman] [file:texgyreheros-regular] - \definefontsynonym [Helvetica-Bold] [file:texgyreheros-bold] - \definefontsynonym [Helvetica-Italic] [file:texgyreheros-italic] - \definefontsynonym [Helvetica-Bold-Italic] [file:texgyreheros-bolditalic] - \stoptypescript - -\starttypescript [sans] [slihe] [name] - \definefontsynonym [Sans] [Helvetica-Roman] [features=default] - \definefontsynonym [SansItalic] [Helvetica-Italic] [features=default] - \definefontsynonym [SansBold] [Helvetica-Bold] [features=default] - \definefontsynonym [SansBoldItalic] [Helvetica-Bold-Italic] [features=default] - \definefontsynonym [SansCaps] [Sans] - \definefontsynonym [OldStyle] [Sans] -\stoptypescript -\definetypeface [SlideFace] [rm] [sans] [slihe] [default] -\setupbodyfont[SlideFace,ss,\Normalsize] -\stopmode - -\startmode[pagella] -\definebodyfontenvironment[\Normalsize] -\starttypescript [serif] [slipa] - \definefontsynonym [Pagella-Roman] [file:texgyrepagella-regular] - \definefontsynonym [Pagella-Bold] [file:texgyrepagella-bold] - \definefontsynonym [Pagella-Italic] [file:texgyrepagella-italic] - \definefontsynonym [Pagella-Bold-Italic] [file:texgyrepagella-bolditalic] - \stoptypescript - -\starttypescript [serif] [slipa] [name] - \definefontsynonym [Serif] [Pagella-Roman] [features=default] - \definefontsynonym [SerifItalic] [Pagella-Italic] [features=default] - \definefontsynonym [SerifBold] [Pagella-Bold] [features=default] - \definefontsynonym [SerifBoldItalic] [Pagella-Bold-Italic] [features=default] - \definefontsynonym [SerifCaps] [Serif] - \definefontsynonym [OldStyle] [Serif] -\stoptypescript -\definetypeface [SlideFace] [rm] [serif] [slipa] [default] -\setupbodyfont[SlideFace,\Normalsize] -\stopmode - -\startmode[myriadpro] -\usetypescriptfile[type-myriadpro] -\usetypescript[MyriadPro] -\setupbodyfont[MyMyriadPro,\Normalsize] - -\endXETEX - -%D This is a definition for Metapost pictures and \tex{sometxt} which I use in -%D my own presentations. - -\def\MyFramedText#1% -{\framed[offset=.5ex,frame=off,width=0.5cm]{#1}} -\definetextext[MF]{\MyFramedText} - -%D For code snippets, we want colored output. - -\definetype[typeTEX][option=color] - -%D We define a \quotation{normal} height and width for images. - -\startmode[defaultmode] -\define\NormalHeight{.83\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{.83\textheight} -\define\PictureFrameWidth{.476\textwidth} -\stopmode - -%D This is a small square which will be used for \tex{itemize}; it will be -%D placed in the margin. - -\startuniqueMPgraphic{ItTriangle} -fill (0,0) -- (0,0.4cm) -- (0.6cm,0.2cm) -- cycle withcolor \MPcolor{Item} ; -\stopuniqueMPgraphic - -\startuniqueMPgraphic{ItSquare} -fill unitsquare xyscaled(0.4cm,0.4cm) withcolor \MPcolor{Item} ; -\stopuniqueMPgraphic - -%D I had thought about this method for including pictures, but in the end -%D decided against it. - -\definefloat[MyMargin] - [figure] - -\setupfloat[MyMargin] - [leftmargindistance=-0.5cm, - default={left,none,high}] - -\defineparagraphs[ShowPictures][n=2,distance=1cm] -\setupparagraphs[ShowPictures][1][width=.5\textwidth] - -%D The code for red circles and arrows which can be placed on top of a picture. -%D I use them quite often in my presentations. Again, they are Metapost -%D graphics which are then used as overlays. - -\setupMPvariables[CircleSomething][scale=20,x=3,y=3] -\startuseMPgraphic{CircleSomething}{scale,x,y} -picture bboxpicture ; -draw unitsquare xyscaled (OverlayWidth,OverlayHeight) ; -bboxpicture := currentpicture ; -currentpicture := nullpicture ; -for i=1 upto 18: - pickup pencircle scaled (i*0.333pt) ; - draw fullcircle scaled \MPvar{scale}mm shifted (\MPvar{x}mm + 1.5mm,\MPvar{y}mm - 1.5mm) withcolor transparent (1,0.025,black) ; - endfor ; -pickup pencircle scaled 5pt ; -draw fullcircle scaled \MPvar{scale}mm shifted (\MPvar{x}mm,\MPvar{y}mm) withcolor red ; -setbounds currentpicture to boundingbox bboxpicture; -\stopuseMPgraphic - -%D This code has been contributed by Wolfgang Schuster and Peter Rolf. It puts -%D a transparent gray layer over the picture, with one round area being -%D completely transparent. This looks very neat for emphasizing areas of a -%D picture. - -\setupMPvariables[GraySomething][opacity=30,scale=20,x=10,y=10] -\startuseMPgraphic{GraySomething}{opacity,scale,x,y} -op := \MPvar{opacity}/100 ; -path p, q ; -p := unitsquare xyscaled(OverlayWidth,OverlayHeight) ; -q := fullcircle scaled \MPvar{scale}mm shifted (\MPvar{x}mm,\MPvar{y}mm) ; -fill p--reverse q--cycle withcolor transparent (1,op,black) ; -\stopuseMPgraphic - -%D The next macro allows users a simple interface for placing an image with a -%D red circle on top. The macro \tex{CircHoriz} takes three arguments: the size -%D and placement of the red circle, which are given as variables in the form -%D \type{[scale=,xshift,yshift]}, the name of the picture, and the size for the -%D picture. - -\def\CircHoriz{\dotripleargument\doCircHoriz} -\def\doCircHoriz[#1][#2][#3]{% -\defineoverlay[Red_Circle][\useMPgraphic{CircleSomething}{#1}] -\midaligned{\framed[frame=off,width=\textwidth,height=\PictureFrameHeight,align=middle,top=\vss,bottom=\vss,strut=no,offset=0pt,background={foreground,Red_Circle}]{\externalfigure[#2][#3]}}} - -%D This macro makes use of the gray layer; again, it takes three arguments: -%D opacity, scale and placement of the transparent circle (the rest of the -%D image is transparent gray), name of the picture, size of picture. - -\def\GrayHoriz{\dotripleargument\doGrayHoriz} -\def\doGrayHoriz[#1][#2][#3]{% -\defineoverlay[Gray_Background][\useMPgraphic{GraySomething}{#1}] -\framed[frame=off,width=\textwidth,height=\textheight,align=middle,top=\vss,bottom=\vss,strut=no,offset=0pt]{\framed[frame=off,width=fit,height=fit,strut=no,offset=0pt,background={foreground,Gray_Background}]{\externalfigure[#2][#3]}}} - - -\def\CircVert{\dotripleargument\doCircVert} -\def\doCircVert[#1][#2][#3]#4{% -\defineoverlay[Red_Circle][\useMPgraphic{CircleSomething}{#1}]% -\startcombination% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no,offset=0pt,background={foreground,Red_Circle}]{\externalfigure[#2][#3]}{}% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no]{#4}{}% -\stopcombination% -} - -\setupMPvariables[ArrowSomething][direction=45,x=20,y=20] -\startuseMPgraphic{ArrowSomething}{direction,x,y} -picture bboxpicture ; -draw unitsquare xyscaled (OverlayWidth,OverlayHeight) withcolor blue ; -z1 = (\MPvar{x}mm,\MPvar{y}mm) ; -z2 = z1 + 2.5cm*dir(\MPvar{direction}) ; -z3 = z1 shifted (1.5mm,-1.5mm) ; -z4 = z2 shifted (1.5mm,-1.5mm) ; -bboxpicture := currentpicture ; -currentpicture := nullpicture ; -for i=1 upto 18: - ahlength := (i*0.833pt) ; - pickup pencircle scaled (i*0.277pt) ; - drawarrow z4--z3 withcolor transparent (1,0.025,black) ; -endfor ; -ahlength := 15pt ; -pickup pencircle scaled 5pt ; -drawarrow z2--z1 withcolor red; -setbounds currentpicture to boundingbox bboxpicture; -\stopuseMPgraphic - -%D The code for inclusion of a red arrow is similar: again, it takes three -%D arguments: the placement and direction of the arrow given in the form -%D \type{[direction=45,x=20,y=20]}, the name of the picture, and the size of -%D the picture. - -\def\ArrowHoriz{\dotripleargument\doArrowHoriz} -\def\doArrowHoriz[#1][#2][#3]{% -\defineoverlay[Red_Arrow][\useMPgraphic{ArrowSomething}{#1}] -\midaligned{\framed[frame=off,width=\textwidth,height=\PictureFrameHeight,align=middle,top=\vss,bottom=\vss,strut=no,offset=0pt,background={foreground,Red_Arrow}]{\externalfigure[#2][#3]}}} - -\def\ArrowVert{\dotripleargument\doArrowVert} -\def\doArrowVert[#1][#2][#3]#4{% -\defineoverlay[Red_Arrow][\useMPgraphic{ArrowSomething}{#1}]% -\startcombination% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no,offset=0pt,background={foreground,Red_Arrow}]{\externalfigure[#2][#3]}{}% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no]{#4}{}% -\stopcombination% -} - -\beginLUATEX -\define{\married}% -{\getglyph{name:TeXGyreHeros-Regular}{\char"26AD}} - -\define{\hanky}% -{\getglyph{name:TeXGyreHeros-Regular}{\char"26AE}} -\endLUATEX - -\beginOLDTEX -\loadmapfile[ts1-lm.map] - -\startencoding[comp] -\definecharacter textmarried 109 -\definecharacter texthanky 126 -\stopencoding - -\definefontsynonym[l@tinss][ts1-lmss10][encoding=comp] -\definefont[tsf@nt][l@tinss sa 1.4] - -\def\married{\begingroup\tsf@nt\textmarried\endgroup} -\def\hanky{\begingroup\tsf@nt\texthanky\endgroup} -\endOLDTEX - -%D Now the real user macros. \tex{Slidetitle}: well, the name says it all. Ths -%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. - -\startmode[defaultmode] -\define[1]\Slidetitle{\page\midaligned{\switchtobodyfont[\Titlesize]#1}\blank[0.75cm]} -\stopmode - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\startmode[defaultmode] -\define\Maketitle{% -\titback -\null -\vfill -\midaligned{\switchtobodyfont[\Titlesize]\getvariable{taspresent}{title}} -\blank[2*line] -\midaligned{\getvariable{taspresent}{author}} -\blank[3*line] -\midaligned{\currentdate} -\vfill -\null} -\stopmode - -%D The macros for placing horizontal and vertical pictures. They take a similar -%D form to the inclusion of arrows and circles. The macro for horizontal -%D pictures \tex{PicHoriz} takes two arguments: the name of the picture and its -%D size in the form \type{height=} or \type{width=}; the macro for vertical -%D pictures \tex{PicVert} takes three arguments: the name of the picture, its -%D size, and the text which will be placed opposite the picture. - -\def\PicHoriz{\dodoubleargument\doPicHoriz} -\def\doPicHoriz[#1][#2]{% -\framed[frame=off,width=\textwidth,height=\PictureFrameHeight,align=middle,top=\vss,bottom=\vss,strut=no,offset=0pt]{\externalfigure[#1][#2]}} - -\def\PicVert{\dodoubleargument\doPicVert} -\def\doPicVert[#1][#2]#3{\startcombination% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no,offset=0pt]{\externalfigure[#1][#2]}{}% -\framed[frame=off,height=\textheight,width=\PictureFrameWidth,top=\vss,bottom=\vss,align=middle,strut=no]{#3}{}% -\stopcombination} - -%D finally, a few macros for switching the background. - -\startmode[defaultmode] -\define\lecback{\relax} -\define\titback{\relax} -\define\picback{\relax} -\define\noback{\relax} -\stopmode - -%D The rest is the demo section. - -\protect -\stopmodule - -\doifnotmode{demo}{\endinput} - -\setvariables [taspresent] - [author={Groucho Marx}, - title={Marriage the Chief Cause of Divorce}] - -\starttext - -\Maketitle - -\Slidetitle{Text} - -\lecback - -Thus, I came to the conclusion that the designer of a new -system must not only be the implementer and first -large||scale user; the designer should also write the first -user manual. - -The separation of any of these four components would have -hurt \TeX\ significantly. If I had not participated fully in -all these activities, literally hundreds of improvements -would never have been made, because I would never have -thought of them or perceived why they were important. - -But a system cannot be successful if it is too strongly -influenced by a single person. Once the initial design is -complete and fairly robust, the real test begins as people -with many different viewpoints undertake their own -experiments. - -\Slidetitle{Itemization} - -\startitemize[1] -\item Thus, I came to the conclusion that the designer of a new - system -\item must not only be the implementer and first - large||scale user; -\item the designer should also write the first - user manual. -\item The separation of any of these four components would have - hurt \TeX\ significantly. -\stopitemize - -\Slidetitle{Numbered Itemization} - -\startitemize[n] -\item Thus, I came to the conclusion that the designer of a new - system -\item must not only be the implementer and first - large||scale user; -\item the designer should also write the first - user manual. -\item The separation of any of these four components would have - hurt \TeX\ significantly. -\stopitemize - -\Slidetitle{Picture in Horizontal Mode} - -\PicHoriz[hor][height=\NormalHeight] - -\page - -\picback - -\PicVert[vert][width=\NormalWidth]{Picture in \\ Vertical Mode} - -\page - -\CircVert[scale=22,x=23,y=25][vert][width=\NormalWidth]{Circle in \\ Vertical Mode} - -\page - -\ArrowVert[direction=90,x=7,y=23][vert][width=\NormalWidth]{Arrow in \\ Vertical Mode} - -\Slidetitle{Red Circle} - -\lecback - -\CircHoriz[scale=40,x=120,y=80][hor][height=\NormalHeight] - -\Slidetitle{Red Arrow} - -\ArrowHoriz[direction=135,x=105,y=15][hor][height=\NormalHeight] - -\Slidetitle{A MetaFun graphic} - -\placefigure[here]{none}{% -\startMPcode -pickup pencircle scaled 4pt ; -draw unitsquare xyscaled (5cm,5cm) withcolor red ; -\stopMPcode -} - -\Slidetitle{Some Code Snippets} - -To set up a horizontal picture, simply type: - -\startTEX -\PicHoriz[hor][height=\Normalheight] -\stopTEX - -\blank[line] - -For vertical pictures: - -\startTEX -\PicVert[vert][width=\NormalWidth]% -{Text placed \\ opposite picture} -\stopTEX - -\Slidetitle{Math} - -Since I know nothing about math, this example is copied from the wiki: - -\startformula - f(x) = \startmathcases - \NC x, \NC if $0 \le x \le \frac12$ \NR - \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR -\stopmathcases -\stopformula - -\Slidetitle{Your Own Ideas?} - -\null - -\vfill - -\midaligned{\tfd Go \color[red]{here!}} - -\vfill - -\null - -\page - -\null - -\stoptext diff --git a/Master/texmf-dist/tex/context/third/taspresent/t-titleframe.tex b/Master/texmf-dist/tex/context/third/taspresent/t-titleframe.tex deleted file mode 100644 index b3df934da77..00000000000 --- a/Master/texmf-dist/tex/context/third/taspresent/t-titleframe.tex +++ /dev/null @@ -1,158 +0,0 @@ -%D \module -%D [ file=t-titleframe, -%D version=2007.12.20, -%D title=\CONTEXT\ Style File, -%D subtitle=Presentation Module blackblue, -%D author=Thomas A. Schmitz, -%D date=\currentdate, -%D copyright={Thomas A. Schmitz}] -%C -%C Copyright 2007 Thomas A. Schmitz. -%C This file may be distributed under the GNU General Public License v. 2.0. - -%D This file provides the \quotation{titleframe} 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{loading}{module titleframe} - -\startmodule[titleframe] - -\unprotect - -%D The taspresentation module provides a skeleton into which different styles -%D can be hooked. It uses a number of variables and macros which have to be set -%D beforehand. Some parts are optional. We begin with the necessary definitions: - -%D We start colors: - -\setupcolors[state=start] - -%D These macros are used for placing figures/pictures: - -\define\NormalHeight{\textheight} -\define\NormalWidth{.476\textwidth} -\define\PictureFrameHeight{\textheight} -\define\PictureFrameWidth{.476\textwidth} - -%D The page layout: - -\setuplayout [width=fit, - margin=0cm, - height=fit, - header=2.2cm, - footer=1cm, - topspace=.6cm, - backspace=1cm, - location=singlesided] - -%D The macro for typesetting the Slidetitle; this is adapted from a sample -%D document that Brooks Moses published on the wiki: - -\definelayer[slidetitle] - [width=\paperwidth, - height=\paperheight, - x=10mm, - y=2mm] - -\define[1]\Slidetitle{\page\setlayer[slidetitle]% - {\framed[corner=round,background=color,backgroundcolor=myred,frame=off,width=\textwidth,height=2.1cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[background]{#1}}}} - -%D The macro \tex{Maketitle} produces a default title page with the author, the -%D title of the presentation, and the date. Using it is not mandatory. - -\define\Maketitle{% -\titback -\null -\vfill -\framed[corner=round,background=color,backgroundcolor=myred,frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[background]{\getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\color[background]{\getvariable{taspresent}{author}\blank[2*line]\currentdate}} -\vfill -\null} - -%D The following parts are optional; if you don't use backgrounds and are -%D content with CONTEXT's default itemization, you don't have to set these -%D macros. - -%D We define our colors: - -\definecolor [background] [s=.9] -\definecolor [darkgray] [s=.3] -\definecolor [lightgray] [s=.7] -\definecolor [myred] [r=.5] -\definecolor [Item] [r=.5] - -%D We let Metapost calculate the background: - -\startuniqueMPgraphic{slide} -StartPage ; -fill Page withcolor \MPcolor{background} ; -StopPage ; -\stopuniqueMPgraphic - -\startuseMPgraphic{counter} -StartPage ; -numeric a ; -numeric b ; -b = PaperWidth/2 - NOfPages * 2.5pt ; -a = 7mm ; -% z1 = (0,0) ; -% z2 = (x1+2pt,y1+a) ; -% numeric a; a=.5cm ; -pickup pencircle scaled 3pt ; -for i := 1 upto NOfPages: - path p ; - path q ; - p = (0,5mm) -- (1mm,11mm) ; - p := p shifted (b,0) ; - q = (-8mm,5mm) -- (0,11mm) ; - q := q shifted (b,0) ; - if (i mod 5<>0): - draw p shifted (i*5pt,0pt) withcolor \MPcolor{lightgray} ; - if (i <= PageNumber): - draw p shifted (i*5pt,0pt) ; - fi ; - else: - draw q shifted (i*5pt,0pt) withcolor \MPcolor{lightgray} ; - if (i <= PageNumber): - draw q shifted (i*5pt,0pt) ; - fi ; - fi ; -endfor ; -StopPage ; -\stopuseMPgraphic - -%\setupfootertexts[{\framed[frame=on,framecolor=red,height=9mm,width=\textwidth]{\useMPgraphic{counter}}}] -%\setupfootertexts[some random text] - -%D We define these backgrounds as overlays: - -\defineoverlay -[lecbackground] -[\useMPgraphic{slide}] - -\defineoverlay -[scratchcounter] -[\useMPgraphic{counter}] - -%D These are shortcuts to switch backgrounds: - -\define\lecback{\setuplayout[header=2.2cm]\setupbackgrounds[page][background={lecbackground,scratchcounter,slidetitle}]} -\define\titback{\setuplayout[header=.5cm]\setupbackgrounds[page][background=lecbackground]} -\define\picback{\setuplayout[header=.5cm]\setupbackgrounds[page][background={lecbackground,scratchcounter}]} -\define\noback{\setupbackgrounds[page][background=nobackground]} - -%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 The symbol for the first level of itemizations. - -\definesymbol[1][\useMPgraphic{ItSquare}] -\setupitemize[1][color=myred] - -\protect -\stopmodule - -\endinput - diff --git a/Master/tlpkg/tlpsrc/context-taspresent.tlpsrc b/Master/tlpkg/tlpsrc/context-taspresent.tlpsrc deleted file mode 100644 index 8e194d47208..00000000000 --- a/Master/tlpkg/tlpsrc/context-taspresent.tlpsrc +++ /dev/null @@ -1 +0,0 @@ -category ConTeXt |