summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/eslides/eslides.sty
blob: eaeaa22cf5787b6a8a92fdb499f80fcc2aaa3604 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
% Save file as: ESLIDES.STY            Source: FILESERV@SHSU.BITNET  
%----------------------(begin of file eslides.sty)-----------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                       %
%        An Easy Way Making Slides With LaTeX                           %
%        (TUGboat, vol. 11, No. 2 (1990), pp. 280-283)                  %
%        by Georg Denk, Mathematisches Institut, TU Muenchen            %
%                                                                       %
%     This small style file makes it easy to produce slides for         %
%     the presentation of an {article} document:                        %
%                                                                       %
%     * adjust the \logo definition for your purpose (see below)        %
%     * add the style option  eslides                                   %
%     * initialize  \magnification (e.g. \magnification{1440})          %
%       and  \conference (e.g. \renewcommand{\conference}{\LaTeX course})
%     * put some \begin{slide} and \end{slide} around the parts you     %
%       want to present as seperate slides                              %
%     * comment out the rest                                            %
%     * run LaTeX                                                       %
%     * print the DVI file with the option "magnify the output"         %
%       (with the same magnification as above)                          %
%                                                                       %
%     NOTE: On some output devices it may be necessary to change the    %
%           order of the \devide and \multiply sequences with the       %
%           \addtolength{..}{-1in} block (e.g. for Textures on the      %
%           Mac). This is due to a non-standard offset (upper-left      %
%           corner of the page for printing and 1 inch below and right  %
%           for LaTeX.                                                  %
%                                                                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\typeout{***** eslides.sty created by G. Denk <5 Feb 1990>}
%
\setlength{\unitlength}{1.cm}
\setlength{\oddsidemargin}{1cm}
\setlength{\evensidemargin}{1cm}
\setlength{\topmargin}{2.0cm}
\setlength{\headheight}{20pt}
\setlength{\headsep}{10pt}
\setlength{\footskip}{10pt}
\setlength{\footheight}{1cm}
\setlength{\textwidth}{19cm}  % DIN A 4:  width of the sheet - 2cm
\setlength{\textheight}{20cm} % DIN A 4:  \textwidth + 1cm
\setlength{\parskip}{10pt}
\setlength{\parindent}{0pt}
%
\newcommand{\magnification}[1]{
    \gdef\mag{#1}    % \gdef, because it may be used for
                     % a \magnification-dependent \def
                     % of \logo
%
    \typeout{}
    \typeout{***** Don't forget: magnification = \mag}
    \typeout{}
%
    \divide\unitlength by \mag
    \multiply\unitlength by 1000
%
    \divide\textwidth by \mag
    \multiply\textwidth by 1000
%
    \divide\textheight by \mag
    \multiply\textheight by 1000
%
    \divide\topmargin by \mag
    \multiply\topmargin by 1000
%
    \divide\evensidemargin by \mag    % only for magnification
    \multiply\evensidemargin by 1000  % by the output device
%
    \divide\oddsidemargin by \mag     % only for magnification
    \multiply\oddsidemargin by 1000   % by the output device
%
%   \newdimen\hilfsdim                      % only for magnification
%   \hilfsdim = 10.5cm % 1/2 of sheet width % by a photocopying
%   \advance\hilfsdim by -\oddsidemargin    % machine
%   \divide\hilfsdim by \magnification      % only for magnification
%   \multiply\hilfsdim by 1000              % by a photocopying
%   \oddsidemargin = 10.5cm                 % machine
%   \advance\oddsidemargin by -\hilfsdim    % only for magnification
%   %                                       % by a photocopying
%   \hilfsdim = 10.5cm                      % machine
%   \advance\hilfsdim by -\evensidemargin   % only for magnification
%   \divide\hilfsdim by \magnification      % by a photocopying
%   \multiply\hilfsdim by 1000              % machine
%   \evensidemargin = 10.5cm                % only for magnification
%   \advance\evensidemargin by -\hilfsdim   % by a photocopying
%                                           % machine
}   %   end \newcommand
%
\addtolength{\oddsidemargin}{-1in}     % used only, if voffset = 1in
\addtolength{\evensidemargin}{-1in}    %               hoffset = 1in
\addtolength{\topmargin}{-1in}         % skip, if voffset = 0, hoffset = 0
%
\newenvironment{slide}%
        {\vspace*{\fill}}%
        {\vspace*{\fill}\clearpage}
%
\newenvironment{remark}%
        {\def\thepage{\rm Remark to \arabic{page}}%
          \addtocounter{page}{-1}%
          \vspace*{\fill}}%
        {\vspace*{\fill}\clearpage%
          \def\thepage{\arabic{page}}}
%
\newcommand{\conference}{ }
%
\def\logo{{\setlength{\unitlength}{1.00mm}
           \divide\unitlength by \mag
           \multiply\unitlength by 1000
           % here you should put something like a \picture-d logo
           % of your university or company or anything you like
}}  % end def \logo
%
\def\ps@myslide{\let\@mkboth\markboth
   \def\@oddfoot{\parbox{\textwidth}%
      {\rule{\textwidth}{0.4pt}\\[-3pt]
       \mbox{}\logo\hfill\scriptsize\conference\hfill\scriptsize\thepage}}%
   \def\@oddhead{\parbox{\textwidth}%
      {\hbox{}\hfill\small\rightmark\hfill\hbox{}\\[-5pt]
       \rule{\textwidth}{0.4pt}}}%
   \def\@evenfoot{\parbox{\textwidth}%
      {\rule{\textwidth}{0.4pt}\\[-3pt]
       \mbox{}\logo\hfill\scriptsize\conference\hfill\scriptsize\thepage}}%
   \def\@evenhead{\parbox{\textwidth}%
      {\hbox{}\hfill\small\rightmark\hfill\hbox{}\\[-5pt]
       \rule{\textwidth}{0.4pt}}}%
   \def\sectionmark##1{}\def\subsectionmark##1{}}


%------------------------(end of file)----------------------------------------