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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
|
%% land-sample-slide.tex
%% Copyright 2013 Behzad Salimi
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Behzad Salimi
% sites.google.com/site/quadratures
%
% This work consists of the files:
%
% land-sample-slide.pdf
% land-sample-slide.tex
% port-sample-slide.pdf
% port-sample-slide.tex
% sslides.cls
\documentclass{sslides}
\usepackage{graphics}
\addtolength{\topmargin}{-15mm}
\setlength{\textheight}{7.00in}
\setlength{\textwidth}{9.50in}
\setlength{\oddsidemargin}{-0.25in}
% \addtolength{\headheight}{4mm}
% \setlength\evensidemargin{0mm}
% \setlength{\parindent}{0mm}
% \addtolength{\parskip}{2mm}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\newcommand{\foot}[1]{\footnote{#1}%
\ifthenelse{\value{footnote}=9}{\setcounter{footnote}{0}}{}}
\newsavebox{\tl}
\newcommand{\topleft}[1]{\savebox{\tl}{\tiny #1}}
\newcommand{\tleft}{\usebox{\tl}}
\newsavebox{\tc}
\newcommand{\topcenter}[1]{\savebox{\tc}{\tiny #1}}
\newcommand{\tcenter}{\usebox{\tc}}
\newsavebox{\tr}
\newcommand{\topright}[1]{\savebox{\tr}{\tiny #1}}
\newcommand{\tright}{\usebox{\tr}}
\newsavebox{\bl}
\newcommand{\footleft}[1]{\savebox{\bl}{\tiny #1}}
\newcommand{\bleft}{\usebox{\bl}}
\newsavebox{\bc}
\newcommand{\footcenter}[1]{\savebox{\bc}{\tiny #1}}
\newcommand{\bcenter}{\usebox{\bc}}
% \newsavebox{\br}
% \newcommand{\footright}[1]{\savebox{\br}{\tiny #1}}
% \newcommand{\bright}{\usebox{\br}}
% uncomment above three lines to use \footright{}
% Use this portion to create any header or footer style.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\oddh{%
\parbox[t]{\textwidth}{%
{\makebox[10mm][l]{\tleft}\hfill\makebox[10mm][c]{\tcenter}
\hfill\makebox[10mm][r]{\tright}}\\[-9mm]
\makebox[0mm]{\ }\hrulefill}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\oddf{\parbox[b]{\textwidth}{\hrulefill\vspace{-5mm}\newline%
{\makebox[10mm][l]{\bleft}\hfill\makebox[10mm][c]{\bcenter}\hfill
\makebox[10mm][r]{\tiny\theslide}}}}
% \makebox[10mm][r]{\bright}}}} % replace with the line above,
% then use \footright{...} for a fixed field in the right footer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% commands to set header/footer:
% \topleft{}
% \topcenter{}
% \topright{}
% \footleft{}
% \footcenter{}
% \footright{}
% \onlyslides{3}
\begin{document}
\begin{slide}
\thispagestyle{empty}
\begin{center}
{\large\LaTeX\\
Slide Class\\
with\\
Header and Footer}\\[7mm]
\normalfont\normalsize
Behzad Salimi\\[1mm]
{\small sites.google.com/site/quadratures}
\end{center}
\
\centerline{Abstract}
\vspace{-7mm}
A simple slide ``documentclass" to use the standard \LaTeX\
slide class with the added option of including header and footer.
\end{slide}
\topleft{\raisebox{1mm}{\LaTeX}}
\topcenter{sslides class}
\topright{\today}
\footleft{sites.google.com/site/quadratures}
% \footcenter{x}
%\footright{\theslide} % this position is reserved to advance page number
\begin{slide}
\centerline{\textbf{\LaTeX\ slides with header/footer}}
The standard \LaTeX\ {\tt slide} class offers a very clean, sharp
and easy-to-read font for slides. However, the standard class does
not have a provision for including header and footer on slides.
The slide class {\tt sslides} allows creation of arbitrary header
and footer while preserving all of the functionality of the
standard {\tt slide} class.
\LaTeX\ code can be used to generate any header and footer. The
{\tt .tex} file for this manual provides a simple example of
creating a template to independently specify the left-, center-,
or right-region of both header and footer.
% In the example file, the right footer region is reserved for page number, but this can
% be easily changed.
\end{slide}
\topcenter{Example Slide}
% \footcenter{Example Slide}
\begin{slide}
\centerline{\textbf{How to use}}
Copy the class file {\tt sslides.cls}
% (that came with this package)
in a directory visible to \LaTeX, for example, the current
directory where the slide file is run. The following two commands
in the slide input file generate header and footer:\\
{\small\verb+\oddh{ . . . }+\hfill
{\footnotesize generates text/objects in the header;}\\
\verb+\oddf{ . . . }+\hfill
{\footnotesize generates text/objects in the footer}.}\\
The header/footer specified will show on all slides until they are
changed.
\
\centerline{\textbf{Example}}
{\small
\begin{verbatim}
\documentclass{sslides}
\oddh{ header field }
\oddf{ footer field }
\begin{slide}
. . . body of slide . . .
\end{slide}
\end{document}
\end{verbatim}
}
\end{slide}
\end{document}
|