From 86eee27b59637d600f33de8a39048a692a234a64 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 31 Dec 2013 23:20:30 +0000 Subject: seminar git-svn-id: svn://tug.org/texlive/trunk@32529 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/seminar/sem-a4.sty | 10 +- Master/texmf-dist/tex/latex/seminar/sem-dem.sty | 95 ++++++++ Master/texmf-dist/tex/latex/seminar/semcolor.sty | 7 +- Master/texmf-dist/tex/latex/seminar/seminar.bg2 | 22 +- Master/texmf-dist/tex/latex/seminar/seminar.cls | 9 +- Master/texmf-dist/tex/latex/seminar/semlayer.sty | 3 +- Master/texmf-dist/tex/latex/seminar/tvz-code.sty | 291 +++++++++++++++++++++++ Master/texmf-dist/tex/latex/seminar/tvz-hax.sty | 266 +++++++++++++++++++++ Master/texmf-dist/tex/latex/seminar/tvz-user.sty | 215 +++++++++++++++++ 9 files changed, 895 insertions(+), 23 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/seminar/sem-dem.sty create mode 100644 Master/texmf-dist/tex/latex/seminar/tvz-code.sty create mode 100644 Master/texmf-dist/tex/latex/seminar/tvz-hax.sty create mode 100644 Master/texmf-dist/tex/latex/seminar/tvz-user.sty (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/seminar/sem-a4.sty b/Master/texmf-dist/tex/latex/seminar/sem-a4.sty index f366abe2d4d..4a9a4e5b0ce 100644 --- a/Master/texmf-dist/tex/latex/seminar/sem-a4.sty +++ b/Master/texmf-dist/tex/latex/seminar/sem-a4.sty @@ -10,10 +10,12 @@ %% 1999/12/01 or later. %% %% BEGIN sem-a4.sty -\def\paperwidth{210mm} -\def\paperheight{297mm} +%\def\paperwidth{210mm} +%\def\paperheight{297mm} +\paperwidth=210mm +\paperheight=297mm \input sem-page.sty -\slidewidth 222mm -\slideheight 152mm +\slidewidth=222mm +\slideheight=152mm \endinput %% END sem-a4.sty diff --git a/Master/texmf-dist/tex/latex/seminar/sem-dem.sty b/Master/texmf-dist/tex/latex/seminar/sem-dem.sty new file mode 100644 index 00000000000..81af6413ce6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/sem-dem.sty @@ -0,0 +1,95 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% sem-dem.sty --- General utility macros for these Seminar demonstration files +%% +%% Author : Denis GIROU (CNRS/IDRIS - France) +%% Created the : Sun Dec 9 21:49:38 2001 +%% Last mod. by : Denis GIROU (CNRS/IDRIS - France) +%% Last mod. the : Fri Apr 5 21:02:35 2002 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Identification of the file (constant parameters) +\def\FileAuthor{Denis Girou} +\def\FileInfoA{Seminar demonstration files} +\def\FileName{\jobname} + +% Write identification in the PDF file (if one will be generated) +\newcommand{\HyperSetUp}{% +\hypersetup{pdftitle={\FileInfoA{} - \FileInfoB}, + pdfsubject={\FileName{} + [\FileDate{} - Version \FileVersion]}, + pdfauthor={\FileAuthor}, + pdfkeywords={\FileInfoB{} PSTricks Seminar slides}}} + +% Header/footer initialization +\def\SeminarStandardHeaderFooterDemos{% +\date{\HLa{\FileDate}}% +\SeminarStandardHeaderFooter + {\LARGE\HLe{Demonstration of \MakeLowercase{\FileInfoB}}} + {\HLa{\FileInfoA{} -- \FileInfoB}} + {\HLa{Version \FileVersion{} -- }} + {\HLe{\FileAuthor}}} + +\SeminarStandardHeaderFooterDemos + +% General first slide for all the demonstration files +\newcommand{\SeminarFirstSlide}{{% +\SeminarSlideFrameBackground{SeminarBackgroundSolid} +\begin{slide} + \ifx\SeminarPaperVersion\AnswerYes + \else + \vspace*{\stretch{1}} % Due to the special annotation for full screen mode + \fi + + \begin{center} + \psframebox[fillstyle=solid,fillcolor=red,framearc=0.2]{% + \Large\bfseries\color{yellow} + \begin{tabular}{c} + Seminar demonstration files\\ + \setlength{\pst@dimg}{\widthof{Seminar demonstration files}}% + \setlength{\pst@dimh}{\widthof{\FileInfoB}}% + \ifdim\pst@dimg>\pst@dimh + \rule[1mm]{\pst@dimg}{0.6mm}\\ + \else + \rule[1mm]{\pst@dimh}{0.6mm}\\ + \fi + \FileInfoB + \end{tabular}} + + \vspace{1cm} + \psframebox[fillstyle=solid,fillcolor=LightBlue, + framesep=0.2,framearc=0.4]{% + \bfseries + \begin{tabular}{c} + \FileAuthor\\ + \FileDate + \end{tabular}} + + \ifx\SeminarPaperVersion\AnswerYes + \else + \vspace{\stretch{1}} + \hfill% + \rput[br](0.2,0){% + \psframebox[linewidth=0.02,framesep=0.05]{% + \footnotesize\bfseries + \shortstack[l]{% + With Acroread, \textcolor{red}{CTRL-L} switch\\[-1mm] + between full screen and window mode}}} + \fi + \end{center} +\end{slide}}} + +% List of slides +\newcommand{\SeminarListOfSlides}{{% +% Background changing +\ifx\SeminarColorVersion\AnswerYes + \renewcommand{\SeminarBackgroundGradientColorBegin}{PaleGreen}% + \renewcommand{\SeminarBackgroundGradientColorEnd}{green}% + \renewcommand{\SeminarBackgroundGradientAngle}{-90}% + \SeminarSlideFrameBackground{SeminarBackgroundGradient} +\fi +\renewcommand{\slidestretch}{0.7}% We compress the lines +\begin{slide} + \listofslides +\end{slide}}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/seminar/semcolor.sty b/Master/texmf-dist/tex/latex/seminar/semcolor.sty index a98ae7dc905..1aa142e8373 100644 --- a/Master/texmf-dist/tex/latex/seminar/semcolor.sty +++ b/Master/texmf-dist/tex/latex/seminar/semcolor.sty @@ -36,7 +36,8 @@ % RN modification begin -- 2004/05/04; Rolf.Niepraschk@ptb.de %\input{pstricks} \ProvidesFile{semcolor.sty}[\filedate\space v\fileversion\space (tvz)] -\RequirePackage{pstricks} +%\RequirePackage{pstricks} +\RequirePackage{pst-ovl} % RN modification end % % Set up the frame styles: @@ -65,9 +66,9 @@ \def\make@overlay#1{% \setbox\@slidebox=\hbox{% \pst@initoverlay{#1}% - \pst@Verb{(0) BOL}% + \pst@Verb{(0) \tx@BOL}% \copy\@@slidebox - \pst@Verb{(all) BOL}}} + \pst@Verb{(all) \tx@BOL}}} \def\@overlay{\pst@overlay} \addto@hook\before@newslide{\def\curr@overlay{0}} \@ifundefined{overlaystrue}{}{\ifarticle\else\overlaystrue\layerstrue\fi} diff --git a/Master/texmf-dist/tex/latex/seminar/seminar.bg2 b/Master/texmf-dist/tex/latex/seminar/seminar.bg2 index b13ace58d7a..53e545682eb 100644 --- a/Master/texmf-dist/tex/latex/seminar/seminar.bg2 +++ b/Master/texmf-dist/tex/latex/seminar/seminar.bg2 @@ -565,20 +565,20 @@ \pst@initoverlay{#1}% % D.G. modification begin - Dec. 5, 2001 % \pst@Verb{(0) BOL}% - \pst@Verb{0 BOL}% + \pst@Verb{0 \tx@BOL}% % D.G. modification end \copy\@@slidebox % D.G. modification begin - Dec. 5, 2001 % \pst@Verb{(all) BOL}}} - \pst@Verb{-1 BOL}}} + \pst@Verb{-1 \tx@BOL}}} % D.G. modification end % D.G. modification begin - Feb. 15, 2002 % We must redefine too the /BeginOL macro form pstricks.pro, as "all" is now -1 % \def\pst@initoverlay#1{\pst@Verb{\tx@InitOL /TheOL (#1) def}} \def\pst@initoverlay#1{% -\pst@Verb{% -/BeginOL {% +\pst@Verb{ +/BeginOL { dup -1 eq exch TheOL eq or {IfVisible not {Visible /IfVisible true def} @@ -595,17 +595,17 @@ \edef\curr@overlay{#1}% % D.G. modification begin - Dec. 5, 2001 % \pst@Verb{(#1) BOL}% -\pst@Verb{#1 BOL}% +\pst@Verb{#1 \tx@BOL}% % D.G. modification end \aftergroup\pst@endoverlay} \def\pst@endoverlay{% % D.G. modification begin - Dec. 5, 2001 % \pst@Verb{(\curr@overlay) BOL}} -\pst@Verb{\curr@overlay\space BOL}} +\pst@Verb{\curr@overlay\space \tx@BOL }} % D.G. modification end % Cumulative overlays -% °°°°°°°°°°°°°°°°°°° +% =================== % Cumulative overlays, to force to print all preceding ones \def\SeminarCumulativeOverlays{% @@ -681,7 +681,7 @@ /TheOL ##1 def}}} % Generation of the next overlay (minor add-on) -% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°° +% ============================================= % (it increment automatically the number of the current overlay) \newcommand{\SeminarNextOverlay}[1]{% \addtocounter{overlay}{1}% @@ -689,7 +689,7 @@ % To force all items in the various list environments to appear % in their own overlay (minor add-on) -% °°°°°°°°°°°°°°°°°°°° +% ============================================================= \let\itemORIG\item \def\SeminarItemInOverlay{% @@ -698,6 +698,10 @@ \overlay{\the\c@overlay}% \itemORIG}} +%\PassOptionsToPackage{setpagesize=false}{hyperref} + + + \catcode`\@=\TheAtCode\relax \endinput %% END seminar.bg2 diff --git a/Master/texmf-dist/tex/latex/seminar/seminar.cls b/Master/texmf-dist/tex/latex/seminar/seminar.cls index 971f8163533..327c49fe933 100644 --- a/Master/texmf-dist/tex/latex/seminar/seminar.cls +++ b/Master/texmf-dist/tex/latex/seminar/seminar.cls @@ -5,12 +5,8 @@ %% Fixes from David Carlisle, Denis Girou, %% and Frank Küster/Günter Milde (a4paper option fix) %% -%\def\fileversion{1.0} -%\def\filedate{1993/04/01} -%\def\fileversion{1.4} -%\def\filedate{1997/10/13} -\def\fileversion{1.5} -\def\filedate{2008/10/15} +\def\fileversion{1.6} +\def\filedate{2012/12/27} %% %% This is a style for typesetting notes and slides. %% @@ -105,6 +101,7 @@ \let\@listi\@slide@listi} \let\paperheight\sem@paperheight \let\paperwidth\sem@paperwidth +\RequirePackage{pst-ovl}% hv 20131224 \RequirePackage{sem-page} \newtoks\before@document \newtoks\after@document diff --git a/Master/texmf-dist/tex/latex/seminar/semlayer.sty b/Master/texmf-dist/tex/latex/seminar/semlayer.sty index 0afc8df9785..e59f175f582 100644 --- a/Master/texmf-dist/tex/latex/seminar/semlayer.sty +++ b/Master/texmf-dist/tex/latex/seminar/semlayer.sty @@ -84,7 +84,8 @@ \def\theoverlayframe{} \def\overlaylabel{\bf Overlay \theoverlay} \def\layerlabel{\bf Layer \thelayer} -\newcounter{overlay} +\@ifundefined{c@overlay}{\newcounter{overlay}}{}%%% hv 20131224 +%\newcounter{overlay} \def\theoverlay{\theslide-\alph{overlay}} \def\currlayer{} \def\thelayer{\theoverlay-\currlayer} diff --git a/Master/texmf-dist/tex/latex/seminar/tvz-code.sty b/Master/texmf-dist/tex/latex/seminar/tvz-code.sty new file mode 100644 index 00000000000..68a52701aa9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/tvz-code.sty @@ -0,0 +1,291 @@ +%% BEGIN tvz-code.sty +%% 93/04/01 +%% Tim Van Zandt Timothy.VAN-ZANDT@insead.edu +%% +%% Lousy hacks for typesetting the documented code for the +%% +%% 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. +%% +%% seminar.sty and PSTricks packages. + +\input tvz-hax.sty +\input doc.sty % Tested with v1.7k +\input art11.sty + + +%%%%%%%%%%%%%%%%%%% PAGE PARAMETERS %%%%%%%%%%%%%%%%%%%%%%%%%% + +% Paragraphs are marked by space rather than indentation: +\parindent 0pt +\parskip 4pt plus 1pt minus 1pt + +% Textwidth just wide enough for 78 characters of code. +\setbox\@tempboxa=\hbox{\small\tt f} +\textwidth 78\wd\@tempboxa +\oddsidemargin\paperwidth\relax +\advance\oddsidemargin -\textwidth +\divide\oddsidemargin 2 +\advance\oddsidemargin -1in +\setbox\@tempboxa=\hbox{\tiny 999\ } +\advance\oddsidemargin\wd\@tempboxa +\evensidemargin\oddsidemargin + +\if@twoside + \advance\oddsidemargin .3in + \advance\evensidemargin -.3in +\fi + +% No headers, 1in top margin +\topmargin 0pt +\headheight 0pt +\headsep 0pt + +% Total bottom margin 1in, text height 9in +\textheight 9in +\footskip .625in + +% Now adjust for different paper size: +\@tempdima=\paperheight +\advance\@tempdima-11in +\divide\@tempdima 2 +\advance\topmargin \@tempdima + +% Marginal notes always on left. +\marginparwidth 3.5cm +\marginparsep .5cm +\reversemarginpar + + +%%%%%%%%%%%%%%%%%%% MACROCODE PATCH FOR SHORT META %%%%%%%%%%% + +\expandafter\def\expandafter\macrocode\expandafter{% + \expandafter\DeleteShortMeta + \macrocode} + +%%%%%%%%%%%%%%%%%%%% DOC PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newbox\junkbox +\def\DocInput#1{% + \MakePercentIgnore + \setbox\junkbox=\hbox\bgroup + \input{#1}% + \MakePercentComment} +\let\EndDocPreamble\egroup + +%%%%%%%%%%%%%%%%%%%%%%%%%%% VERBATIM %%%%%%%%%%%%%%%%%%%%%%%%% + +% Use fancybox.sty's LVerbatim environment. Each line should contain +% percent plus three spaces (or other char), including blank lines. E.g., +% \begin{LVerbatim} +% foo +% bar +% \end{LVerbatim} + +\def\EveryVerbatimLine#1#2#3#4{} +\begingroup + \catcode`\%=12 + \catcode`\ =\active + \global\EndVerbatimTokens{% } +\endgroup +\AltGetVerbatim + + +%%%%%%%%%%%%%%%%%% INDEXING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Things are faster without \MakeIndex + +\def\MakeIndex{\makeindex\EnableCrossrefs} +\DisableCrossrefs + +% Use \codelabel[int]{foo} to label last line of code plus int. +% E.g., to label first and then last line of some code: +% \codelabel[1]{foo} +% \begin{macrocode} +% foo +% bar +% \end{macrocode} +% \codelabel{foo} + +\def\codelabel{\@ifnextchar[{\@codelabel}{\@codelabel[0]}} +\def\@codelabel[#1]#2{% + \@bsphack + \begingroup + \advance\c@CodelineNo #1 + \def\@currentlabel{\the\c@CodelineNo}% + \label{#2}% + \endgroup + \@esphack} + +% Definitions in code are indexed by page number, but other occurences +% are indexed by the line of code. + +\CodelineIndex +\def\SpecialMainPageIndex#1{% + {\let\special@index\index\SpecialMainIndex{#1}}} +\renewcommand{\theCodelineNo}{{\rm\tiny\arabic{CodelineNo}}} + +% Index numbers for main definitions are set in bold rather than underlined. + +\def\main#1{{\bf #1}} + +% two column index + +\setcounter{IndexColumns}{2} + +% Customize index prologue: + +\def\index@prologue{% + \section*{Index}\markboth{Index}{Index}% + \addcontentsline{toc}{section}{Index}% + The {\bf bold} numbers denote the pages where the entries are defined, + and all other numbers indicate the {\em lines of code} where + the entries are used.} + + +%%%%%%%%%%%%%%%%%%%%%%%%%% MACRO %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% A change to the macro environment; prints macro names within the margins +% of the text, instead of as marginal notes. Use one \macro command, +% with comma separated macro names. + +\newif\iffirst@macroname +\newif\ifnestedmacro + +\def\macro{% + \ifnum\macro@level=\z@ + \def\next{\MakePrivateLetters \m@cro@}% + \else + \def\next{\@latexerr{Nested \string\begin{macro}}\@eha + \endgroup\end{macro}\macro@level=\z@\begin{macro}} + \fi + \next} +\def\m@cro@#1{% + \first@macronametrue + \m@@cro@@#1,\@nil,} +\def\m@@cro@@#1,{% + \def\@tempa{#1}\def\@tempb{\@nil}% + \ifx\@tempa\@tempb + \let\next\finishm@@cro@@ + \else + {\advance\c@CodelineNo\@ne\SpecialMainPageIndex{#1}\nobreak}% + \DoNotIndex{#1}% + \iffirst@macroname + \edef\saved@macronames{\string#1}% + \first@macronamefalse + \else + \def\comma{\noexpand\comma}% + \edef\saved@macronames{\saved@macronames\comma\string#1}% + \fi + \let\next\m@@cro@@ + \fi + \next} +\def\finishm@@cro@@{% + \advance\macro@level\@ne + \def\comma{{\rm, }}% + \ListMacroNames{\saved@macronames}} + +\let\endmacro\relax + +\def\ListMacroNames{% + \@startsection{subsubsection}{3}{\z@}{-2.25ex plus -.5ex minus-.2ex}% + {1.3ex plus.2ex}{\csname reset@font\endcsname\large\tt}*} + +\MacroIndent 0pt + +\def\MacroFont{\small\tt} + + +%%%%%%%%%%%%%%%%%%%%% DoNot Index %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\DoNotIndex{\ ,\!,\[,\\,\],\^,\`,\{,\},\~} +\DoNotIndex{\@warning,\active} +\DoNotIndex{\begingroup,\catcode,\char,\csname,\def,\do} +\DoNotIndex{\docdate,\dospecials,\edef,\else,\endcsname,\endgroup} +\DoNotIndex{\expandafter,\fi,\filedate,\fileversion} +\DoNotIndex{\gdef,\if,\ifcat} +\DoNotIndex{\ifx,\immediate,\lccode,\let} +\DoNotIndex{\lowercase,\next,\noexpand} +\DoNotIndex{\relax,\space,\the} +\DoNotIndex{\toks@,\typeout,\write} +\DoNotIndex{\@M,\@arabic,\@author,\@auxout,\@bsphack,\@car,\@date} +\DoNotIndex{\@dblarg,\@dblfloat,\@eha,\@empty,\@esphack,\@evenfoot} +\DoNotIndex{\@evenhead,\@float,\@gobble,\@gobbletwo,\@gtempa,\@ifnextchar} +\DoNotIndex{\@ifundefined,\@ixpt,\@latexerr,\@listI,\@listi,\@listii} +\DoNotIndex{\@listiii,\@listiv,\@listv,\@listvi,\@makefnmark,\@mkboth} +\DoNotIndex{\@namedef,\@nameuse,\@mne,\@nil,\@normalsize,\@oddfoot} +\DoNotIndex{\@oddhead,\@tempa,\@tempb,\@tempc,\@tempd} +\DoNotIndex{\@tempdima,\@testfalse,\@testtrue,\test@member} +\DoNotIndex{\@thanks,\@thefnmark,\@title} +\DoNotIndex{\@topnum,\@viiipt,\@viipt,\@vipt,\@vpt,\@xiipt} +\DoNotIndex{\@xipt,\@xpt,\@xivpt,\@xviipt,\@xxpt,\@xxvpt} +\DoNotIndex{\addcontentsline} +\DoNotIndex{\advance,\aftergroup,\baselinestretch,\begin} +\DoNotIndex{\belowdisplayshortskip,\belowdisplayskip,\bf,\bgroup} +\DoNotIndex{\box,\c@@page,\c@page,\c@secnumdepth,\clearpage,\columnsep} +\DoNotIndex{\columnwidth,\copy,\dimen@,\dimen@i,\dimen@ii,\divide} +\DoNotIndex{\dp,\ds@article,\ds@notes,\ds@notesonly} +\DoNotIndex{\ds@slidesonly,\egrou,\end,\end@dblfoloat,\end@float} +\DoNotIndex{\endinput,\fnsymbol,\footheight,\footnotesep,\footskip} +\DoNotIndex{\global,\globaldefs,\hbox,\headheight,\headsep,\hfil} +\DoNotIndex{\hrule,\hskip,\hss,\ht,\Huge,\huge} +\DoNotIndex{\if@filesw,\if@test,\if@twocolumn,\if@twoside} +\DoNotIndex{\ifcase,\ifdim,\ifvmode,\ignorespaces} +\DoNotIndex{\input,\interlinepenalty,\itemsep,\ixpt,\label} +\DoNotIndex{\labelsep,\labelwidth,\LARGE,\large,\Large} +\DoNotIndex{\leavevmode,\leftmargin,\leftmargini,\leftmarginii} +\DoNotIndex{\leftmarginiii,\leftmarginiv,\leftmarginv} +\DoNotIndex{\leftmarginvi,\leftmark,\leftskip,\lineskip} +\DoNotIndex{\magstep,\marginparsep,\marginparwidth,\markboth} +\DoNotIndex{\markright,\medbreak,\multiply,\newbox,\newcount} +\DoNotIndex{\newcounter,\newdimen,\newif,\newlabel,\newpage} +\DoNotIndex{\newtoks,\nobreak,\nointerlineskip,\normallineskip} +\DoNotIndex{\normalsize,\null,\number,\numberline,\oddsidemargin} +\DoNotIndex{\offinterlineskip,\or,\par,\parbox,\parskip,\partopsep} +\DoNotIndex{\prevdepth,\protect,\ref,\refstepcounter,\rightmrk} +\DoNotIndex{\rm,\scriptsize,\section,\sectionmark,\setbox,\setcounter} +\DoNotIndex{\sl,\small,\stepcounter,\string,\textheight,\textwidth} +\DoNotIndex{\thefootnote,\thepage,\thesection,\thesubsection} +\DoNotIndex{\thispagestyle,\tiny,\topmargin,\topsep,\uppercase} +\DoNotIndex{\vbox,\vfill,\viiipt,\viipt,\vipt,\vpt,\vskip,\vss} +\DoNotIndex{\wd,\xcommentloaded@,\xdef,\xiipt,\xipt,\xivpt,\xpt} +\DoNotIndex{\xviipt,\xxpt,\xxvpt,\z@} +\DoNotIndex{\abovedisplayskip,\abovedisplayshortskip,\@currentlabel} +\DoNotIndex{\@dottedtocline,\@ne\@setsize,\@starttoc,\@tempboxa,\@} +\DoNotIndex{\arraystretch,\centerline,\egroup,\end@dblfloat} +\DoNotIndex{\evensidemargin,\footnotesize,\ifnum,\parindent,\parsep} +\DoNotIndex{\rightmark,\@afterindenttrue,\@ne,\if@specialpage.\long} +\DoNotIndex{\fboxrule,\fboxsep,\@for,\vfil} +\DoNotIndex{\@@fortmp,\@@tempa,\@@tempb,\@ehd,\@for,\@fortmp,\@m} +\DoNotIndex{\@mparswitchfalse,\@mparswitchtrue,\@nnil,\@spaces} +\DoNotIndex{\@specialstyle,\@temptokena,\@twosidefalse,\@twosidetrue} +\DoNotIndex{\@whilenum,\alph,\arabic,\count@,\errhelp,\errmessage} +\DoNotIndex{\fbox,\index,\minipage,\newcommand,\overfullrule} +\DoNotIndex{\pagestyle,\raggedright,\ref@stepcounter,renewcommand} +\DoNotIndex{\semcolor@loaded,today,\@tempcnta,\@tempcntb,\trivlist,\t,\p} +\DoNotIndex{\today,\item,\@colht,\@currenvir,\@thefoot,\@thehead} +\DoNotIndex{\@totalleftmargin,\allowbreak,\@captype,\@footnotetext} +\DoNotIndex{\@listdepth,\@minipagefalse,\@minipagetrue,\@mpfn,\@mpfootins} +\DoNotIndex{\endtrivlist,\everypar,\hsize,\ifvoid,\lastskip} +\DoNotIndex{\linewidth,\skip,\thempfn,\thempfootnote,\topskip,\unvbox} +\DoNotIndex{\@@input,\@@par,\@acci,\@accii,\@acciii,\@cclv,\@height} +\DoNotIndex{\@maxdepth,\@tempdimb,\@tempg,\@temph,\@texttop,\@twocolumnfalse} +\DoNotIndex{\@xfloat,\addvspace,\alloc@,\bigskipamount,\botmark,\chardef} +\DoNotIndex{\closein,\closeout,\count,\countdef,\dimen,\glossary,\goodbreak} +\DoNotIndex{\insc@unt,\intextsep,\kern,\mag,\marginpar,\maxdepth,\medskip} +\DoNotIndex{\moveleft,\newinsert,\newskip,\onecolumn,\openin,\openout} +\DoNotIndex{\read,\renewcommand,\repeat,\rightskip,\strut,\vfuzz,\voffset} +\DoNotIndex{\vsize} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput + +%% END tvz-code.sty diff --git a/Master/texmf-dist/tex/latex/seminar/tvz-hax.sty b/Master/texmf-dist/tex/latex/seminar/tvz-hax.sty new file mode 100644 index 00000000000..f8a4798fccb --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/tvz-hax.sty @@ -0,0 +1,266 @@ +%% BEGIN tvz-hax.sty +%% 93/04/01 +%% Tim Van Zandt Timothy.VAN-ZANDT@insead.edu +%% +%% These are some lousy hacks for typesetting the code +%% and User's Guide in the Seminar and PSTricks packages. +%% +%% 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. +%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%% PAPER SIZES %%%%%%%%%%%%%%%%%%%%%% + +% Default paper size is 8.5in by 11in. +% Just include the `a4' style option for A4 paper size. +% For other paper sizes, define \paperwidth and \paperheight +% before the \documentstyle command. + +\@ifundefined{paperwidth}{\def\paperwidth{8.5in}}{} +\@ifundefined{paperheight}{\def\paperheight{11in}}{} +\@namedef{ds@a4}{\def\paperwidth{210mm}\def\paperheight{297mm}} + + +%%%%%%%%%%%%%%%%%%%% INPUTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\newif\iftwoup +\@namedef{ds@2up}{\input 2up.tex \twouptrue} + +\input article.sty +\input fancybox.sty % Version 0.93 or later. + +\iftwoup + \if@twoside + \targetlayout{twosided} + \fi +\fi + +\if@twoside + \def\twosideclearpage{% + \clearpage + \ifodd\c@page\else + \thispagestyle{empty}% + \null\leavevmode + \clearpage + \fi} +\else + \let\twosideclearpage\clearpage +\fi + + +%%%%%%%%%%%%%%%%%%%%% MISC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\arraystretch{1.2} + +\hfuzz 1pt + +% Just in case I'm using AmS-LaTeX. +\def\makeatother{\catcode`\@=12\relax} + + +%%%%%%%%%%%%%%%%%%%%%%%%%% SHORT META %%%%%%%%%%%%%%%%%%%%%%%% + +% Works in verbatim environments, unless specially designed. +\begingroup + \catcode`\<=\active + \gdef\ShortMeta{% + \catcode`\<=\active + \def<##1>{{\MetaFont ##1\/}}} +\endgroup +\def\DeleteShortMeta{\catcode`\<=12\relax} +\def\MetaFont{\sl} % For meta arguments. + +%%%%%%%%%%%%%%%%%%%%%%%%%% FILE VERSIONS %%%%%%%%%%%%%%%%%%%%% + +% \GetVersion{file} scans first ten lines of for +% \filedate and \fileversion definitions. +% +% \CheckVersion{file} scans file for \filedate and \fileversion +% and then compares these witha \FileDate and \FileVersion. +% +\def\GetVersion#1{% + \immediate\openin1=#1 + \count@=0 + \let\fileversion\relax + \let\filedate\relax + \@testtrue + \loop + \if@test + \advance\count@1 + \immediate\read1 to \@tempa + \@tempa + \ifnum\count@=10 + \@latexerr{Couldn't find fileversion}\@eha + \@testfalse + \else + \ifx\fileversion\relax + \@testtrue + \else + \ifx\filedate\relax + \@testtrue + \else + \@testfalse + \fi + \fi + \fi + \repeat} + +\def\CheckVersion#1{% + \GetVersion{#1} + \ifx\FileVersion\fileversion + \ifx\FileDate\filedate\else + \@latexerr{Doc date (\FileDate) and file date (\filedate) + do not match}\@eha + \fi + \else + \@latexerr{Doc version (\FileVersion) and file version (\fileversion) + do not match}\@eha + \fi} + +% This expands the date, as defined in \filedate. + +\def\expanddate#1/#2/#3/{% + \number#3{} + \month=#2 + \ifcase\month\or + January \or February \or March \or April \or May \or June \or + July \or August \or September \or October \or November \or December + \fi + 19#1} +\def\thefiledate{\expandafter\expanddate\filedate/} +\date{\thefiledate} + + +%%%%%%%%%%%%%%%%% LOGOS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\AmS{{\protect\the\textfont\tw@ + A\kern-.1667em\lower.5ex\hbox{M}\kern-.125em S}} + +\def\b@LaTeX{% + \begingroup + \csname reset@font\endcsname + \rm\bf + L\kern-.32em + \raise.36ex\hbox{% + \ifx\@currsize\Huge\LARGE\else + \ifx\@currsize\huge\Large\else + \ifx\@currsize\LARGE\large\else + \ifx\@currsize\Large\normalsize\else + \ifx\@currsize\large\small\else + \ifx\@currsize\normalsize\footnotesize\else + \ifx\@currsize\small\scriptsize\else + \ifx\@currsize\footnotesize\scriptscriptsize + \fi\fi\fi\fi\fi\fi\fi\fi + \bf A}% + \kern-.15em + T\kern-.1667em + \lower.7ex\hbox{E}\kern-.125em + X% + \endgroup} +\def\bLaTeX{\b@LaTeX} + + +%%%%%%%%%%%%%%% PAGE STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% The `docheadings' page style uses footers rather than headers. + +\def\ps@docheadings{% + \let\@mkboth\markboth + \def\@oddhead{}% + \let\@evenhead\@oddhead% + \def\@oddfoot{% + \small\sf + \rightmark + \hfil + \thepage}% + \def\@evenfoot{% + \small\sf + \thepage + \hfil + \theheadertitle}% + \def\sectionmark##1{\markright {##1}}}% +\pagestyle{docheadings} + + +%%%%%%%%%%%%%%%%%%%%%%%% Table of Contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Tighten up spacing in TOC: + +\newskip\tempskip +\def\TOCshrink{.5} +\def\TableOfContents{% + \begin{quote} + \begin{center} \Large\bf Contents \end{center} + \def\numberline##1{\hbox to 0pt{\hss##1\hskip 1em}}% + \let\oldaddvspace\addvspace + \def\addvspace##1{% + \tempskip##1\relax + \oldaddvspace{\TOCshrink\tempskip}} + \@starttoc{toc}% + \end{quote}} +\def\tableofcontents{% + \clearpage + \markright{Table of contents}% + \TableOfContents + \clearpage} + + +%%%%%%%%%%%%%%%%%%%%%%%% code and examples %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% `Ex' is an environment for putting samples of code. +% It is a variant of +% \begin{quote}\tt ... \end{quote}. +% It is NOT verbatim. + +\def\NotNested{% + \def\begin##1{% + \@latexerr{Bad nesting of environments. + Perhaps missing \end{\@currenvir}}\@eha + \end{\@currenvir}% + \begin{##1}}} + +\def\Ex{% + \NotNested + \list{}{}\item[]% + \if@minipage\else\vskip\parskip\fi + \leftskip\@totalleftmargin + \rightskip\z@ + \parindent\z@ + \parskip\z@ + \parfillskip\@flushglue + \hfuzz 1pt + \@@par + \global\@inlabelfalse} +\def\endEx{\endlist} + +% Various things to make it easier to write code and examples: + +\begingroup + \catcode`\{=12 \catcode`\}=12 + \catcode`\(=1 \catcode`\)=2 + \catcode`\+=0 \catcode`\\=12 + +gdef+|(\) % \| = character \ + +gdef+{({) % \{ = character { + +gdef+}(}) % \} = character } ++endgroup +\def\Backslash{\protect\|} + +% Define some functional font commands: + +\def\MainFont{\tt} % For macro definitions. +\def\UsageFont{\tt} % For in-line macro names. +\def\InlineFont{\tt} % For other in-line snipets of code. +\def\DisplayFont{\tt} % For displayed code. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput +%% END tvz-hax.sty diff --git a/Master/texmf-dist/tex/latex/seminar/tvz-user.sty b/Master/texmf-dist/tex/latex/seminar/tvz-user.sty new file mode 100644 index 00000000000..f203fa2cf30 --- /dev/null +++ b/Master/texmf-dist/tex/latex/seminar/tvz-user.sty @@ -0,0 +1,215 @@ +%% +%% 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. +%% +%% BEGIN tvz-user.sty +%% 93/04/01 + +\input tvz-hax.sty + +\def\papersizeadjust{% + \@tempdima=\paperwidth\relax + \advance\@tempdima-8.5in + \divide\@tempdima 2 + \advance\oddsidemargin\@tempdima + \advance\evensidemargin\@tempdima + \@tempdima=\paperheight + \advance\@tempdima-11in + \divide\@tempdima 2 + \advance\topmargin\@tempdima} + +\begingroup + \catcode`\"=\active + \gdef\ShortVerb{% + \catcode`\"=\active + \def"{\Verb"}}% + \gdef\DeleteShortVerb{\catcode`\"=12\relax} +\endgroup + +% Paragraphs are marked by large space rather than indentation: +\setlength{\parindent}{0pt} +\setlength{\parskip}{7pt plus 1pt minus 1pt} + +% Reduce \topsep: +\def\@listI{% + \leftmargin\leftmargini + \parsep 5\p@ plus2.5\p@ minus\p@ + %\topsep 10\p@ plus4\p@ minus6\p@ + \topsep 5\p@ plus2\p@ minus2\p@ + \itemsep 5\p@ plus2.5\p@ minus\p@} +\let\@listi\@listI +\@listi +\def\@listii{% + \leftmargin\leftmarginii + \labelwidth\leftmarginii + \advance\labelwidth-\labelsep + %\topsep 5\p@ plus2.5\p@ minus\p@ + \topsep 2\p@ plus.5\p@ minus\p@ + \parsep 2.5\p@ plus\p@ minus\p@ + \itemsep \parsep} +\def\@listiii{% + \leftmargin\leftmarginiii + \labelwidth\leftmarginiii + \advance\labelwidth-\labelsep + %\topsep 2.5\p@ plus\p@ minus\p@ + \topsep 1\p@ plus.2\p@ minus.2\p@ + \parsep \z@ + \partopsep \p@ plus\z@ minus\p@ + \itemsep \topsep} + +\skip\footins 20pt plus 4pt minus 2pt + +%%%%%%%%%%%%%%%%%%%%%%% Special hacks for User's Guides %%%%%%%%%%%%%%%%%%%%% +%% +%% Listing questions +\newcounter{faq}[section] +\def\thefaq{\arabic{faq}} +\let\l@faq\@gobbletwo +\def\faq{\@startsection{faq}{2}{\z@}% + {3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}{\faqfont}} +\def\faqfont{\normalsize\sf} +\def\faqmark#1{} +%% +%% Listing errors +\def\error{\vskip 2ex\noindent} +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\@ifundefined{AmSTeX} + {\def\AmSTeX{\leavevmode\hbox{$\cal A\kern-.2em\lower.376ex% + \hbox{$\cal M$}\kern-.2em\cal S$-\TeX}}}{} +\@ifundefined{BibTeX} + {\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em% + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}}{} +\@ifundefined{SliTeX} + {\def\SliTeX{{\rm S\kern-.06emL\kern-.18em\raise.32ex\hbox + {\sc i}\kern -.03em\TeX}}}{} +\@ifundefined{PlainTeX}{\def\PlainTeX{{\sc Plain}\kern2pt\TeX}}{} + +%%%%%%%%%%%%%%% Special indexing for User's Guides %%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% +\@ifundefined{actualchar}{\def\actualchar{@}}{} +\@ifundefined{quotechar}{\def\quotechar{"}}{} +\@ifundefined{levelchar}{\def\levelchar{!}}{} +\@ifundefined{encapchar}{\def\encapchar{|}}{} +\@ifundefined{verbatimchar}{\def\verbatimchar{+}}{} +%% +%% These are the indexing commands: +%% +%% Commands: \MainIndex \UsageIndex +%% Environments: \MainEnvIndex \UsageEnvIndex +%% Style options: \MainOptionIndex \UsageOptionIndex +%% Counters: \MainCntIndex \UsageCntIndex +\def\@Index#1{\@bsphack\index{#1}\@esphack} +\def\Index#1#2{% + \@bsphack + \index{\expandafter\@gobble\string#2\actualchar\string + \verb\quotechar*\verbatimchar\string#2\verbatimchar + \encapchar #1}} +{\catcode`\!=0 !catcode`!\=12!gdef!special@gobble#1{!if\#1!else#1!fi}} +\def\MainIndex{\Index{main}} +\def\UsageIndex{\Index{usage}} +\def\SpecialIndex#1#2#3{% + \@Index{#3\actualchar{\tt #3} (#1)\encapchar #2}% + \@Index{#1s:\levelchar{\tt #3}\encapchar #2}} +\def\MainEnvIndex{\SpecialIndex{environment}{main}} +\def\UsageEnvIndex{\SpecialIndex{environment}{usage}} +\def\MainOptionIndex{\SpecialIndex{option}{main}} +\def\UsageOptionIndex{\SpecialIndex{option}{usage}} +\def\MainCntIndex{\SpecialIndex{counter}{main}} +\def\UsageCntIndex{\SpecialIndex{counter}{usage}} +%% +%% Font for index page numbers: +\def\main#1{{\bf #1}} +\def\usage#1{{#1}} +%% +%% These combine various functions: +%% +%% Commands: \Main \Usage +%% Environments: \MainEnv \UsageEnv +%% Style options: \MainOption \UsageOption +%% Counters: \MainCnt \UsageCnt +%% +%% The "Main" ones +%% * Index argument. +%% * Print argument with \MainFont +%% * Create label +foo, e+foo or o+foo. +%% +%% The "Usage" ones +%% * Index argument. +%% * Print argument with \UsageFont. +%% +\def\SpecialLabel#1#2+{\label{+#2}} +\def\LabelIndex#1{\MainIndex{#1}\expandafter\SpecialLabel\string#1+} +\def\Main#1{% + \MainIndex{#1}% + \expandafter\SpecialLabel\string#1+% + {\MainFont\string#1}} +\def\Usage#1{\UsageIndex{#1}{\UsageFont\string#1}} +\def\MainEnv#1{% + \MainEnvIndex{#1}% + \label{e+#1}% + {\MainFont #1}} +\def\UsageEnv#1{\UsageEnvIndex{#1}{\UsageFont #1}} +\def\MainOption#1{% + \MainOptionIndex{#1}% + \label{o+#1}% + {\MainFont #1}} +\def\UsageOption#1{\UsageOptionIndex{#1}{\UsageFont #1}} +\def\MainCnt#1{% + \MainCntIndex{#1}% + \label{c+#1}% + {\MainFont #1}} +\def\UsageCnt#1{\UsageCntIndex{#1}{\UsageFont #1}} +%% +%% These are abbreviations. +%% +\def\N{\Main} +\def\n{\Usage} +\def\E{\MainEnv} +\def\e{\UsageEnv} +\def\O{\MainOption} +\def\o{\UsageOption} +\def\C{\MainCnt} +\def\c{\UsageCnt} +%% +%% This is for listing commands in a description environment. +\def\xitem#1{\item[\Main{#1}]} +%% +%% +\renewcommand{\EveryVerbatimLine}[2]{} +\VerbatimFootnotes + +%% User's guide and documented code have different index prologue. +\def\PrintUserIndex{{\let\ps@plain\@empty\@input{\jobname.ind}}} + +\begingroup + \catcode`\<=1 \catcode`\>=2 + \catcode`\{=13 \catcode`\}=12 + \catcode`\[=13 + \gdef\@MD<% + \catcode`\{=13 \catcode`\}=12 \catcode`\[=13 + \def{##1}<\{<\MetaFont ##1\/>\}>% + \def[##1]<\string[<\MetaFont ##1\/>]>> +\endgroup +\def\MD{% + \NotNested + \Ex + \begingroup + \@MD + \def\end{\par\endgroup\end}% + \def\\{\@centercr\Main}% + \MainFont + \Main} +\def\endMD{\endEx} + +\endinput +%% END tvz-user.sty -- cgit v1.2.3