source: trunk/MagicSoft/TDAS-Extractor/magic-tdas.sty@ 7462

Last change on this file since 7462 was 5216, checked in by gaug, 20 years ago
*** empty log message ***
File size: 6.3 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%%% magic-tdas.sty -- style file to write MAGIC-TDAS documents
3%%%-----------------------------------------------------------------
4%%% Kopyleft (K) 2000 J C Gonzalez
5%%% Max-Planck-Institut fuer Physik,
6%%% Foehringer Ring 6, 80805 Muenchen, Germany
7%%% E-mail: gonzalez@mppmu.mpg.de
8%%%-----------------------------------------------------------------
9%%% This program is free software; you can redistribute, copy,
10%%% modify, use it and its documentation for any purpose,
11%%% provided that the above copyright notice appear in all
12%%% copies and that both that copyright notice and this
13%%% permission notice appear in supporting documentation.
14%%%
15%%% This piece of code is distributed in the hope that it will
16%%% be useful, but WITHOUT ANY WARRANTY; without even the
17%%% implied warranty of FITNESS FOR A PARTICULAR PURPOSE.
18%%%
19%%% Although you can actually do whatever you want with this
20%%% file (following the copyright notice above), your are
21%%% strongly encouraged NOT to edit directly this file.
22%%% Instead, make a copy and edit the copy for your purposes.
23%%%
24%%% Modifying this file means that you have the very basic
25%%% knowledge needed to make things by your own, and therefore...
26%%% you will not get _any_ additional support :-)
27%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
28%%% Last update: Time-stamp: <Tue Feb 22 16:23:07 MET 2000>
29%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30%
31
32\NeedsTeXFormat{LaTeX2e}
33\ProvidesPackage{magic-tdas}
34[2000/03/01 v0.01 magic-tdas -- style file to write MAGIC-TDAS documents]
35
36\typeout{magic-tdas -- style file to write MAGIC-TDAS documents}
37
38%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39\usepackage[english]{babel}
40\usepackage{epsfig}
41\usepackage{fancyheadings}
42\usepackage{rotating}
43\usepackage{amsmath}
44\usepackage{xspace}
45\usepackage{enumerate}
46\usepackage{makeidx}
47\usepackage{floatflt}
48\usepackage{wrapfig}
49%\usepackage{html}
50\usepackage{verbatim}
51
52%\usepackage{a4wide}
53\usepackage{vmargin}
54\setpapersize{A4}
55\setmarginsrb{2cm}{3cm}{2cm}{3cm}{12pt}{20pt}{0pt}{0pt}
56%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57
58%%% NEW COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59\newcommand\TDAScode[1]{\gdef\@TDASnumber{#1}}
60%-----------------------------------------------------------
61\newcommand\TDASref[1]{\gdef\@TDASref{#1}}
62%-----------------------------------------------------------
63\renewcommand\@maketitle{%
64 \newpage
65 \null
66 \begin{picture}(0,0)%
67 \put(0,50){\epsfig{file=magiclogo.eps,width=4cm}}%
68 \put(400,80){\parbox[t]{0.3\linewidth}{\textsf{\@TDASnumber}}}%
69 \end{picture}%
70 \begin{center}%
71 \let \footnote \thanks
72 {\large \scshape \@title \par}%
73 \vskip 1.5em%
74 {\large
75 \lineskip .5em%
76 \begin{tabular}[t]{c}%
77 \@author
78 \end{tabular}\par}%
79 \vskip 1em%
80 {\large \@date}%
81 \end{center}%
82 \par
83 \vskip 1.5em}
84%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85
86%%% TABLE OF CONTENTS AND BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%
87\def\thetableofcontents{%
88\small%
89\renewcommand{\contentsname}{}%
90\begin{center}%
91{\bfseries Contents}\\%
92\begin{minipage}{0.7\linewidth}%
93\footnotesize%
94\tableofcontents%
95\end{minipage}%
96\vskip20pt
97\end{center}}
98
99\def\theBibliography{%
100\nocite{*}
101\renewcommand{\refname}{}
102\bibliographystyle{abbrv}
103\begin{center}%
104{\bfseries References}\\%
105\begin{minipage}{0.7\linewidth}%
106\footnotesize%
107\bibliography{anasoft}%
108\end{minipage}%
109\end{center}}
110
111\renewenvironment{thebibliography}[1]
112 {\vskip\baselineskip\centering{\bfseries References\\}
113 \@mkboth{References}{References}%
114 \list{\@biblabel{\@arabic\c@enumiv}}%
115 {\settowidth\labelwidth{\@biblabel{#1}}%
116 \leftmargin\labelwidth
117 \advance\leftmargin\labelsep
118 \@openbib@code
119 \usecounter{enumiv}%
120 \let\p@enumiv\@empty
121 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
122 \sloppy
123 \clubpenalty4000
124 \@clubpenalty \clubpenalty
125 \widowpenalty4000%
126 \sfcode`\.\@m}
127 {\def\@noitemerr
128 {\@latex@warning{Empty `thebibliography' environment}}%
129 \endlist}
130%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131
132%%% CITES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
133
134%% cite(s) in captions
135\newcommand{\ccite}[1]{\protect\cite{#1}\xspace}
136%% references in captions
137\newcommand{\cref}[1]{\protect\ref{#1}\xspace}
138%% also references in captions
139\newcommand{\fullcref}[1]{\protect\ref{#1} %
140in page \protect\pageref{#1}\xspace}
141%% id., normal
142\newcommand{\fullref}[1]{\ref{#1} in page \pageref{#1}\xspace}
143
144%% units
145\renewcommand{\u}[1]{\ensuremath{\mathrm{\,#1}}}
146
147%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
148
149%%% FANCYHEADINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
150\pagestyle{fancyplain}
151%\addtolength{\headwidth}{\marginparsep}
152%\addtolength{\headwidth}{\marginparwidth}
153\addtolength{\headwidth}{1cm}
154%\renewcommand{\chaptermark}[1]%
155% {\markboth{#1}{}}
156\renewcommand{\sectionmark}[1]%
157 {\markright{\thesection\ #1}}
158\renewcommand{\subsectionmark}[1]%
159 {\markright{\thesubsection\ #1}}
160\lhead[\fancyplain{}{\itshape \thepage}]%
161 {\fancyplain{}{\itshape \rightmark}}
162\rhead[\fancyplain{}{\itshape \thetitle}]%
163 {\fancyplain{}{\itshape \thepage}}
164\cfoot{}
165%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
166
167%%% CAPTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
168%\long\def\@makecaption#1#2{%
169%\centering\parbox[b][\height+\baselineskip][b]{0.8\linewidth}{\small{\bf #1}.\quad #2}}
170%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
171
172%%% SECTIONING COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
173\renewcommand{\section}{\@startsection
174 {section}%
175 {1}%
176 {0pt}%
177 {\baselineskip}%
178 {0.5\baselineskip}%
179 {\large\scshape}}
180
181\renewcommand{\subsection}{\@startsection
182 {subsection}%
183 {2}%
184 {0pt}%
185 {0.8\baselineskip}%
186 {0.5\baselineskip}%
187 {\bfseries}}
188
189\renewcommand{\subsubsection}{\@startsection
190 {subsubsection}%
191 {3}%
192 {10pt}%
193 {0.5\baselineskip}%
194 {0.2\baselineskip}%
195 {\itshape}}
196%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
197
198%%% GENERAL FORMATTING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199\setlength{\parindent}{0pt}
200\setlength{\parskip}{0.2\baselineskip}
201%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
202
203\endinput
204
205%%EOF
Note: See TracBrowser for help on using the repository browser.