summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/abstr_collect/abstr_collect.sty
blob: 28474f2ab9e91191dacfab8e80547c746b184193 (plain)
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
% abstract_colection.sty   by balemi@aut.ethz.ch
% created      15-AUG-91

\typeout{Document Style `abstract_collection' <15-AUG-91>.}

\input article.sty\relax

% Definitions Necessary to put all abstracts together

%disable \begin{document}, \end{document, \documentstyle
\def\document{}
\def\enddocument{}
\def\documentstyle{
\@ifnextchar[{\@documentstyle}{\@documentstyle[]}}
\def\@documentstyle[#1]#2{}
 
\def\@preamblecmds{\do\totaldocument \do\totaldocumentstyle 
   \do\@totaldocumentstyle
   \do\@options \do\@preamblecmds \do\@optionlist \do\@optionfiles
   \do\nofiles \do\includeonly \do\makeindex \do\makeglossary}

%\define totaldocument instead of document for the master file
\def\totaldocument{\endgroup
  \@colht\textheight  \@colroom\textheight \vsize\textheight
   \columnwidth\textwidth \@clubpenalty\clubpenalty
   \if@twocolumn \advance\columnwidth -\columnsep 
      \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue 
   \fi
  \hsize\columnwidth \linewidth\hsize
  \begingroup\@floatplacement\@dblfloatplacement
   \makeatletter\let\@writefile\@gobbletwo
   \@input{\jobname.aux}\endgroup 
  \if@filesw \immediate\openout\@mainaux=\jobname.aux
    \immediate\write\@mainaux{\relax}\fi
  \def\do##1{\let ##1\@notprerr}%
  \@preamblecmds
  \let\do\noexpand  
  \@normalsize\everypar{}}

\def\endtotaldocument{\@checkend{document}\clearpage\begingroup  
\if@filesw \immediate\closeout\@mainaux 
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
\if@tempswa \@warning{Label(s) may have changed.  Rerun to get
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}

% comment the lines
% in \let\maketitle\relax
% in \let\@maketitle\relax
% in the definition of \maketitle


\def\@maketitle{\newpage
 \null
 \vskip 2em 
\begin{center}
 \noindent{\LARGE \bf \@title \par} \vskip 1.5em {\lineskip .5em
\begin{tabular}[t]{c}\hskip -\parindent\hskip-.5em\large\@author 
 \end{tabular}\par} 
 \vskip 1em {\large \@date} 
 \par
\end{center}
 \vskip 1.5em} 
\def\abstract{\if@twocolumn
\section*{Abstract}
\else \small 
\begin{center}
{\bf Abstract\vspace{-.5em}\vspace{0pt}} 
\end{center}
\quotation 
\fi}
\def\and{%%                             % \begin{tabular} 
\end{tabular}
\par
\begin{tabular}[t]{c}\hskip -\parindent\hskip-.5em\large%% \end{tabular}
}

\def\maketitle{
\par
 \begingroup
 \def\thefootnote{\fnsymbol{footnote}}
 \def\@makefnmark{\hbox 
 to 0pt{$^{\@thefnmark}$\hss}} 
 \newpage
 \global\@topnum\z@ \@maketitle \thispagestyle{plain}\@thanks
 \endgroup
 \setcounter{footnote}{0}
 %\let\maketitle\relax
 %\let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@abstract{}
\gdef\@keywords{}\gdef\@title{}\let\thanks\relax
}

% removes date
\def\date#1{}
\gdef\@date{}

% redefines abstract to be as wide as page
\def\abstract{ \section*{Abstract}}
\def\endabstract{\normalsize\rm}

% one column only for abstracts
\onecolumn

% to input a whole document
\def\inputabstract#1{\input{#1}\newpage}

\setlength\topmargin{-15mm}
\setlength\oddsidemargin{4mm}
\setlength\evensidemargin{4mm}
\setlength\textheight{245mm}
\setlength\textwidth{160mm}