-
Notifications
You must be signed in to change notification settings - Fork 0
/
techrep.tex
80 lines (65 loc) · 2.38 KB
/
techrep.tex
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
% -*- mode: fundamental; -*-
% techrep.tex - XeTeX format for individual technical reports
% Copyright © 2010 CESNET
% Author: Ladislav Lhotka <[email protected]>
% This program 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 3 of the License, or
% (at your option) any later version.
% This program 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.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
\input trcommon
\catcode`_=11 % to hide private macros
\catcode`@=11 % to borrow plain TeX macros
% Processing modes
\def\finalMode{\proof_modefalse
\overfullrule=0pt}
% Foot line
\footline={\ifinfo_down
\ifnum\pageno<0 \hfil\folio\hfil \else {\petit
\ifproof_mode PROOF \number\day.\number\month.\number\year\else
© CESNET, \number\year\fi}\hfil\fi\fi}
\let\rep_number=\empty \let\rec_date=\empty
\def\report{\ruler_count=0
\foot_count=0 \auth_count=0
\@uthors={}
\let\short_title=\empty
\title_pagetrue}
\def\endReport{\vfill\end}
\def\makeTitle{\edef\the_title{\the\titl@}%
\leftRunHead={{\x_i\folio}\kern2em{\x_sc\ifnum\auth_count>3
\first_author~et~al.\else \the\auth_names\fi}}%
\rightRunHead={{\petit\it\ifx\short_title\empty
\the\titl@\else\short_title\fi\kern2em$\x_i\folio$}}%
\ifx\rep_number\empty\else
\vbox{\fourteenPoint
\centerline{\bf CESNET Technical Report~\rep_number}
\medskip}%
\fi
\box\title_box
\vskip\aboveauthors_skip
\vbox{\leftskip=3em plus 1fill \rightskip=3em plus 1fill
\parfillskip=0pt
\normalSize\noindent\sc\the\@uthors}
\iffirst_affil\else\box\affil_box\fi
\ifx\rec_date\empty\else
\medskip
\centerline{\petit\rm Received~\rec_date}
\fi
\vskip\belowauthors_skip}
% Parameters
\hsize=159mm
\vsize=690pt
\let\normalSize=\twelvePoint
\let\petit=\tenPoint
\def\titleFont{\seventeenPoint\bf}
\def\sectionFont{\fourteenPoint\bf}
% Final setup
\parameter_setup
\proofMode
\catcode`\_=8 % make _ again subscript symbol
\catcode`@=12 % at signs are no longer letters