| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
%% sem-dem.sty --- General utility macros for these Seminar demonstration files |
| 3 |
%% |
| 4 |
%% Author : Denis GIROU (CNRS/IDRIS - France) <[email protected]> |
| 5 |
%% Created the : Sun Dec 9 21:49:38 2001 |
| 6 |
%% Last mod. by : Denis GIROU (CNRS/IDRIS - France) <[email protected]> |
| 7 |
%% Last mod. the : Fri Apr 5 21:02:35 2002 |
| 8 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 9 |
|
| 10 |
% Identification of the file (constant parameters) |
| 11 |
\def\FileAuthor{Denis Girou} |
| 12 |
\def\FileInfoA{Seminar demonstration files} |
| 13 |
\def\FileName{\jobname} |
| 14 |
|
| 15 |
% Write identification in the PDF file (if one will be generated) |
| 16 |
\RequirePackage{hyperref} |
| 17 |
\newcommand{\HyperSetUp}{% |
| 18 |
\hypersetup{pdftitle={\FileInfoA{} - \FileInfoB}, |
| 19 |
pdfsubject={\FileName{} |
| 20 |
[\FileDate{} - Version \FileVersion]}, |
| 21 |
pdfauthor={\FileAuthor}, |
| 22 |
pdfkeywords={\FileInfoB{} PSTricks Seminar slides}}} |
| 23 |
|
| 24 |
% Header/footer initialization |
| 25 |
\def\SeminarStandardHeaderFooterDemos{% |
| 26 |
\date{\HLa{\FileDate}}% |
| 27 |
\SeminarStandardHeaderFooter |
| 28 |
{\LARGE\HLe{Demonstration of \MakeLowercase{\FileInfoB}}} |
| 29 |
{\HLa{\FileInfoA{} -- \FileInfoB}} |
| 30 |
{\HLa{Version \FileVersion{} -- }} |
| 31 |
{\HLe{\FileAuthor}}} |
| 32 |
|
| 33 |
\SeminarStandardHeaderFooterDemos |
| 34 |
|
| 35 |
% General first slide for all the demonstration files |
| 36 |
\newcommand{\SeminarFirstSlide}{{% |
| 37 |
\SeminarSlideFrameBackground{SeminarBackgroundSolid} |
| 38 |
\begin{slide} |
| 39 |
\ifx\SeminarPaperVersion\AnswerYes |
| 40 |
\else |
| 41 |
\vspace*{\stretch{1}} % Due to the special annotation for full screen mode |
| 42 |
\fi |
| 43 |
|
| 44 |
\begin{center} |
| 45 |
\psframebox[fillstyle=solid,fillcolor=red,framearc=0.2]{% |
| 46 |
\Large\bfseries\color{yellow} |
| 47 |
\begin{tabular}{c} |
| 48 |
Seminar demonstration files\\ |
| 49 |
\setlength{\pst@dimg}{\widthof{Seminar demonstration files}}% |
| 50 |
\setlength{\pst@dimh}{\widthof{\FileInfoB}}% |
| 51 |
\ifdim\pst@dimg>\pst@dimh |
| 52 |
\rule[1mm]{\pst@dimg}{0.6mm}\\ |
| 53 |
\else |
| 54 |
\rule[1mm]{\pst@dimh}{0.6mm}\\ |
| 55 |
\fi |
| 56 |
\FileInfoB |
| 57 |
\end{tabular}} |
| 58 |
|
| 59 |
\vspace{1cm} |
| 60 |
\psframebox[fillstyle=solid,fillcolor=LightBlue, |
| 61 |
framesep=0.2,framearc=0.4]{% |
| 62 |
\bfseries |
| 63 |
\begin{tabular}{c} |
| 64 |
\FileAuthor\\ |
| 65 |
\FileDate |
| 66 |
\end{tabular}} |
| 67 |
|
| 68 |
\ifx\SeminarPaperVersion\AnswerYes |
| 69 |
\else |
| 70 |
\vspace{\stretch{1}} |
| 71 |
\hfill% |
| 72 |
\rput[br](0.2,0){% |
| 73 |
\psframebox[linewidth=0.02,framesep=0.05]{% |
| 74 |
\footnotesize\bfseries |
| 75 |
\shortstack[l]{% |
| 76 |
With Acroread, \textcolor{red}{CTRL-L} switch\\[-1mm] |
| 77 |
between full screen and window mode}}} |
| 78 |
\fi |
| 79 |
\end{center} |
| 80 |
\end{slide}}} |
| 81 |
|
| 82 |
% List of slides |
| 83 |
\newcommand{\SeminarListOfSlides}{{% |
| 84 |
% Background changing |
| 85 |
\ifx\SeminarColorVersion\AnswerYes |
| 86 |
\renewcommand{\SeminarBackgroundGradientColorBegin}{PaleGreen}% |
| 87 |
\renewcommand{\SeminarBackgroundGradientColorEnd}{green}% |
| 88 |
\renewcommand{\SeminarBackgroundGradientAngle}{-90}% |
| 89 |
\SeminarSlideFrameBackground{SeminarBackgroundGradient} |
| 90 |
\fi |
| 91 |
\renewcommand{\slidestretch}{0.7}% We compress the lines |
| 92 |
\begin{slide} |
| 93 |
\listofslides |
| 94 |
\end{slide}}} |
| 95 |
|
| 96 |
\endinput |