summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/seminar/sem-dem.sty
blob: e671c22498dfeaa176b292176af30642643c145f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sem-dem.sty --- General utility macros for these Seminar demonstration files
%%
%% Author          : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou@idris.fr>
%% Created the     : Sun Dec  9 21:49:38 2001
%% Last mod. by    : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou@idris.fr>
%% 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)
\RequirePackage{hyperref}
\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