diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-24 23:56:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-24 23:56:53 +0000 |
commit | 02cf6ffdaa8b881b16ec2f4554735468ca955852 (patch) | |
tree | 6766d8cbc9acb90e85ad7df77f6a1a544c8fb6ef /Master/texmf-dist/tex/generic/lecturer | |
parent | 2cd5a59ec96a74228a895441724b14a6ac746a7b (diff) |
new generic package lecturer (28jul10)
git-svn-id: svn://tug.org/texlive/trunk@19884 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/lecturer')
-rw-r--r-- | Master/texmf-dist/tex/generic/lecturer/lecturer.sty | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/lecturer/lecturer.tex | 122 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/lecturer/t-lecturer.tex | 24 |
3 files changed, 160 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/lecturer/lecturer.sty b/Master/texmf-dist/tex/generic/lecturer/lecturer.sty new file mode 100644 index 00000000000..7a3328c5dd4 --- /dev/null +++ b/Master/texmf-dist/tex/generic/lecturer/lecturer.sty @@ -0,0 +1,14 @@ +% This is lecturer.sty, a style file to load +% the Lecturer package in LaTeX. Useful information +% can be found in lecturer-doc.pdf +% +% Author: Paul Isambert. +% E-mail: zappathustra AT free DOT fr +% Comments and suggestions are welcome. +% Date: July 2010. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{lecturer}[2010/27/10 v.1.0 Screen presentations with PDF.] +\chardef\formatnumber=4 +\input lecturer.tex +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/generic/lecturer/lecturer.tex b/Master/texmf-dist/tex/generic/lecturer/lecturer.tex new file mode 100644 index 00000000000..9a5fad7258b --- /dev/null +++ b/Master/texmf-dist/tex/generic/lecturer/lecturer.tex @@ -0,0 +1,122 @@ +% This is the Lecturer package. +% Relevant information can be found in lecturer-doc.pdf +% +% Author: Paul Isambert. +% E-mail: zappathustra AT free DOT fr +% Comments and suggestions are welcome. +% Date: July 2010. +% +\ifx\lectureralreadyloaded\undefined + \let\lectureralreadyloaded\relax +\else + \expandafter\endinput +\fi + +\input yax % which input's texapi +\ifdefined\yaxversion + \ifdim\yaxversion pt<1.02pt + \senderror{Lecturer}{I need YaX with version at least 1.02. I quit} + \expandafter\expandafter\expandafter\endinput + \fi +\else + \senderror{Lecturer}{I need YaX with version at least 1.02. I quit} + \expandafter\endinput +\fi +\setcatcodes{\_\@=11} +\def\ltr@error{\senderror{Lecturer}} +\pdfminorversion5 +% +% YAX SETTINGS. +% +\newsyntax#1:#2;{ltr@} +% +% A faster way to restrict those attributes +% that take boolean values. +% +\def\ltr@boolean_attr#1{% + \ltr@restrictattribute #1; true false\par + } +% +% Delete a list of attributes. +% +\newfor\ltr@attribute_deletion{1}#2 {% + \ltr@deleteattribute #1:#2;% + } +% +% Delete an attribute if empty, so being empty +% is equivalent to being undefined. +% +\def\ltr@delete_empty#1{% + \ltr@passvalueand{\iffemptystring}#1;{{\ltr@deleteattribute#1;}}{}% + } +% +% Turn the <value> of those attributes that are supposed to +% be dimensions into \dimexpr(<value>), so that one can +% declare e.g. "5cm-12pt" as a value. +% +\newfor\ltr@todim_loop{1}#2 {% + \nometa\ltr@ifattribute#1:#2; + {\ltr@passvalue{\ltr@todim_trim{#1:#2}}#1:#2;}{}% + } +\def\ltr@todim_trim#1#2{% + \passtrim{#2}{\ltr@todim_do{#1}}% + } +\def\ltr@todim_do#1#2{% + \ltr@setattribute#1; = {\dimexpr(#2)} + } +\def\ltr@gobbletopar#1\par{}% +% GENERAL COMMANDS +% +% Option processing when between brackets [...]. +% Each command where such options occur (\slide, \step...) +% defines a "useatom" and "usepair". +% +\newstring{=} +\def\ltr@option_launchloop#1#2{\ltr@option_loop{#1}{#2,}} +\newfornoempty\ltr@option_loop{1}#2,{% + \ifcontains={#2}{\ltr@option_getpair{#1}#2\ltr@end} + {\passtrim{#2}{\usecs{ltr@#1_useatom}}}% + } +\def\ltr@option_getpair#1#2=#3\ltr@end{% + \passtrim{#3}{\ltr@option_checkquotes{\passtrim{#2}{\usecs{ltr@#1_usepair}}}}% + } +\newstring{"} +\def\ltr@option_checkquotes#1#2{% + \iffprefix"{#2} + {\iffsuffix"{#2}\ltr@option_removequotes}% + #1{#2}% + } +\def\ltr@option_removequotes#1#2#3#4{% + \removeprefixand"{#4}{\ltr@removesuffixand"{#1{#2}{#3}}}% + } +\def\ltr@removesuffixand#1#2#3{\removesuffixand#1{#3}{#2}} +% +% A generic loop on space-separated lists. +\newfornoempty\ltr@space_loop{1}#2 {#1{#2}} +% +% Turns a dimension into a number. +% +\def\ltr@nopt#1{\expandafter\lTr@noPT\the\dimexpr(#1)\relax} +\def\ltr@integer#1{\expandafter\lTr@inTeger\the\dimexpr(#1)\relax} +% Turns TeX english points (72.27 per inch), in which dimensions +% are expressed, into Postscript ones (72 per inch), which PDF understands. +% +\def\ltr@point_convert#1{% + \expandafter\lTr@noPT\the\dimexpr(.996264\dimexpr(#1))\relax\spacecs + } +\let\numexPr\numexpr +{\setcatcodes{pt=12} \gdef\lTr@noPT#1pt{#1} +\gdef\lTr@inTeger#1.#2#3pt{\numexPr(#1#2/10)}} +% +% Here we go. +% +\def\ltr@input#1 {\priminput ltr/ltr@#1.tex } +\ltr@input job +\ltr@input slides +\ltr@input steps +\ltr@input areas +\ltr@input graphics +\ltr@input navigation +\restorecatcodes +\endinput +% Goodbye.
\ No newline at end of file diff --git a/Master/texmf-dist/tex/generic/lecturer/t-lecturer.tex b/Master/texmf-dist/tex/generic/lecturer/t-lecturer.tex new file mode 100644 index 00000000000..a3d2953c8ce --- /dev/null +++ b/Master/texmf-dist/tex/generic/lecturer/t-lecturer.tex @@ -0,0 +1,24 @@ +% This is t-lecturer.tex, a third-party file to load +% the Lecturer package in ConTeXt. Useful information +% can be found in lecturer-doc.pdf +% +% Author: Paul Isambert. +% E-mail: zappathustra AT free DOT fr +% Comments and suggestions are welcome. +% Date: July 2010. +% +%D \module +%D [ file=t-lecturer, +%D version=2010.07.10, +%D title=\CONTEXT\ User Module, +%D subtitle=Lecturer, +%D author=Paul Isambert, +%D date=\currentdate, +%D copyright=Paul Isambert, +%D email=zappathustra@free.fr, +%D license=LaTeX Project Public License] + +\writestatus{loading}{ConTeXt User Module / lecturer} +\chardef\formatnumber=3 +\input lecturer.tex +\endinput |