From c56aa25029863e9caeab9ba58a0714912979ab37 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 13 Jan 2007 19:29:18 +0000 Subject: missed files somehow git-svn-id: svn://tug.org/texlive/trunk@3430 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/seminar/semrot.sty | 80 +++++++++ Master/texmf-dist/tex/latex/seminar/slidesec.sty | 198 +++++++++++++++++++++++ Master/texmf-dist/tex/latex/seminar/xcomment.sty | 192 ++++++++++++++++++++++ 3 files changed, 470 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/seminar/semrot.sty create mode 100644 Master/texmf-dist/tex/latex/seminar/slidesec.sty create mode 100644 Master/texmf-dist/tex/latex/seminar/xcomment.sty (limited to 'Master/texmf-dist/tex/latex/seminar') diff --git a/Master/texmf-dist/tex/latex/seminar/semrot.sty b/Master/texmf-dist/tex/latex/seminar/semrot.sty new file mode 100644 index 00000000000..4b0d400a0d7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/semrot.sty @@ -0,0 +1,80 @@ +%% BEGIN sem-rot.sty +\def\fileversion{1.0} +\def\filedate{93/04/01} +%% +%% LaTeX style option `semrot.sty'. +%% For use with LaTeX v2.09 and the `seminar' document style. +%% +%% COPYRIGHT 1993, by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% +%% The following is just an interface for seminar.sty: +\def\leftsliderotation#1{\@rotate[l]{#1}} +\def\rightsliderotation#1{\@rotate[r]{#1}} +\sliderotation{left} +%% +%% And the rest is rotate.sty, as distributed with Rokicki's dvips. +%% +% These macros allow you to rotate or flip a \TeX\ box. Very useful for +% sideways tables or upsidedown answers. +% +% To use, create a box containing the information you want to rotate. +% (An hbox or vbox will do.) Now call \@rotr\boxnum to rotate the +% material and create a new box with the appropriate (flipped) dimensions. +% \@rotr rotates right, \@rotl rotates left, \@rotu turns upside down, and +% \@rotf flips. These boxes may contain other rotated boxes. +% +\newdimen\@rotdimen +\newbox\@rotbox + +\def\@vspec#1{\special{ps:#1}}% passes #1 verbatim to the output +\def\@rotstart#1{\@vspec{gsave currentpoint currentpoint translate + #1 neg exch neg exch translate}}% #1 can be any origin-fixing transformation +\def\@rotfinish{\@vspec{currentpoint grestore moveto}}% gets back in synch +% +% First, the rotation right. The reference point of the rotated box +% is the lower right corner of the original box. +% +\def\@rotr#1{\@rotdimen=\ht#1\advance\@rotdimen by\dp#1% + \hbox to\@rotdimen{\hskip\ht#1\vbox to\wd#1{\@rotstart{90 rotate}% + \box#1\vss}\hss}\@rotfinish} +% +% Next, the rotation left. The reference point of the rotated box +% is the upper left corner of the original box. +% +\def\@rotl#1{\@rotdimen=\ht#1\advance\@rotdimen by\dp#1% + \hbox to\@rotdimen{\vbox to\wd#1{\vskip\wd#1\@rotstart{270 rotate}% + \box#1\vss}\hss}\@rotfinish}% +% +% Upside down is simple. The reference point of the rotated box +% is the upper right corner of the original box. (The box's height +% should be the current font's xheight, \fontdimen5\font, +% if you want that xheight to be at the baseline after rotation.) +% +\def\@rotu#1{\@rotdimen=\ht#1\advance\@rotdimen by\dp#1% + \hbox to\wd#1{\hskip\wd#1\vbox to\@rotdimen{\vskip\@rotdimen + \@rotstart{-1 dup scale}\box#1\vss}\hss}\@rotfinish}% +% +% And flipped end for end is pretty ysae too. We retain the baseline. +% +\def\@rotf#1{\hbox to\wd#1{\hskip\wd#1\@rotstart{-1 1 scale}% + \box#1\hss}\@rotfinish}% +% +% Now the user interface for LaTeX: \rotate[type]{text} where +% ``type'' is `l' for left, `r' for right, `u' for upside-down, or +% `f' for flip. `l' is the default. +% +\def\rotate{\@ifnextchar[{\@rotate}{\@rotate[l]}} +\def\@rotate[#1]#2{\setbox\@rotbox=\hbox{#2}\@nameuse{@rot#1}\@rotbox} +\endinput +%% END sem-rot.sty diff --git a/Master/texmf-dist/tex/latex/seminar/slidesec.sty b/Master/texmf-dist/tex/latex/seminar/slidesec.sty new file mode 100644 index 00000000000..a7dd283ef22 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/slidesec.sty @@ -0,0 +1,198 @@ +%% BEGIN slidesec.sty +\def\fileversion{v0.9} +\def\filedate{92/05/07} +%% +%% Style option slidesec.sty, for use with LaTeX 2.09 or SliTeX. +%% +%% COPYRIGHT 1992, by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu +%% +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% +% DISCLAIMER: +% +% Someone who actually uses something like this should rewrite it. +% +% DESCRIPTION: +% +% This file contains macros for sections, headings, tables of contents, +% and lists of slides, for slides. It can probably be used with your +% favorite LaTeX slide package (e.g., seminar.sty). +% However: +%% If the counter used to keep track of slides is not slide , +%% then change the following line: +\def\@SCTR{\theslide} +%% +% ACKNOWLEDGEMENTS: +% +% The idea comes from Young U. Ryu's lslides.sty. +% +% USAGE: +% +% \slideheading[#1]{#2} +% * Analogous to \section. +% * [#1] is optional; \slideheading{#1} is same as \slideheading[#1]{#2}. +% * Advances slidesection counter. +% * Sets \theslideheading to #1; can be used, e.g., in headers and footers. +% * Adds #1 to slide contents file. +% * If #2 is non-empty, invokes \makeslideheading{#2} to make a heading. +% Default definition of \makeslideheading is +% \begin{center}\large\bf #2 \end{center} +% but you can redefine this to suit your tastes. +% +% \slidesubheading[#1]{#2} +% * Analogous to \subsection. +% * Like \slideheading, but add "sub" to all the names. +% +% \slideheading and \slidesubheading are meant to be used at most once in +% a slide, but this is not a binding restriction. +% +% You may want to define abbreviated forms. E.g., +% \newcommand{heading}{\slideheading} +% \newcommand{subheading}{\slidesubheading} +% +% \listofslides +% * Analogous to \listoftables. +% +% \slidecontents +% * Analogous to \tableofcontents +% +% \Slidecontents +% * List \slidecontents, but puts some check marks and stuff to +% indicate what you have covered so far and what is coming up. +% Meant to be used in the middle of a presentation. +% +% To change fonts and otherwise customize what you get from \listofslides, +% \slidecontents, and \Slidecontents, you have to hack at the definitions +% of these macros. +% +% BUGS: +% +% These macros have not been tested very much. +% +% IMPLEMENTATION: +% +\@ifundefined{@startlos}{}{\endinput} +\typeout{File `slidesec.sty' \fileversion\space\space + \filedate\space\space } +% +% If we use \@starttoc{los} to read in \jobname.los, then its contents +% are destroyed and we can't read it again. \@startlos is like \@starttoc, +% but it sets the flae \los@flag to 1, and then we add a few commands +% to \enddocument that open \filename.los if \los@flag=1. +% +\def\los@flag{0}% +\def\@startlos{% + \begingroup\makeatletter\@input{\jobname.los}\endgroup + \gdef\los@flag{1}\global\@nobreakfalse} +\newtoks\@temptokenb +\@temptokena{% + \ifnum\los@flag=1\if@filesw + \newwrite\tf@los\immediate\openout\tf@los\jobname.los\relax + \fi\fi} +\expandafter\@temptokenb\expandafter{\enddocument} +\edef\enddocument{\the\@temptokena\the\@temptokenb} +% +\newcounter{slidesection} +\newcounter{slidesubsection} +\def\theslidesection{\arabic{slidesection}} +\def\thesubslidesection{\theslidesection.\arabic{subslidesection}} +% +\def\slideheading{\@dblarg\slide@heading}% +\def\slide@heading[#1]#2{% + \stepcounter{slidesection}% + \addtocontents{los}{\protect\l@slide + {\the\c@slidesection}{\ignorespaces#1}{\@SCTR}}% + \gdef\theslideheading{#1}% + \def\@tempa{#2}% + \ifx\@tempa\@empty\else + {\edef\@currentlabel{\csname p@slidesection\endcsname\theslidesection}% + \makeslideheading{#2}}% + \fi} +\def\slidesubheading{\@dblarg\slide@subheading} +\def\slide@subheading[#1]#2{% + \stepcounter{slidesection}% + \addtocontents{los}{\protect\l@subslide + {\the\c@slidesubsection}{\ignorespaces#1}{\@SCTR}}% + \gdef\theslidesubheading{#1}% + \def\@tempa{#2}% + \ifx\@tempa\@empty\else + {\edef\@currentlabel{\csname p@slidesubsection\endcsname + \theslidesubsection}\makeslideheading{#2}}% + \fi} +\def\theslideheading{}\def\theslidesubheading{} +% +\def\makeslideheading#1{% + \begin{center}\large\bf #1\end{center}} +\def\makeslidesubheading{\makeslideheading} +% +\def\@undottedtocline#1#2#3#4#5{\vskip \z@ plus .2pt + \bgroup + \leftskip #2\relax \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \@tempdima #3\relax \advance\leftskip \@tempdima + \hbox{}\hskip -\leftskip + #4\par + \egroup} +\def\slide@dottedcline{\@dottedtocline{1}{1.5em}{2.3em}} +\def\slide@undottedcline{\@undottedtocline{1}{1.5em}{2.3em}} +\def\slide@cline{\slide@dottedcline} +% +\def\slidenumberline#1{\hbox to\@tempdima{\hss#1\hskip 1em}} +% +\def\listofslides{\section*{List of Slides% + \@mkboth{LIST OF SLIDES}{LIST OF SLIDES}}% + \def\l@slide##1##2##3{% + \slide@undottedcline{\slidenumberline{##3}{##2}}{}}% + \let\l@subslide\l@slide + \@startlos} +% +\def\slidecontents{\@ifstar% + {\def\slide@cline{\slide@undottedcline}\slide@contents}% + {\def\slide@cline{\slide@dottedcline}\slide@contents}} +\def\slide@contents{% + \def\l@slide##1##2##3{% + \slide@cline{\slidenumberline{$\bullet$}{##2}}{##3}}% + \let\l@subslide\@gobbletwo + \@startlos} +% +\def\Slidecontents{\@ifstar% + {\def\slide@cline{\slide@undottedcline}\Slide@contents}% + {\def\slide@cline{\slide@dottedcline}\Slide@contents}} +\def\Slide@contents{% + \def\l@slide##1##2##3{% + \ifcase\lslide@flag + \message{##1 ** \the\c@slidesection} + \ifnum##1>\c@slidesection + \def\lslide@flag{1}{\large\slide@cline{% + \slidenumberline{$\Rightarrow\bullet$}{##2}}{##3}}% + \else + {\large\slide@cline{% + \slidenumberline{$\surd\;\bullet$}{##2}}{##3}}% + \fi + \or + \def\lslide@flag{2}{\large\slide@cline{% + \slidenumberline{$\bullet$}{##2}}{##3}}% + \or + {\large\slide@cline{% + \slidenumberline{$\bullet$}{##2}}{##3}}% + \fi}% + \def\l@subslide##1##2##3{% + \ifnum\lslide@flag=1 + \@undottedtocline{2}{3.8em}{3.2em}{##2}{}% + \fi}% + \def\lslide@flag{0}% + \@startlos} +% +\endinput +%% END slidesec.sty diff --git a/Master/texmf-dist/tex/latex/seminar/xcomment.sty b/Master/texmf-dist/tex/latex/seminar/xcomment.sty new file mode 100644 index 00000000000..a85231d2c00 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/xcomment.sty @@ -0,0 +1,192 @@ +%% +%% This is file `xcomment.sty', generated +%% on <1993/2/17> with the docstrip utility (2.0r). +%% +%% The original source files were: +%% +%% xcomment.doc +%% +\def\fileversion{1.2} +\def\filedate{93/02/12} +%% +%% Style option `xcomment' for use with LaTeX v2.09. +%% This is a style for comment and "inverse" comment environments. +%% +%% COPYRIGHT 1992, 1993 by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu +%% +%% Input file: xcomment.sty. +%% Documented code: xcomment.doc. +%% For printing documentation: xcomment.tex. +%% +%% You may find xcomment.doc and xcomment.tex appended to xcomment.sty. +%% +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% +\@ifundefined{xcomment@@@}{}{\endinput} +\typeout{Style-Option: `xcomment' v\fileversion \space <\filedate> (tvz) } +\def\newxcomment{\@ifnextchar [{\@newxcommentwitharg}% + {\@newxcomment}} +\def\@newxcomment#1{% + \expandafter\def\csname #1\endcsname##1{\@xcomment{#1}{##1}}}% +\def\@newxcommentwitharg[#1]#2{% + \expandafter\def\csname #2\endcsname{\@xcomment{#2}{#1}}} +\newxcomment{xcomment} +\def\envirsep{\par} +\def\rescanfile#1{\def\@rescanfile{#1}} +\rescanfile{\jobname.tmp} +\def\norescanfile{\let\@rescanfile\relax} +\def\@nofloat#1{\hrule height\z@\nobreak\vfill\vbox\bgroup\def\@captype{#1}} +\def\end@nofloat{\egroup\nobreak\vfill\nobreak\hrule height\z@\medbreak} +\def\nofloat#1{\@for\@tempa:=#1\do{\@namedef{#1}{\@nofloat{#1}}% + \@namedef{end#1}{\end@nofloat}}} +\def\xc@makeother#1{% + \ifnum\the\catcode`#1=0\catcode`#112% + \else \ifnum\the\catcode`#1=1\catcode`#112% + \else \ifnum\the\catcode`#1=2\catcode`#112% + \else \ifnum\the\catcode`#1=6\catcode`#112% + \fi\fi\fi\fi\relax} +\newwrite\tokout +\newread\tokin +\def\rescan#1{% + \ifx\@rescanfile\relax\else + \ifx\@rescanfile\@empty #1{}\else + \immediate\openout\tokout=\@rescanfile + \immediate\write\tokout{{\the#1}\relax}% + \immediate\closeout\tokout + \openin\tokin=\@rescanfile + \read\tokin to\@tempd + \closein\tokin + \expandafter#1\@tempd% + \fi\fi} +\def\@xcomment#1#2{% + \ifx\@preamblecmds\@notprerr + \def\xc@csname{#1}% + \edef\xc@envirlist{#2}% + \ifx\xc@envirlist\@empty \@bsphack \else + \begingroup + \def\@envirsep{}% + \@ifundefined{normal@begin}{\let\normal@begin\begin}{}% + \@ifundefined{normal@end}{\let\normal@end\end}{}% + \def\begin##1{\do@begin{##1}\normal@begin{##1}}% + \def\end##1{\normal@end{##1}\do@end}% + \def\do@begin##1{\@ifundefined{##1}{}{\def\do@end{}}}% + \let\do@end\xc@begin + \fi + \let\next\xc@begin + \else + \expandafter\@temptokena\expandafter{\document\@xcomment{@@@}{#2}}% + \edef\document{\the\@temptokena}% + \let\next\relax + \fi + \next} +\def\end@xcomment{\ifx\xc@envirlist\@empty \@esphack \else \endgroup \fi}% +\def\xc@begin{% + \begingroup + \let\do\xc@makeother + \dospecials + \ifx\xcommentchar\@empty\else + \expandafter\catcode\expandafter`\xcommentchar=14 + \fi + \catcode`\^^M\active + \xcomment@} +\def\xcommentchar{\%} +\begingroup +\catcode`\!=12 +\catcode`\[=12 +\catcode`\]=12 +\catcode`\"=12 +\lccode`\!=`\\ +\lccode`\[=`\{ +\lccode`\]=`\} +\lccode`\"=`\% +\catcode`\~=\active +\lccode`\~=`\^^M +\lowercase{ + \gdef\xcomment@#1~{\xcomment@@#1\@nnil!\@nil} + \gdef\xcomment@@#1!{\xcomment@@@} + \gdef\xcomment@@@#1\@nil{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \let\next\xcomment@ + \else + \def\next{\xcomment@@#1\@nil}% + \@testtrue + \xc@checkbegin#1\relax begin[]\relax\relax + \if@test + \xc@checkend#1\relax end[]\relax\relax + \if@test + \xc@checkinput#1\relax input[]\relax\relax + \if@test + \xc@checkinclude#1\relax include[]\relax\relax + \if@test + \xc@checkendinput#1\relax endinputss\relax\relax + \fi\fi\fi\fi\fi + \next} + \gdef\xc@checkbegin#1begin[#2]#3\relax#4\relax{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \def\@tempa{#2}% + \@for\@tempb:=\xc@envirlist\do{% + \ifx\@tempa\@tempb\def\next{\xc@end{#2}#3\@nil}\fi}% + \fi} + \gdef\xc@checkend#1end[#2]#3\relax#4\relax{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \@testfalse + \def\@tempa{#2}\def\@tempb{document}% + \ifx\@tempa\@tempb + \def\next{\endgroup\end@xcomment\end{document}}% + \else + \ifx\@tempa\xc@csname + \def\next{\end@@xcomment{#2}#3\@nil}% + \fi\fi\fi} + \gdef\xc@checkinput#1input[#2]#3\relax#4\relax{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \def\next{\expandafter\xcomment@\@@input #2 \xcomment@@#3\@nil}% + \@testfalse + \fi} + \gdef\xc@checkendinput#1endinput#2#3\relax#4\relax{% + \def\@tempa{#1}% + \ifx\@tempa\@empty\ifcat\noexpand#2a\relax\else + \let\next\endinput + \fi\fi} + \gdef\xc@checkinclude#1include[#2]#3\relax#4\relax{% + \def\@tempa{#1}% + \ifx\@tempa\@empty + \def\next{% + \global\let\xc@savedinput\@@input + \def\@@input{% + \global\let\@@input\xc@savedinput + \expandafter\xcomment@\@@input}% + \include{#2}% + \global\let\@@input\xc@savedinput + \xcomment@@#3\@nil}% + \@testfalse + \fi} + \gdef\end@@xcomment#1#2\@nnil!\@nil{% + \endgroup + \toks@{#2 }\rescan{\toks@}% + \edef\next{\noexpand\end@xcomment\noexpand\end{#1}\the\toks@}% + \next}% + \gdef\xc@end#1#2\@nnil!\@nil{% + \endgroup + \@envirsep \let\@envirsep\envirsep + \toks@{#2 }\rescan{\toks@}% + \edef\next{\noexpand\normal@begin{#1}\the\toks@}% + \next}% + }% END OF LOWERCASE +\endgroup +\endinput +%% +%% End of file `xcomment.sty'. -- cgit v1.2.3