| 1 |
% \iffalse meta-comment |
| 2 |
% !TEX program = pdfLaTeX |
| 3 |
% |
| 4 |
%<*internal> |
| 5 |
\iffalse |
| 6 |
%</internal> |
| 7 |
% |
| 8 |
%<*exampletex> |
| 9 |
\documentclass[a4paper,openright,parskip=half-]{semproc} |
| 10 |
\addglobalbib{example.bib} |
| 11 |
\usepackage[ngerman,english]{babel} |
| 12 |
\begin{document} |
| 13 |
\author{Max Mustermann} |
| 14 |
\title{Example} |
| 15 |
\maketitle |
| 16 |
\globaltoc |
| 17 |
\chapter{Introduction} |
| 18 |
This document serves as an example for the \verb|semproc| class. |
| 19 |
|
| 20 |
The reader should note that this introduction, which is typeset as a |
| 21 |
\verb|\chapter| shows up in the table of contents. However, the numbering scheme |
| 22 |
of talks and chapters is confusing at best. \verb|semproc| therefore offers a |
| 23 |
macro \verb|\nonumchapter| for unnumbered chapters that show up in the table of |
| 24 |
contents and may be used e.\,g.\ for introductions as in the following second |
| 25 |
introduction. |
| 26 |
|
| 27 |
\nonumchapter{Second Introduction} |
| 28 |
This is a second introduction with no number but still showing up in the table |
| 29 |
of contents. |
| 30 |
|
| 31 |
\talk[speaker={Donald Knuth}]{Notation} |
| 32 |
\begin{summary} |
| 33 |
This could be a manuscript for a talk entitled ``Notation'' given by |
| 34 |
Donald Knuth at Stanford university. A video recording is available at |
| 35 |
\cite{video}. |
| 36 |
\end{summary} |
| 37 |
\localtoc |
| 38 |
\section{Introduction} |
| 39 |
An introduction could go here. |
| 40 |
\section{Examples of Notation} |
| 41 |
\subsection{Notation for integrals} |
| 42 |
One could compare Leibniz' and Newton's notation for integrals as Knuth does in |
| 43 |
his talk. |
| 44 |
\subsection{Frege's Grundgesetze} |
| 45 |
Even if Knuth does not talk about the notation in \citeauthor{frege}'s |
| 46 |
\cite{frege}, there is even a paper~\cite{onfrege} on it. |
| 47 |
\section{Outlook} |
| 48 |
A final section with final words. |
| 49 |
\localbib |
| 50 |
|
| 51 |
\talk[speaker={Somebody},notes={Somebody else}]{On Something} |
| 52 |
\begin{summary} |
| 53 |
Some Summary |
| 54 |
\end{summary} |
| 55 |
\localtoc |
| 56 |
\section{Section A} |
| 57 |
\section{Section B} |
| 58 |
|
| 59 |
\selectlanguage{ngerman} |
| 60 |
\talk[speaker={Hans}]{\"Uber etwas Wichtiges} |
| 61 |
\begin{summary} |
| 62 |
Hier sieht man, dass \verb|semproc| an andere Sprachen, wie zum Beispiel |
| 63 |
\verb|ngerman| angepasst werden kann. Momentan werden aber nur \verb|english| |
| 64 |
und \verb|ngerman| unterstützt. |
| 65 |
\end{summary} |
| 66 |
\end{document} |
| 67 |
%</exampletex> |
| 68 |
%<*examplebib> |
| 69 |
@article{onfrege, |
| 70 |
AUTHOR = {Green, J. J. and Rossberg, Marcus and Ebert, Philip A.}, |
| 71 |
TITLE = {The convenience of the typesetter; notation and typography in |
| 72 |
{F}rege's {\itshape {G}rundgesetze der {A}rithmetik}}, |
| 73 |
JOURNAL = {Bull. Symb. Log.}, |
| 74 |
VOLUME = {21}, |
| 75 |
YEAR = {2015}, |
| 76 |
NUMBER = {1}, |
| 77 |
PAGES = {15--30}, |
| 78 |
ISSN = {1079-8986}, |
| 79 |
DOI = {10.1017/bsl.2015.5}, |
| 80 |
} |
| 81 |
@book {frege, |
| 82 |
AUTHOR = {Frege, G.}, |
| 83 |
TITLE = {Grundgesetze der {A}rithmetik. {B}and {I}, {II}}, |
| 84 |
PUBLISHER = {Georg Olms Verlagsbuchhandlung, Hildesheim}, |
| 85 |
YEAR = {1962}, |
| 86 |
PAGES = {Vol. I, xxxii+254 pp.; Vol. II, xvi+266}, |
| 87 |
} |
| 88 |
@misc {video, |
| 89 |
AUTHOR = {Donald Knuth}, |
| 90 |
TITLE = {Notation}, |
| 91 |
URL = {https://goo.gl/f122V5} |
| 92 |
} |
| 93 |
%</examplebib> |
| 94 |
%<*readme> |
| 95 |
---------------------------------------------------------------- |
| 96 |
semproc --- LaTeX class for seminar proceedings |
| 97 |
E-mail: [email protected] |
| 98 |
Released under the LaTeX Project Public License v1.3c or later |
| 99 |
See http://www.latex-project.org/lppl.txt |
| 100 |
---------------------------------------------------------------- |
| 101 |
|
| 102 |
This class provides some means for typesetting seminar proceedings based on |
| 103 |
KOMA-Script's scrreprt class and etoc: It offers an alternative to \chapter that |
| 104 |
typesets the speaker and if necessary the typist of the notes for the talk in |
| 105 |
question. Moreover, the class provides two types of table of contents. A global |
| 106 |
table of contents showing only the talks of the seminar and the respective |
| 107 |
speakers and a local table of contents for each talk showing the sections and |
| 108 |
subsections of the respective talk. |
| 109 |
%</readme> |
| 110 |
% |
| 111 |
%<*internal> |
| 112 |
\fi |
| 113 |
\def\nameofplainTeX{plain} |
| 114 |
\ifx\fmtname\nameofplainTeX\else |
| 115 |
\expandafter\begingroup |
| 116 |
\fi |
| 117 |
%</internal> |
| 118 |
% |
| 119 |
%<*install> |
| 120 |
\input docstrip.tex |
| 121 |
\keepsilent |
| 122 |
\askforoverwritefalse |
| 123 |
\preamble |
| 124 |
---------------------------------------------------------------- |
| 125 |
semproc --- LaTeX class for seminar proceedings |
| 126 |
E-mail: [email protected] |
| 127 |
Released under the LaTeX Project Public License v1.3c or later |
| 128 |
See http://www.latex-project.org/lppl.txt |
| 129 |
---------------------------------------------------------------- |
| 130 |
|
| 131 |
\endpreamble |
| 132 |
\postamble |
| 133 |
|
| 134 |
Copyright (C) 2015 by Tobias Columbus <[email protected]> |
| 135 |
|
| 136 |
This work may be distributed and/or modified under the |
| 137 |
conditions of the LaTeX Project Public License (LPPL), either |
| 138 |
version 1.3c of this license or (at your option) any later |
| 139 |
version. The latest version of this license is in the file: |
| 140 |
|
| 141 |
http://www.latex-project.org/lppl.txt |
| 142 |
|
| 143 |
This work is "maintained" (as per LPPL maintenance status) by |
| 144 |
Tobias Columbus. |
| 145 |
|
| 146 |
This work consists of the files semproc.dtx |
| 147 |
and the derived files semproc.ins, |
| 148 |
semproc.pdf, |
| 149 |
semproc.cls, |
| 150 |
example.tex, |
| 151 |
example.bib, |
| 152 |
example.pdf |
| 153 |
|
| 154 |
\endpostamble |
| 155 |
\usedir{tex/latex/semproc} |
| 156 |
\generate{ |
| 157 |
\file{\jobname.cls}{\from{\jobname.dtx}{class}} |
| 158 |
} |
| 159 |
%</install> |
| 160 |
%<install>\endbatchfile |
| 161 |
% |
| 162 |
%<*internal> |
| 163 |
\usedir{source/latex/semproc} |
| 164 |
\generate{ |
| 165 |
\file{\jobname.ins}{\from{\jobname.dtx}{install}} |
| 166 |
} |
| 167 |
\generate{ |
| 168 |
\file{example.tex}{\from{\jobname.dtx}{exampletex}} |
| 169 |
} |
| 170 |
\generate{ |
| 171 |
\file{example.bib}{\from{\jobname.dtx}{examplebib}} |
| 172 |
} |
| 173 |
\nopreamble\nopostamble |
| 174 |
\usedir{doc/latex/semproc} |
| 175 |
\generate{ |
| 176 |
\file{README.txt}{\from{\jobname.dtx}{readme}} |
| 177 |
} |
| 178 |
\ifx\fmtname\nameofplainTeX |
| 179 |
\expandafter\endbatchfile |
| 180 |
\else |
| 181 |
\expandafter\endgroup |
| 182 |
\fi |
| 183 |
%</internal> |
| 184 |
% |
| 185 |
%<*driver> |
| 186 |
\ProvidesFile{\jobname.dtx} |
| 187 |
%</driver> |
| 188 |
%<class>\NeedsTeXFormat{LaTeX2e} |
| 189 |
%<class>\ProvidesClass{semproc} |
| 190 |
%<*class> |
| 191 |
[2015/06/15 v0.1 LaTeX class for seminar proceedings] |
| 192 |
%</class> |
| 193 |
% |
| 194 |
%<*driver> |
| 195 |
\documentclass{ltxdoc} |
| 196 |
\usepackage[T1]{fontenc} |
| 197 |
\usepackage{lmodern} |
| 198 |
\usepackage[numbered]{hypdoc} |
| 199 |
\usepackage{listings} |
| 200 |
\usepackage{xcolor} |
| 201 |
\usepackage{tabularx} |
| 202 |
\parindent=0em |
| 203 |
\parskip=0.5ex |
| 204 |
\lstset{ |
| 205 |
basicstyle=\small\ttfamily, |
| 206 |
language=[LaTeX]TeX, |
| 207 |
} |
| 208 |
\EnableCrossrefs |
| 209 |
\CodelineIndex |
| 210 |
\RecordChanges |
| 211 |
\begin{document} |
| 212 |
\DocInput{\jobname.dtx} |
| 213 |
\end{document} |
| 214 |
%</driver> |
| 215 |
% \fi |
| 216 |
% |
| 217 |
%\GetFileInfo{\jobname.dtx} |
| 218 |
% |
| 219 |
%\title{ |
| 220 |
% \textsf{semproc} --- LaTeX class for seminar proceedings\thanks{ |
| 221 |
% This file describes version \fileversion, last revised \filedate. |
| 222 |
% } |
| 223 |
%} |
| 224 |
%\author{ |
| 225 |
% Tobias Columbus\thanks{E-mail: [email protected]} |
| 226 |
%} |
| 227 |
%\date{Released \filedate} |
| 228 |
% |
| 229 |
%\maketitle |
| 230 |
% |
| 231 |
%\changes{v0.1}{2015/06/15}{First public release} |
| 232 |
% |
| 233 |
% \section{Documentation} |
| 234 |
% The class |semproc| is derived from KOMA-Script's class |scrreprt|. In |
| 235 |
% addition to |scrreprt|'s many features, it provides |\talk| as an alternative |
| 236 |
% to the |\chapter| command and some means to have a table of contents and a |
| 237 |
% bibliography for each such |\talk|. Currently, |semproc| supports German and |
| 238 |
% English. |
| 239 |
% |
| 240 |
% \subsection{Macros} |
| 241 |
% |
| 242 |
% \DescribeMacro{\talk} |\talk| \oarg{speaker=\{Speaker\},notes=\{Typist\}} |
| 243 |
% \marg{title} starts a new talk with title \meta{title}, speaker \meta{Speaker} |
| 244 |
% and typist \meta{Typist}. The |\talk| macro also starts a new |
| 245 |
% |biblatex|-refsection. |
| 246 |
% |
| 247 |
% \DescribeMacro{\globaltoc} |\globaltoc| typesets a global table of contents |
| 248 |
% consisting of the various talks and its speakers. |
| 249 |
% |
| 250 |
% \DescribeMacro{\localtoc} |\localtoc| typesets a local table of contents |
| 251 |
% consisting of the sections and subsections in the current talk. |
| 252 |
% |
| 253 |
% |
| 254 |
% \DescribeMacro{\localbib} |\localbib| typesets a bibliography for the current |
| 255 |
% talk. |
| 256 |
% |
| 257 |
% \DescribeMacro{\nonumchapter} |\nonumchapter| \marg{title} starts a new |
| 258 |
% unnumbered |\chapter*| with \meta{title} but makes sure the chapter occurs in |
| 259 |
% the global table of contents. More precisely, |\nonumchapter| is just a |
| 260 |
% wrapper around |\chapter*| and |\etoctoccontentsline*|. |
| 261 |
% |
| 262 |
% \subsection{Environments} |
| 263 |
% |
| 264 |
% \DescribeEnv{summary} The |summary| environment is a drop-in |
| 265 |
% replacement for the |abstract| environment. |
| 266 |
% |
| 267 |
% \subsection{Customization} |
| 268 |
% |semproc| allows for customization of the fonts used in the heading of a talk |
| 269 |
% and in the local and global table of contents. The fonts may be customized |
| 270 |
% with |\setkomafont| or |\addtokomafont| as described in the documentation of |
| 271 |
% KOMA-Script. All fonts are shown in table~\ref{table:fonts}. |
| 272 |
% \begin{table} |
| 273 |
% \begin{tabularx}{\textwidth}{lXX} |
| 274 |
% Font & Usage & Default \\\hline |
| 275 |
% talkhead & Font of the head of a talk heading, i.\,e.\ the line |
| 276 |
% ``Talk~3''. & |\usekomafont{disposition}| |\usekomafont{section}| \\ |
| 277 |
% talktitle & Font of the title of a talk & |
| 278 |
% |\usekomafont{disposition}| |\usekomafont{chapter}| \\ |
| 279 |
% talkspeakers & Font of the speaker and typist of a talk & |
| 280 |
% |\usekomafont{disposition}| \\\\ |
| 281 |
% globaltocspeaker & Speaker in an entry in the global table of contents & |
| 282 |
% |\sffamily| \\ |
| 283 |
% globaltocnumber& Number of an entry in the global table of contents & |
| 284 |
% |\usekomafont{disposition}| \\ |
| 285 |
% globaltoctitle& Title of an entry in the global table of contents & |
| 286 |
% |\usekomafont{disposition}| \\ |
| 287 |
% globaltocpage& Page number of an entry in the global table of contents & |
| 288 |
% |\usekomafont{disposition}| \\\\ |
| 289 |
% localtocheading & Heading of the local table of contents |
| 290 |
% typeset with |\localtoc| & |\usekomafont{disposition}| \\ |
| 291 |
% localtocnumber & Number of an entry in the local table of contents & |
| 292 |
% |\sffamily| \\ |
| 293 |
% localtoctitle& Title of an entry in the local table of contents & |
| 294 |
% |\sffamily| \\ |
| 295 |
% localtocpage & Page number of an entry in the local table of contents & |
| 296 |
% |\sffamily| \\\\ |
| 297 |
% summaryheading & Font for the heading of a |summary| environment & |
| 298 |
% |\usekomafont{disposition}| |
| 299 |
% \end{tabularx} |
| 300 |
% \caption{Fonts that can be customized.}\label{table:fonts} |
| 301 |
% \end{table} |
| 302 |
% |
| 303 |
% \subsection{Packages} |
| 304 |
% |semproc| loads the following packages: |xkeyval|, |xcolor| |etoc|, |
| 305 |
% |hyperref|, |bookmark|, |etoolbox|, |biblatex| and |csquotes|. Moreover, it |
| 306 |
% passes the option |dvipsnames| to the package |xcolor|, which is loaded |
| 307 |
% automatically by hyperref. For the precise arguments to these packages, the |
| 308 |
% reader is referred to the implementation. |
| 309 |
% |
| 310 |
% Note however, that bibliographies should be typeset using |biblatex| as |
| 311 |
% opposed to |bibtex|. |
| 312 |
% |
| 313 |
% \subsection{Example} |
| 314 |
% An example can be found in the file |example.tex|. |
| 315 |
% |
| 316 |
%\StopEventually{ |
| 317 |
% \PrintChanges |
| 318 |
% \PrintIndex |
| 319 |
%} |
| 320 |
% |
| 321 |
% |
| 322 |
% \section{Implementation} |
| 323 |
% \begin{macrocode} |
| 324 |
%<*class> |
| 325 |
% \end{macrocode} |
| 326 |
% |
| 327 |
%\begin{macro}{scrreprt} |
| 328 |
% Load |scrreprt| and pass all options to |scrreprt|. |
| 329 |
% \begin{macrocode} |
| 330 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} |
| 331 |
\ProcessOptions\relax |
| 332 |
\LoadClass{scrreprt} |
| 333 |
% \end{macrocode} |
| 334 |
%\end{macro} |
| 335 |
% |
| 336 |
%\begin{macro}{Packages} |
| 337 |
% We load |xkeyval| for processing the names of the speaker/typist of each talk. |
| 338 |
% \begin{macrocode} |
| 339 |
\RequirePackage{xkeyval} |
| 340 |
% \end{macrocode} |
| 341 |
% We load |xcolor| and pass option |dvipsnames| as we set |RoyalBlue| as default |
| 342 |
% colour for all links. |
| 343 |
% \begin{macrocode} |
| 344 |
\PassOptionsToPackage{dvipsnames}{xcolor} |
| 345 |
\RequirePackage{xcolor} |
| 346 |
% \end{macrocode} |
| 347 |
% We load |etoc| for creating the macros for the local table of contents per |
| 348 |
% talk and the global table of contents. |
| 349 |
% \begin{macrocode} |
| 350 |
\RequirePackage{etoc} |
| 351 |
% \end{macrocode} |
| 352 |
% We load |hyperref| for references. Option |hypertexnames| must be set to |
| 353 |
% |false|, otherwise referencing the talks is buggy -- at least the last time I |
| 354 |
% tried. |
| 355 |
% \begin{macrocode} |
| 356 |
\RequirePackage% |
| 357 |
[unicode=true,colorlinks=true,hypertexnames=false] |
| 358 |
{hyperref} |
| 359 |
\RequirePackage{bookmark} |
| 360 |
\hypersetup{allcolors={RoyalBlue}} |
| 361 |
% \end{macrocode} |
| 362 |
% We load |etoolbox| for |\ifdefvoid| used in |\semproc@talk@head|. |
| 363 |
% \begin{macrocode} |
| 364 |
\RequirePackage{etoolbox} |
| 365 |
% \end{macrocode} |
| 366 |
% We load |biblatex| for managing bibliographies per talk via refsections and |
| 367 |
% |csquotes| as it is recommended by |biblatex|. |
| 368 |
% \begin{macrocode} |
| 369 |
\RequirePackage{biblatex} |
| 370 |
\RequirePackage{csquotes} |
| 371 |
% \end{macrocode} |
| 372 |
%\end{macro} |
| 373 |
% |
| 374 |
%\begin{macro}{Internationalization} |
| 375 |
% Using |\providecaptionname| of KOMA-Script, we define language dependent |
| 376 |
% strings. Currently only German and English are supported. |
| 377 |
% |
| 378 |
% We first define the german variants: |
| 379 |
% \begin{macrocode} |
| 380 |
\providecaptionname{german,ngerman}% |
| 381 |
{\talkname}{Vortrag} |
| 382 |
\providecaptionname{german,ngerman}% |
| 383 |
{\notesname}{Notizen von} |
| 384 |
\providecaptionname{german,ngerman}% |
| 385 |
{\nospeakername}{Kein Vortragender} |
| 386 |
\providecaptionname{german,ngerman}% |
| 387 |
{\localtocheadingname}{Inhalt} |
| 388 |
\providecaptionname{german,ngerman}% |
| 389 |
{\summaryname}{Zusammenfassung} |
| 390 |
% \end{macrocode} |
| 391 |
% Next, we define the english variants: |
| 392 |
% \begin{macrocode} |
| 393 |
\providecaptionname{USenglish,UKenglish,english}% |
| 394 |
{\talkname}{Talk} |
| 395 |
\providecaptionname{USenglish,UKenglish,english}% |
| 396 |
{\notesname}{Notes by} |
| 397 |
\providecaptionname{USenglish,UKenglish,english}% |
| 398 |
{\nospeakername}{No speaker} |
| 399 |
\providecaptionname{USenglish,UKenglish,english}% |
| 400 |
{\localtocheadingname}{Contents} |
| 401 |
\providecaptionname{USenglish,UKenglish,english}% |
| 402 |
{\summaryname}{Abstract} |
| 403 |
% \end{macrocode} |
| 404 |
%\end{macro} |
| 405 |
% |
| 406 |
%\begin{macro}{Fonts} |
| 407 |
% Using KOMA-Script's |\newkomafont|, we define various fonts that we use in |
| 408 |
% this class. First, we define the fonts |talkhead|, |talktitle| and |
| 409 |
% |talkspeakers|, which are used for the heading, i.e.\ the line ``Talk 1'', |
| 410 |
% title and speakers/typists of the respective talk. |
| 411 |
% \begin{macrocode} |
| 412 |
\newkomafont{talkhead} |
| 413 |
{\usekomafont{disposition}\usekomafont{section}} |
| 414 |
\newkomafont{talktitle} |
| 415 |
{\usekomafont{disposition}\usekomafont{chapter}} |
| 416 |
\newkomafont{talkspeakers} |
| 417 |
{\usekomafont{disposition}} |
| 418 |
% \end{macrocode} |
| 419 |
% Next, we define the fonts |globaltocspeaker|, |globaltocnumber|, |
| 420 |
% |globaltocpage| and |globaltoctitle|, which are used for the speaker, number, |
| 421 |
% page and title of the talk in the global table of contents. |
| 422 |
% \begin{macrocode} |
| 423 |
\newkomafont{globaltocspeaker} |
| 424 |
{\sffamily} |
| 425 |
\newkomafont{globaltocnumber} |
| 426 |
{\usekomafont{disposition}} |
| 427 |
\newkomafont{globaltocpage} |
| 428 |
{\usekomafont{disposition}} |
| 429 |
\newkomafont{globaltoctitle} |
| 430 |
{\usekomafont{disposition}} |
| 431 |
% \end{macrocode} |
| 432 |
% Similarly, we define the fonts |localtocnumber|, |localtocpage|, |
| 433 |
% |localtoctitle| for the local table of contents. Additionally, we define |
| 434 |
% |localtocheading|, which is the font of the heading of the local table of |
| 435 |
% contents. |
| 436 |
% \begin{macrocode} |
| 437 |
\newkomafont{localtocheading} |
| 438 |
{\usekomafont{disposition}} |
| 439 |
\newkomafont{localtocnumber} |
| 440 |
{\sffamily} |
| 441 |
\newkomafont{localtocpage} |
| 442 |
{\sffamily} |
| 443 |
\newkomafont{localtoctitle} |
| 444 |
{\sffamily} |
| 445 |
% \end{macrocode} |
| 446 |
% Finally, we define the font |summaryheading|, which is the font of the heading |
| 447 |
% of the |summary| environment also defined in this class. |
| 448 |
% \begin{macrocode} |
| 449 |
\newkomafont{summaryheading} |
| 450 |
{\usekomafont{disposition}} |
| 451 |
% \end{macrocode} |
| 452 |
%\end{macro} |
| 453 |
% |
| 454 |
%\begin{macro}{\nonumchapter} |
| 455 |
% |\nonumchapter|\marg{title} is a thin wrapper around |\chapter*| and |
| 456 |
% |\etoctoccontentsline*|. |
| 457 |
% \begin{macrocode} |
| 458 |
\newcommand{\nonumchapter}[1]{% |
| 459 |
\chapter*{#1}% |
| 460 |
\etoctoccontentsline*{chapter}{#1}{0}% |
| 461 |
} |
| 462 |
% \end{macrocode} |
| 463 |
%\end{macro} |
| 464 |
% |
| 465 |
%\begin{macro}{Talk counter} |
| 466 |
% A new counter for the talks. |
| 467 |
% \begin{macrocode} |
| 468 |
\newcounter{talk} |
| 469 |
\setcounter{talk}{0} |
| 470 |
% \end{macrocode} |
| 471 |
% Compatibility with autoref. |
| 472 |
% \begin{macrocode} |
| 473 |
\def\talkautorefname{\talkname} |
| 474 |
% \end{macrocode} |
| 475 |
% We let sections be numbered within the talk, equations within the section and |
| 476 |
% without referring to the chapter. The latter is achieved by redefining |
| 477 |
% |\thesection| and |\theHsection| for hyperref. |
| 478 |
% \begin{macrocode} |
| 479 |
\@addtoreset{section}{talk} |
| 480 |
\@addtoreset{equation}{section} |
| 481 |
\renewcommand\thesection{\arabic{section}} |
| 482 |
\renewcommand\theHsection{\arabic{section}} |
| 483 |
\renewcommand\theequation{\thesection.\arabic{equation}} |
| 484 |
% \end{macrocode} |
| 485 |
%\end{macro} |
| 486 |
% |
| 487 |
% |
| 488 |
%\begin{macro}{\semproc@talk@head} |
| 489 |
% The macro |\semproc@talk@head|\marg{title} typesets the heading of the talk |
| 490 |
% with the given title. The counter |talk| has to be incremented and the values |
| 491 |
% of |\semproc@talk@speaker| and |\semproc@talk@notes| have to be set before |
| 492 |
% calling |\semproc@talk@head|. |
| 493 |
% \begin{macrocode} |
| 494 |
\newcommand{\semproc@talk@head}[1]{% |
| 495 |
{\noindent\usekomafont{talkhead}\talkname~\thetalk}% |
| 496 |
{\par\nobreak\vskip2ex}% |
| 497 |
{\usekomafont{talktitle}\noindent#1} |
| 498 |
\vskip1ex\noindent\hrulefill\vskip1ex |
| 499 |
{ |
| 500 |
\usekomafont{talkspeakers} |
| 501 |
\noindent\semproc@talk@speaker% |
| 502 |
\ifdefvoid{\semproc@talk@notes}{}{% |
| 503 |
\hfill{\notesname~\semproc@talk@notes}% |
| 504 |
} |
| 505 |
\par\nobreak% |
| 506 |
}% |
| 507 |
\vskip 3.5ex |
| 508 |
} |
| 509 |
% \end{macrocode} |
| 510 |
%\end{macro} |
| 511 |
% |
| 512 |
%\begin{macro}{\talk} |
| 513 |
% The main macro of this class is |\talk| \oarg{speaker={Speaker}, |
| 514 |
% notes={Notes}} \marg{title} intended to replace |\chapter|. We first prepare |
| 515 |
% the optional key/value options. |
| 516 |
% \begin{macrocode} |
| 517 |
\define@key{talk}{speaker}% |
| 518 |
[\nospeakername]% |
| 519 |
{\def\semproc@talk@speaker{#1}} |
| 520 |
\define@key{talk}{notes}% |
| 521 |
[]% |
| 522 |
{\def\semproc@talk@notes{#1}} |
| 523 |
% \end{macrocode} |
| 524 |
% The macro |\talk| parses the key/value options, increments the counter |talk| |
| 525 |
% and calls |\semproc@talk@head| for typesetting the heading. Finally, it starts |
| 526 |
% a new |biblatex| refsection and writes all the data to the |.aux| file via |
| 527 |
% |etoc|'s |\etoccontentsline| macro. The |\@currentlabelname| is set for |
| 528 |
% correct references. |
| 529 |
% \begin{macrocode} |
| 530 |
\newcommand*\talk[2][\empty]{% |
| 531 |
\presetkeys{talk}{speaker,notes}{}% |
| 532 |
\setkeys{talk}{#1}% |
| 533 |
\refstepcounter{talk}% |
| 534 |
\cleardoubleoddplainpage% |
| 535 |
\thispagestyle{\chapterpagestyle}% |
| 536 |
\semproc@talk@head{#2} |
| 537 |
\renewcommand\@currentlabelname{#2} |
| 538 |
\newrefsection% |
| 539 |
\etoctoccontentsline*{talk}% |
| 540 |
{\protect\numberline{\thetalk}#2}{0} |
| 541 |
\etoctoccontentsline{speaker}% |
| 542 |
{\protect\numberline{}\semproc@talk@speaker} |
| 543 |
\renewcommand\@currentlabelname{#2} |
| 544 |
} |
| 545 |
% \end{macrocode} |
| 546 |
%\end{macro} |
| 547 |
% |
| 548 |
%\begin{macro}{Various lengths and a box} |
| 549 |
% Lengths for typesetting the local and global tables of contents. |
| 550 |
% \begin{macrocode} |
| 551 |
\newlength{\semproc@toc@skip} |
| 552 |
\setlength{\semproc@toc@skip}{4em} |
| 553 |
\newlength{\semproc@toc@calc} |
| 554 |
% \end{macrocode} |
| 555 |
%\end{macro} |
| 556 |
% |
| 557 |
%\begin{macro}{\semproc@toc@skipafter} |
| 558 |
% |\semproc@toc@skipafter| \marg{style} typesets |\etocnumber| with the chosen |
| 559 |
% \meta{style} and then skips the difference of |\semproc@toc@skip| and the |
| 560 |
% width of |\etocnumber|. |
| 561 |
% \begin{macrocode} |
| 562 |
\newcommand\semproc@toc@skipafter[1]{% |
| 563 |
\settowidth{\semproc@toc@calc}% |
| 564 |
{#1\etocthenumber}% |
| 565 |
\addtolength{\semproc@toc@calc}% |
| 566 |
{-\semproc@toc@skip}% |
| 567 |
\setlength{\semproc@toc@calc}% |
| 568 |
{-\semproc@toc@calc}% |
| 569 |
\noindent{#1\etocnumber}% |
| 570 |
\hskip\semproc@toc@calc% |
| 571 |
} |
| 572 |
% \end{macrocode} |
| 573 |
%\end{macro} |
| 574 |
% |
| 575 |
%\begin{macro}{\globaltoc} |
| 576 |
% |\globaltoc| prints out a global table of contents showing only the talks and |
| 577 |
% the respective speakers/typists. |
| 578 |
% \begin{macrocode} |
| 579 |
\newcommand{\globaltoc}{% |
| 580 |
\begingroup |
| 581 |
\etocsetnexttocdepth{1} |
| 582 |
\etocsetlevel{speaker}{1} |
| 583 |
\etocsetlevel{section}{2} |
| 584 |
\etocsetlevel{talk}{0} |
| 585 |
\etocsetlevel{chapter}{0} |
| 586 |
% \end{macrocode} |
| 587 |
% The speaker is written below the title of the talk with |
| 588 |
% |\semproc@toc@skip| indentation and font |globaltocspeaker|. |
| 589 |
% \begin{macrocode} |
| 590 |
\etocsetstyle{speaker} |
| 591 |
{} |
| 592 |
{} |
| 593 |
{% |
| 594 |
\hskip\semproc@toc@skip% |
| 595 |
{\usekomafont{globaltocspeaker}\etocthename}% |
| 596 |
\nobreak\hfill\nobreak\par% |
| 597 |
} |
| 598 |
{} |
| 599 |
% \end{macrocode} |
| 600 |
% Before each talk entry in the global table of contents, we have a vertical |
| 601 |
% skip of |1ex|. Then, the number of the talk is written left-aligned and the |
| 602 |
% title of the talk is written on the same line with indentation |
| 603 |
% |\semproc@toc@skip|. |
| 604 |
% \begin{macrocode} |
| 605 |
\etocsetstyle{talk} |
| 606 |
{} |
| 607 |
{\vskip1ex\leavevmode\relax} |
| 608 |
{% |
| 609 |
\semproc@toc@skipafter{\usekomafont{globaltocnumber}}% |
| 610 |
{% |
| 611 |
\usekomafont{globaltoctitle}% |
| 612 |
\etocname% |
| 613 |
}% |
| 614 |
\nobreak% |
| 615 |
\leaders\hbox to .3cm{\hss.}\hfill% |
| 616 |
\nobreak% |
| 617 |
\makebox[1cm][r]{% |
| 618 |
\usekomafont{globaltocpage}% |
| 619 |
\hss\etocpage% |
| 620 |
}\par% |
| 621 |
} |
| 622 |
{} |
| 623 |
\tableofcontents |
| 624 |
\endgroup |
| 625 |
} |
| 626 |
% \end{macrocode} |
| 627 |
%\end{macro} |
| 628 |
% |
| 629 |
%\begin{macro}{\localtoc} |
| 630 |
% |\localtoc| prints out a local table of contents consisting only of the |
| 631 |
% sections and subsections in the current talk. |
| 632 |
% \begin{macrocode} |
| 633 |
\newcommand{\localtoc}{% |
| 634 |
\begingroup |
| 635 |
\let\parskip@old% |
| 636 |
\parskip\parskip0ex% |
| 637 |
\etocsetnexttocdepth{2} |
| 638 |
\etocsetlevel{section}{1} |
| 639 |
\etocsetlevel{subsection}{2} |
| 640 |
\etocsetlevel{talk}{-2} |
| 641 |
\etocsetlevel{speaker}{-2} |
| 642 |
\etocsetlevel{chapter}{-2} |
| 643 |
% \end{macrocode} |
| 644 |
% Every section except the first one has a |\vskip| of |1ex| before it is |
| 645 |
% typeset. Then, sections are written with |\semproc@toc@skip| indentation. |
| 646 |
% \begin{macrocode} |
| 647 |
\etocsetstyle{section} |
| 648 |
{} |
| 649 |
{% |
| 650 |
\ifthenelse{\equal{\etocthenumber}{1}}% |
| 651 |
{}% |
| 652 |
{\vskip1ex}% |
| 653 |
} |
| 654 |
{% |
| 655 |
\semproc@toc@skipafter{% |
| 656 |
\usekomafont{localtocnumber}% |
| 657 |
}% |
| 658 |
{% |
| 659 |
\usekomafont{localtoctitle}% |
| 660 |
\etocname% |
| 661 |
}% |
| 662 |
\nobreak% |
| 663 |
\leaders\hbox to .3cm{\hss.}\hfill% |
| 664 |
\nobreak% |
| 665 |
\makebox[1cm][r]{% |
| 666 |
\usekomafont{localtocpage}% |
| 667 |
\hss\etocpage% |
| 668 |
}\vskip0.5ex% |
| 669 |
} |
| 670 |
{} |
| 671 |
% \end{macrocode} |
| 672 |
% Subsections are written with |\semproc@toc@skip| indentation and no additional |
| 673 |
% vertical space. |
| 674 |
% \begin{macrocode} |
| 675 |
\etocsetstyle{subsection} |
| 676 |
{} |
| 677 |
{} |
| 678 |
{% |
| 679 |
\semproc@toc@skipafter{% |
| 680 |
\usekomafont{localtocnumber}% |
| 681 |
}% |
| 682 |
{% |
| 683 |
\usekomafont{localtoctitle}% |
| 684 |
\etocname |
| 685 |
}% |
| 686 |
\nobreak% |
| 687 |
\leaders\hbox to .3cm{\hss.}\hfill% |
| 688 |
\nobreak% |
| 689 |
\makebox[1cm][r]{% |
| 690 |
\usekomafont{localtocpage}% |
| 691 |
\hss\etocpage% |
| 692 |
}\vskip0.5ex% |
| 693 |
} |
| 694 |
{} |
| 695 |
% \end{macrocode} |
| 696 |
% Finally, we define the heading of the table of contents and typeset it. |
| 697 |
% \begin{macrocode} |
| 698 |
\etocsettocstyle{% |
| 699 |
\centerline{% |
| 700 |
\usekomafont{localtocheading}% |
| 701 |
\localtocheadingname% |
| 702 |
} |
| 703 |
}{} |
| 704 |
\localtableofcontents |
| 705 |
\parskip\parskip@old |
| 706 |
\endgroup |
| 707 |
} |
| 708 |
% \end{macrocode} |
| 709 |
%\end{macro} |
| 710 |
% |
| 711 |
% |
| 712 |
%\begin{environment}{summary} |
| 713 |
% Instead of using the |abstract| environment, we define a |summary| environment |
| 714 |
% to be used for each talk. |
| 715 |
% \begin{macrocode} |
| 716 |
\newenvironment{summary} |
| 717 |
{% |
| 718 |
\centerline{% |
| 719 |
\usekomafont{summaryheading}% |
| 720 |
\summaryname% |
| 721 |
}% |
| 722 |
\let\parindent@old\parindent\parindent0em% |
| 723 |
}{% |
| 724 |
\parindent\parindent@old\vskip3.5ex% |
| 725 |
} |
| 726 |
% \end{macrocode} |
| 727 |
%\end{environment} |
| 728 |
% |
| 729 |
%\begin{macro}{\localbib} |
| 730 |
% \begin{macrocode} |
| 731 |
\newcommand{\localbib}{% |
| 732 |
\printbibliography[heading=subbibliography]% |
| 733 |
} |
| 734 |
% \end{macrocode} |
| 735 |
%\end{macro} |
| 736 |
% |
| 737 |
% \begin{macrocode} |
| 738 |
%</class> |
| 739 |
% \end{macrocode} |
| 740 |
%\Finale |