/usr/share/texmf/tex/latex/chaksem/chaksem.cls is in chaksem 1.7b-5.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | %%% This is a LaTeX2e document class.
%%%
%%% Customization of the `seminar' style for overhead presentations
%%%
%%% Manuel M. T. Chakravarty <chak@cse.unsw.edu.au> [1997..2005]
%%%
%%% This file is free software; you can redistribute it and/or modify
%%% it under the terms of the GNU General Public License as published by
%%% the Free Software Foundation; either version 2 of the License, or
%%% (at your option) any later version.
%%%
%%% This file is distributed in the hope that it will be useful,
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%%% GNU General Public License for more details.
%%%
%%% DOCU ======================================================================
%%%
%%% * `online' option for PostScript that can be used online (otherwise, it is
%%% for printed slides)
%%%
%%% * `paper' for generating a four-up paper version of slides (overlays are
%%% collapsed onto a single page)
%%%
%%% * `helvetica' option for alternative font (is heavier, and thus, usually
%%% better for SVGA LCD projectors)
%%%
%%% * All macros that are meant to be used by user documents (ie, the exported
%%% macros) are having a comment starting with a template of the macro usage.
%%%
%%% Thanks to Aart Middeldorp <ami@is.tsukuba.ac.jp> for improvements.
%%%
%%% TODO ======================================================================
%%%
%%% * \slitemize is a kludge
%%%
%%% * Aart asked for better support for slide* (at least remove the bars or
%%% provide an extra command to remove them)
%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{chaksem}[2006/02/08 v1.7b Chak's Seminar Style]
% Conditional to special case formatting for print versions of slides
%
\newif\ifpaper
\paperfalse
% Pipe options through to the `seminar' style
%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{seminar}}
\DeclareOption{online}{% overlays should accumulate
\special{!tx@Dict begin /BeginOL { dup (all) eq exch TheOL le or { IfVisible
not { Visible /IfVisible true def } if } { IfVisible { Invisible
/IfVisible false def } if } ifelse } def end}%
}
% OLD:
% \DeclareOption{online}{% overlays should accumulate
% \special{!tx@Dict begin /BeginOL { dup (all) eq exch TheOL le or { IfVisible
% not { CP OLUnit T moveto /IfVisible true def } if } { IfVisible { CP
% OLUnit NET moveto /IfVisible false def } if } ifelse } def end}%
% }
\DeclareOption{paper}{%
\AtEndOfClass{\overlaysfalse\articlemag{1}\twoup}
\PassOptionsToClass{article}{seminar}
\papertrue
}
\DeclareOption{avantgarde}{% std font (sans serif)
\renewcommand{\familydefault}{pag}
}
\DeclareOption{helvetica}{% alternative heavier font (sans serif)
\renewcommand{\familydefault}{phv}
}
\ExecuteOptions{avantgarde}
\ProcessOptions
% seminar style including support for overlays
%
\LoadClass[semlayer,semcolor]{seminar}
% Assume a printer driver that is capable to process the landscape special
%
\renewcommand{\printlandscape}{%
\special{landscape}%
\special{! TeXDict begin /landplus90{true}store end }%
}
\RequirePackage{newcent} % as basic font
\RequirePackage{palatino}
\RequirePackage{pifont} % for labels in lists
\RequirePackage{ifthen}
% colours / grey scales
%
\newgray{darkgray}{.55}
\let\dgray=\darkgray
\newgray{bggray}{.8}
\newcmykcolor{dblue}{1 1 0 .3}
\newcmykcolor{dgreen}{1 0 .7 .4}
\newcmykcolor{dorange}{0 .6 .8 .3}
\newcmykcolor{dmagenta}{.3 1 0 0}
\newcmykcolor{lightgreen}{.25 0 .25 0}
%\newcmykcolor{altlightgreen}{.3 0 .1 0}
\newcmykcolor{lightyellow}{0 0 .5 0}
\newcmykcolor{lightblue}{.5 .5 0 .1}
\newcmykcolor{lightmagenta}{.05 .25 0 0}
\newcmykcolor{ultralightgreen}{.12 0 .12 0}
\newcmykcolor{ultralightblue}{.12 .12 0 0}
\newcmykcolor{ultralightred}{0 .12 .12 0}
% Default colours for emphasis and subheadings
%
\let\emcol=\dorange
\let\headcol=\dblue
% Coloured emphasis
%
\newcommand{\Emph}[1]{{\emcol #1}}
% New page style, where the current heading is set in the lower left of all
% slides belonging to the heading
%
% * the lower right corner by default contains the page number, but can be
% replaced by something else (eg, author of the talk) by re-defining
% \thatheading
%
\newpagestyle{withheading}%
{\thismark}{{\sc\thisheading}\hfill{\sc\thatheading}}
\def\thisheading{\toprulecol }
\def\thatheading{\toprulecol \thepage}
\pagestyle{withheading}
% Set footers
%
\newcommand{\setfooter}[1]{\setleftfooter{#1}}
\newcommand{\setleftfooter}[1]{%
\gdef\thisheading{\toprulecol #1}}
\newcommand{\setrightfooter}[1]{%
\gdef\thatheading{\toprulecol#1}}
% \heading[optional text for second line]{Heading text}
%
% Display a heading, which optionally may contain a second line (we can't use
% \\ in a heading text, because the same text is also displayed in the footer)
%
\newcommand{\heading}[2][!*NEVER USED ARGUMENT*!]{%
\ifthenelse{\equal{#1}{!*NEVER USED ARGUMENT*!}}{%
\centerline{\textbf{\textsc{\darkgray\large#2}}}%
\vspace*{.2em}
\par\ignorespaces%
% \setfooter{\botrulecol #2}
\setfooter{#2}
}{%
\begin{center}\textbf{\textsc{\darkgray\large#1\\#2}}\end{center}%
\setfooter{#1\ldots}
}%
}
% OBSOLETE (since v1.2d) -- will go away
%
\newcommand{\headingx}[2]{%
\begin{center}\textbf{\textsc{\darkgray\large#1\\#2}}\end{center}%
\setfooter{#1 #2}}
% \subheading{heading text}
% \subheading*{heading text}
%
% For second level headings (set in small caps and left aligned, followed by a
% colon); the star form is without a colon
%
\newcommand{\subheading}{%
\@ifstar\@subheadingstar\@subheading}
\def\@subheadingstar #1{%
{\hskip0pt{\headcol#1}}}
\def\@subheading #1{%
{\hskip0pt{\headcol#1:}}}
% OBSOLETE (since v2.0a) -- will go away
%
\newcommand{\subheadingx}[1]{%
\textbf{\textsc{\darkgray#1}}}
% \markslide
%
% Mark optional slides with \markslide (they get a star set in the lower right
% corner)
%
\def\thismark{} % here we store the marker
\newcommand{\markslide}{% % mark a slide
\def\thismark{*}} % note: this defines \thismark *locally*
% New slide frame, consisting of two horizontal lines -- above and below the
% main material (this is less heavy than full frames, but still more
% interesting than no frame at all)
%
\let\toprulecol=\black
\let\botrulecol=\black
\newslideframe{bars}{%
\vbox{%
% \centerline{\toprulecol\raise1em\hbox{\rule{\textwidth}{.5pt}}}%
\centerline{\raise1em\hbox{%
{\toprulecol\rule{.05\textwidth}{.5pt}}%
\toprulecol\rule{.9\textwidth}{.5pt}%
{\toprulecol\rule{.05\textwidth}{.5pt}}%
}}%
#1%
% \centerline{\botrulecol\rule{\textwidth}{.5pt}}%
\centerline{%
{\botrulecol\rule{.05\textwidth}{.5pt}}%
\botrulecol\rule{.9\textwidth}{.5pt}%
{\botrulecol\rule{.05\textwidth}{.5pt}}%
}%
}%
}
\slideframe{bars}
% \begin{slitemize}
% \item First thing
% \item Second thing
% ...
% \item Nth thing
% \end{slitemize}
%
% an itemize environment using Zapf's rounded right arrow; the items are set in
% a slightly smaller font with modified spacing
%
\newenvironment{slitemize}{%
\begin{dinglist}{220}%
\small
\vspace*{-.5em}
\setlength{\itemsep}{-.15em}
}{
\end{dinglist}%
\vspace*{-.1em}%
\ignorespaces
}
% \begin{slumerate}
% \item First thing
% \item Second thing
% ...
% \item Nth thing
% \end{slumerate}
%
% an enumerate environment using Zapf's encircled numbers; the items are set in
% a slightly smaller font with modified spacing
%
\newenvironment{slumerate}{%
\begin{dingautolist}{192}%
\small
\vspace*{-.5em}
\setlength{\itemsep}{-.15em}
}{
\end{dingautolist}%
\vspace*{-.1em}%
\ignorespaces
}
% for overlays
%
% \fst{stuff}
% ...
% \nin{stuff}
%
% format stuff for the second, third, and so on overlay
%
\newcommand{\fst}[1]{{\overlay{0}#1}}
\newcommand{\snd}[1]{{\overlay{1}#1}}
\newcommand{\trd}[1]{{\overlay{2}#1}}
\newcommand{\fou}[1]{{\overlay{3}#1}}
\newcommand{\fif}[1]{{\overlay{4}#1}}
\newcommand{\six}[1]{{\overlay{5}#1}}
\newcommand{\sev}[1]{{\overlay{6}#1}}
\newcommand{\eig}[1]{{\overlay{7}#1}}
\newcommand{\nin}[1]{{\overlay{8}#1}}
% \begin{first} stuff \end{first}
% ...
% \begin{ninth} stuff \end{ninth}
%
% overlays for larger chunks of text
%
\newenvironment{first}{%
\bgroup\overlay{0}%
}{%
\egroup\ignorespaces
}
\newenvironment{second}{%
\bgroup\overlay{1}%
}{%
\egroup\ignorespaces
}
\newenvironment{third}{%
\bgroup\overlay{2}%
}{%
\egroup\ignorespaces
}
\newenvironment{fourth}{%
\bgroup\overlay{3}%
}{%
\egroup\ignorespaces
}
\newenvironment{fifth}{%
\bgroup\overlay{4}%
}{%
\egroup\ignorespaces
}
\newenvironment{sixth}{%
\bgroup\overlay{5}%
}{%
\egroup\ignorespaces
}
\newenvironment{seventh}{%
\bgroup\overlay{6}%
}{%
\egroup\ignorespaces
}
\newenvironment{eight}{%
\bgroup\overlay{7}%
}{%
\egroup\ignorespaces
}
\newenvironment{ninth}{%
\bgroup\overlay{8}%
}{%
\egroup\ignorespaces
}
% \beforeafter{overlay}{stuff1}{stuff2}
%
% the third argument in a box of the same size as that used by the second
% argument, but on the overlay specified by the first argument (note that the
% second text does not *replace* the first text, but *overlays* on it)
%
% Example:
% \beforeafter{snd}{stuff}{stuff on second overlay}
%
\makeatletter
\newcommand{\beforeafter}[3]{%
\newif\ifouterm@th
\ifmmode\outerm@thtrue\else\outerm@thfalse\fi
\setbox0=\hbox{\ifouterm@th$#2$\else#2\fi}%
% \unhcopy0\hskip-\wd0% % doesn't work in math mode
#2%
\hskip-\wd0% % this does
\csname\string#1\expandafter\endcsname{#3}%
}
\makeatother
% \fstsnd{stuff1}{stuff2}
% \sndtrd{stuff1}{stuff2}
%
% shorthands for frequent case of \beforeafter
%
\newcommand{\fstsnd}[2]{\fst{\beforeafter{snd}{#1}{#2}}}
\newcommand{\sndtrd}[2]{\snd{\beforeafter{trd}{#1}{#2}}}
\newcommand{\fsttrd}[2]{\fst{\beforeafter{trd}{#1}{#2}}}
% \eraseafter{overlay}{stuff to stroke out}
%
% stroke out in red in overlay specified in the first argument
%
\makeatletter
\newcommand{\eraseafter}[2]{%
\newif\ifouterm@th
\ifmmode\outerm@thtrue\else\outerm@thfalse\fi
\setbox0=\hbox{\ifouterm@th$#2$\else#2\fi}%
% \unhcopy0\hskip-\wd0\hskip-.15ex%
#2\hskip-\wd0\hskip-.15ex%
\csname\string#1\expandafter\endcsname{{%
\red\raise.25em\hbox{\rule{\wd0}{1pt}\rule{.15ex}{1pt}}}}%
}
\makeatother
% \snderase{stuff to stroke out}
%
% stroke out in red in second overlay
%
\newcommand{\snderase}[1]{\eraseafter{snd}{#1}}
% Useful elements
%
% \Therefore
%
% an implication arrow
%
\newcommand{\Therefore}{{\headcol\ding{252}}}
|