| 1 |
% |
| 2 |
% This is second version of the class. It redefines Chapters |
| 3 |
% sections and subsections, in order to use the minitoc style! |
| 4 |
% |
| 5 |
% |
| 6 |
% DESCRIPTION: |
| 7 |
% |
| 8 |
% -``Quick and dirty'' class file for ``book of abstracts'' |
| 9 |
% (used for IWEPNM - Kirchberg 1997) |
| 10 |
% |
| 11 |
% - It's getting less Quick and dirty, but it's far from beeing |
| 12 |
% what i want, should be much more flexible for that. |
| 13 |
% |
| 14 |
% -Written by Havlik Denis ([email protected]) 02/1997. |
| 15 |
% -Based on the report class. |
| 16 |
% |
| 17 |
% This .cls file has been written for the conference in Kirchberg. |
| 18 |
% It has been designed to produce a4-size pages, |
| 19 |
% which are later converted into a5. Output is double-sided. |
| 20 |
% |
| 21 |
% Abstracts are suposed to be in separate files, with simple |
| 22 |
% formating (title, name, adress, text). |
| 23 |
% |
| 24 |
% As i have a feeling that many conferences need something |
| 25 |
% like this booklet, i will try to document this file as good as |
| 26 |
% i can. In the case anybody is interesting to use this class, |
| 27 |
% but neads more flexibility or new features, i would be pleased |
| 28 |
% to help. This is a first time ever that i write a Latex class, |
| 29 |
% but i'm learning. |
| 30 |
% |
| 31 |
% Features: |
| 32 |
% -Conferences consist of days and sessions. |
| 33 |
% -In every day there can be one or more sessions, in every |
| 34 |
% session there can be several abstracts. Abstracts appear |
| 35 |
% two on a page, with short name of the session, the number |
| 36 |
% of the abstract and an additional entry WRITTEN ON THE MARGIN. |
| 37 |
% -In the headings, day appears on the even, and session on the odd |
| 38 |
% pages. |
| 39 |
% -For every day, a table of abstracts is printed |
| 40 |
% -names of the authors are automatically added to index of authors |
| 41 |
% (don't forget to run the ``makeindex''!!!) |
| 42 |
% |
| 43 |
% I would like to thank the ``\"Osterreichischen Fonds zur F\"orderung |
| 44 |
% der wissenschaftlichen Forschung'' for financing my work |
| 45 |
% under project Nr. +P10924-PHY. Furthermore, a Linux, and \TeX/\LaTeX |
| 46 |
% comunity, for providing wonderfull free software, that i use for all my |
| 47 |
% work. Special thanks to Jean-Pierre Drucbert |
| 48 |
% Havlik Denis |
| 49 |
% |
| 50 |
% TODO: |
| 51 |
% 1. redefine \titl, \name and \adr, so i can get automatic: |
| 52 |
% indexing of authors and automatic referencing of authors to adress |
| 53 |
% 2. automatic resizing of abstracts to fit other page-sizes, |
| 54 |
% (not only a4) and other margines etc. |
| 55 |
% 3. add formatting stuff like: |
| 56 |
% \newcommand{\titlstyle}{\bf \Large \MakeUppercase} |
| 57 |
% with some logical names and use it consequently for all the macros |
| 58 |
% in the whole class |
| 59 |
% 4. ?% |
| 60 |
% |
| 61 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 62 |
\NeedsTeXFormat{LaTeX2e} |
| 63 |
\ProvidesClass{abstbook}[1997/02/10 for typseting book of abstracts] |
| 64 |
\DeclareOption{twocolumn}{\OptionNotUsed} % makes no sense to use it... |
| 65 |
% All other options go to ``report'' class. |
| 66 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} |
| 67 |
\ProcessOptions |
| 68 |
\LoadClass[a4,twoside]{report} |
| 69 |
\RequirePackage{makeidx} % neaded to make index |
| 70 |
\RequirePackage{graphicx} % neaded to input graphics into booklet. |
| 71 |
%\RequirePackage{minitoc} |
| 72 |
% page - size related stuff. Looks good on my printer... |
| 73 |
\setlength{\unitlength}{1cm} |
| 74 |
%\setlength{\topmargin}{1.5cm} |
| 75 |
\setlength{\hoffset}{-0.8in} |
| 76 |
%\setlength{\voffset}{-1in} |
| 77 |
\setlength{\textwidth}{16.5cm} |
| 78 |
\setlength{\textheight}{24.8cm} |
| 79 |
\setlength{\topskip}{0cm} |
| 80 |
\setlength{\footskip}{0cm} |
| 81 |
\setlength{\oddsidemargin}{1.5cm} |
| 82 |
\setlength{\evensidemargin}{1.5cm} |
| 83 |
\setlength{\marginparsep}{0.3cm} |
| 84 |
\setlength{\marginparwidth}{1.0 cm} |
| 85 |
\setlength{\parindent}{0cm} |
| 86 |
\pagestyle{myheadings} % to get the day - session in headings! |
| 87 |
|
| 88 |
% I had to redefine \chapter because i have to use it, if i want |
| 89 |
% mini-tables-of-contents... |
| 90 |
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi |
| 91 |
\global\@topnum\z@ |
| 92 |
\@afterindentfalse |
| 93 |
\secdef\@chapter\@schapter} |
| 94 |
\def\@makechapterhead#1{\relax} %write nothing... |
| 95 |
\RequirePackage{minitoc} |
| 96 |
|
| 97 |
\AtBeginDocument{% this comes after \begin{document} |
| 98 |
\makeindex |
| 99 |
\dominitoc |
| 100 |
\faketableofcontents} |
| 101 |
|
| 102 |
\AtEndDocument{\printindex} % dont forget to run the ``makeindex'' program! |
| 103 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 104 |
% |
| 105 |
% COMMANDS |
| 106 |
% |
| 107 |
\newcounter{Cabstract}[section] |
| 108 |
\newsavebox{\ConferenceDay} % hier comes the name of the day |
| 109 |
\newsavebox{\SessionName} % name of the session |
| 110 |
\newsavebox{\ShortSessionName}% short name of the session |
| 111 |
% Counters for days, sessions and abstracts. |
| 112 |
% hope this will work.... |
| 113 |
|
| 114 |
\sbox{\ConferenceDay}{} |
| 115 |
\sbox{\SessionName}{} |
| 116 |
\markboth{\usebox{\ConferenceDay}}{\usebox{\SessionName}} |
| 117 |
|
| 118 |
\def\mtctitle{\relax}% |
| 119 |
|
| 120 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 121 |
% Command: \conferenceday |
| 122 |
% Usage: \conferenceday{some day} |
| 123 |
% Provides: advances day-counter, adds the day-name to TOC |
| 124 |
% and clears the page |
| 125 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 126 |
\newcommand{\conferenceday}[1]{% |
| 127 |
\chapter{#1} |
| 128 |
{\Large \bf #1}\par |
| 129 |
\minitoc |
| 130 |
\sbox{\ConferenceDay}{#1} |
| 131 |
\sbox{\SessionName}{#1} |
| 132 |
} |
| 133 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 134 |
% Command: \sessionname |
| 135 |
% Usage: \sessionname{shortname}{longname} |
| 136 |
% Provides: advances session-counter, adds the session-name to TOC |
| 137 |
% and clears the page |
| 138 |
% Important: I'm not using \section here. Instead, i try to emulate |
| 139 |
% the part that i nead. It worked with my version |
| 140 |
% of minitoc, but didn't work with an older version |
| 141 |
% we had at the university. Bad. Redefining \section |
| 142 |
% would be better, but i can't figure it out. |
| 143 |
% Well, Jean-Pierre Drucbert <[email protected]> |
| 144 |
% said it should be O.K., so be it. |
| 145 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 146 |
\newcommand{\sessionname}[2]{% |
| 147 |
\clearpage |
| 148 |
\refstepcounter{section} |
| 149 |
\sbox{\ShortSessionName}{#1} |
| 150 |
\sbox{\SessionName}{#2} |
| 151 |
\addcontentsline{toc}{section}{\MakeUppercase{#2}} |
| 152 |
} |
| 153 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 154 |
% Following definitions determine how to deal with the abstracts % |
| 155 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 156 |
|
| 157 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 158 |
% ABSTRACTS SHOULD BE IN SEPARATE FILES, FORMATED LIKE THIS: |
| 159 |
% |
| 160 |
% Abstract example: |
| 161 |
% \index{Name1} \index{Name2}... - this is nessesary for authornames |
| 162 |
% to appear in index!!! |
| 163 |
% \titl{Title of the abstract} |
| 164 |
% \name{A. First$^1$, A. Second$^1$, A. Third$^2$} |
| 165 |
% \adr{1~First address\\ |
| 166 |
% 2~Second addrass} |
| 167 |
% |
| 168 |
% \begin{abstr} |
| 169 |
% Abstracts text (in Latex notation). Most of the Latex commands |
| 170 |
% can be used here... |
| 171 |
% \end{abstr} |
| 172 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 173 |
|
| 174 |
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 175 |
% TO DO: |
| 176 |
% I would like to change \name and \adr in such a way that |
| 177 |
% |
| 178 |
% \name[mark1]{name1} |
| 179 |
% \name[mark2]{name2} |
| 180 |
% \name[mark1]{name3} |
| 181 |
% \adr[adr1]{adress1} |
| 182 |
% \adr[adr2]{adress2} |
| 183 |
% |
| 184 |
% produces the same result as one obtained in the previous example |
| 185 |
% and automaticaly includes the names into index list... |
| 186 |
% Unfortunately, i don't know how to do it. |
| 187 |
% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 188 |
|
| 189 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 190 |
% COMMANDS TO BE USED IN ABSTRACTS: |
| 191 |
% |
| 192 |
% Title of the abstract |
| 193 |
\newcommand{\titl}[1]{\large \bf \MakeUppercase{#1}\par\medskip} |
| 194 |
% author(s) name(s) |
| 195 |
\newcommand{\name}[1]{\rm \normalsize #1\par\smallskip} |
| 196 |
% author(s) addres(es) |
| 197 |
\newcommand{\adr}[1]{\it \normalsize #1\par\smallskip} |
| 198 |
% enviroment ``abstr'' |
| 199 |
\newenvironment{abstr}{\par\medskip \normalsize \rm}{\par\bigskip} |
| 200 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 201 |
% COMMANDS TO BE USED IN THE MAIN DOCUMENT |
| 202 |
% |
| 203 |
% Command: \loadabstr |
| 204 |
% Usage: \loadabstr[additional]{TOC-entry}{filename.tex} |
| 205 |
% Provides: reserves 1/2 page for the abstract, loads the abstract |
| 206 |
% from the file ``filename.tex'', writes the ``TOC-entry'' |
| 207 |
% to table of contents, advances the abstracts-counter |
| 208 |
% and writes the short name of the session, abstract-number |
| 209 |
% and an additional entry to the margin. |
| 210 |
% (We have used the additional entry for the time..) |
| 211 |
%usage: \loadabstr[additional]{toc-entry}{name.tex} |
| 212 |
\newcommand{\loadabstr}[3][\relax]{% |
| 213 |
\stepcounter{Cabstract} |
| 214 |
\par |
| 215 |
\rule[-6cm]{0cm}{12cm} % well, you might nead to change this |
| 216 |
% if you change the size/format of the page |
| 217 |
\marginpar{% |
| 218 |
\large\centering |
| 219 |
#1\par\smallskip |
| 220 |
\usebox{\ShortSessionName}\par\smallskip |
| 221 |
\arabic{Cabstract}} |
| 222 |
\IfFileExists{#3}{% |
| 223 |
\begin{minipage}{16.5cm} % this too... |
| 224 |
\input{#3} |
| 225 |
\end{minipage}} |
| 226 |
{File #3 not found} |
| 227 |
\addcontentsline{toc}{subsection}{#2} |
| 228 |
} |
| 229 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 230 |
% Command: \loadpsabstr |
| 231 |
% Usage: \loadpsabstr[additional]{toc-entry}{name.ps}{formating} |
| 232 |
% Provides: Some of our abstracts arrived as postscript or with s-mail |
| 233 |
% This commands loads the postscript file, cuts part of it out |
| 234 |
% and puts it on its place, just like \loadabstr does with |
| 235 |
% an latex file. Additional parameter goes directly to |
| 236 |
% ``includegraphics'' (see explanation of graphicx package) |
| 237 |
% try something like: scale=1, bb=2.5cm 16cm 19cm 28cm |
| 238 |
\newcommand{\loadpsabstr}[4][\relax]{% |
| 239 |
\stepcounter{Cabstract} |
| 240 |
\par |
| 241 |
\rule[-6cm]{0cm}{12cm} % well, you might nead to change this |
| 242 |
% if you change the size/format of the page |
| 243 |
\marginpar{% |
| 244 |
\large\centering |
| 245 |
#1\par\smallskip |
| 246 |
\usebox{\ShortSessionName}\par\smallskip |
| 247 |
\arabic{Cabstract}} |
| 248 |
\begin{minipage}{16.5cm} % this too... |
| 249 |
\unitlength 1cm |
| 250 |
\IfFileExists{#3}{% |
| 251 |
\begin{picture}(16.5,12) % and this, too! |
| 252 |
\put(0,0){% |
| 253 |
\includegraphics[% |
| 254 |
angle=0, clip=true, #4]{#3}} |
| 255 |
\end{picture}} |
| 256 |
{File #3 not found!} |
| 257 |
\end{minipage} |
| 258 |
\addcontentsline{toc}{subsection}{#2} |
| 259 |
} |
| 260 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 261 |
% end of the Kirchberg.cls |
| 262 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|