source: trunk/MagicSoft/GRB-Proposal/magic-tdas.sty@ 6895

Last change on this file since 6895 was 6809, checked in by galante, 20 years ago
*** empty log message ***
File size: 7.1 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%<<<<<<< magic-tdas.sty
80%=======
81% \begin{tabular}[!h]{lll}%
82% Co-I: & Denis Bastieri & Universit\`a degli Studi di Padova\\
83% & Markus Garczarczyk & MPI\\
84% & Markus Gaug & IFAE\\
85% & Satoko Mizobuchi & MPI\\
86% & Riccardo Paoletti & Universit\`a degli Studi di Siena\\
87% & Luigi Peruzzo & Universit\`a degli Studi di Padova\\
88% Co-DA: & Abelardo Moralejo$^*$ & Universit\`a degli Studi di Padova\\
89% & Alessio Piccioli & Universit\`a degli Studi di Siena\\
90% & Martina Fagiolini & Universit\`a degli Studi di Siena\\
91% & Tiziano Lenisa & Universit\`a degli Studi di Udine\\
92% & Francesco Longo & INFN Trieste\\
93% Co-Th: & Steve Shore & Universit\`a degli Studi di Pisa
94% \end{tabular}\\
95% \small{* = if still Padova member}
96 %\coauthor
97 %\end{tabular}\par%
98%>>>>>>> 1.4
99 \vskip 1em%
100 {\large \@date}%
101 \end{center}%
102 \par
103 \vskip 1.5em}
104%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105
106%%% TABLE OF CONTENTS AND BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%
107\def\thetableofcontents{%
108\small%
109\renewcommand{\contentsname}{}%
110\begin{center}%
111{\bfseries Contents}\\%
112\begin{minipage}{0.7\linewidth}%
113\footnotesize%
114\tableofcontents%
115\end{minipage}%
116\vskip20pt
117\end{center}}
118
119\def\theBibliography{%
120\nocite{*}
121\renewcommand{\refname}{}
122\bibliographystyle{abbrv}
123\begin{center}%
124{\bfseries References}\\%
125\begin{minipage}{0.7\linewidth}%
126\footnotesize%
127\bibliography{anasoft}%
128\end{minipage}%
129\end{center}}
130
131\renewenvironment{thebibliography}[1]
132 {\vskip\baselineskip\centering{\bfseries References\\}
133 \@mkboth{References}{References}%
134 \list{\@biblabel{\@arabic\c@enumiv}}%
135 {\settowidth\labelwidth{\@biblabel{#1}}%
136 \leftmargin\labelwidth
137 \advance\leftmargin\labelsep
138 \@openbib@code
139 \usecounter{enumiv}%
140 \let\p@enumiv\@empty
141 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
142 \sloppy
143 \clubpenalty4000
144 \@clubpenalty \clubpenalty
145 \widowpenalty4000%
146 \sfcode`\.\@m}
147 {\def\@noitemerr
148 {\@latex@warning{Empty `thebibliography' environment}}%
149 \endlist}
150%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
151
152%%% CITES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
153
154%% cite(s) in captions
155\newcommand{\ccite}[1]{\protect\cite{#1}\xspace}
156%% references in captions
157\newcommand{\cref}[1]{\protect\ref{#1}\xspace}
158%% also references in captions
159\newcommand{\fullcref}[1]{\protect\ref{#1} %
160in page \protect\pageref{#1}\xspace}
161%% id., normal
162\newcommand{\fullref}[1]{\ref{#1} in page \pageref{#1}\xspace}
163
164%% units
165\renewcommand{\u}[1]{\ensuremath{\mathrm{\,#1}}}
166
167%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
168
169%%% FANCYHEADINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
170\pagestyle{fancyplain}
171%\addtolength{\headwidth}{\marginparsep}
172%\addtolength{\headwidth}{\marginparwidth}
173\addtolength{\headwidth}{1cm}
174%\renewcommand{\chaptermark}[1]%
175% {\markboth{#1}{}}
176\renewcommand{\sectionmark}[1]%
177 {\markright{\thesection\ #1}}
178\renewcommand{\subsectionmark}[1]%
179 {\markright{\thesubsection\ #1}}
180\lhead[\fancyplain{}{\itshape \thepage}]%
181 {\fancyplain{}{\itshape \rightmark}}
182\rhead[\fancyplain{}{\itshape \thetitle}]%
183 {\fancyplain{}{\itshape \thepage}}
184\cfoot{}
185%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
186
187%%% CAPTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
188%\long\def\@makecaption#1#2{%
189%\centering\parbox[b][\height+\baselineskip][b]{0.8\linewidth}{\small{\bf #1}.\quad #2}}
190%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
191
192%%% SECTIONING COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
193\renewcommand{\section}{\@startsection
194 {section}%
195 {1}%
196 {0pt}%
197 {\baselineskip}%
198 {0.5\baselineskip}%
199 {\large\scshape}}
200
201\renewcommand{\subsection}{\@startsection
202 {subsection}%
203 {2}%
204 {0pt}%
205 {0.8\baselineskip}%
206 {0.5\baselineskip}%
207 {\bfseries}}
208
209\renewcommand{\subsubsection}{\@startsection
210 {subsubsection}%
211 {3}%
212 {10pt}%
213 {0.5\baselineskip}%
214 {0.2\baselineskip}%
215 {\itshape}}
216%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
218%%% GENERAL FORMATTING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
219\setlength{\parindent}{0pt}
220\setlength{\parskip}{0.2\baselineskip}
221%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
222
223\endinput
224
225%%EOF
Note: See TracBrowser for help on using the repository browser.