1 | %% This is file `icrc2013.sty' |
---|
2 | %% Style to 33nd International Cosmic Ray Conference 2013 Rio de Janeiro |
---|
3 | %% |
---|
4 | %% Adapted from icrc2011.sty by Casa Editorial Maluhy&Co. |
---|
5 | %% Any LaTeX article created with icrc2011.sty is fully compatible with this package. |
---|
6 | %% |
---|
7 | \NeedsTeXFormat{LaTeX2e} |
---|
8 | \ProvidesPackage{icrc2013}[2013/01/01 v0.3] |
---|
9 | |
---|
10 | %% Required packages |
---|
11 | \RequirePackage{mathptmx} |
---|
12 | \RequirePackage{ftnright} |
---|
13 | \RequirePackage{fancyhdr} |
---|
14 | \RequirePackage{graphicx} |
---|
15 | \RequirePackage{hyperref} |
---|
16 | \RequirePackage[stretch=24,shrink=24]{microtype} |
---|
17 | |
---|
18 | %% Logo |
---|
19 | \newcommand{\@logosource}{icrc2013_header} |
---|
20 | \newcommand{\logosource}[1]{\gdef\@logosource{#1}} |
---|
21 | |
---|
22 | %% Title |
---|
23 | \gdef\@@title{33nd International Cosmic Ray Conference, Rio de Janeiro 2013} |
---|
24 | |
---|
25 | %% SubTitle |
---|
26 | \gdef\@@subtitle{The Astroparticle Physics Conference} |
---|
27 | |
---|
28 | |
---|
29 | %% Page layout |
---|
30 | \paperwidth210truemm % |
---|
31 | \paperheight297truemm% |
---|
32 | \pdfpagewidth210truemm % |
---|
33 | \pdfpageheight297truemm% |
---|
34 | \hoffset0mm% |
---|
35 | \voffset-25.4mm% |
---|
36 | \textwidth170mm% |
---|
37 | \textheight252mm% |
---|
38 | \topmargin5mm% |
---|
39 | \oddsidemargin-5.4mm% |
---|
40 | \evensidemargin-5.4mm% |
---|
41 | \columnsep1.5pc% |
---|
42 | \headwidth\textwidth% |
---|
43 | \headheight20mm% |
---|
44 | \headsep1pc% |
---|
45 | \footskip2pc% |
---|
46 | \marginparsep0pc% |
---|
47 | |
---|
48 | %% Authors, afiliations, emails, abstract, paperid, etc. (same as icrc2011) |
---|
49 | \newcommand{\@authors}{} |
---|
50 | \newcommand{\authors}[1]{\renewcommand{\@authors}{#1}} |
---|
51 | \newcommand{\@paperid}{} |
---|
52 | \newcommand{\paperid}[1]{\renewcommand{\@paperid}{#1}} |
---|
53 | \newcommand{\@shorttitle}{} |
---|
54 | \newcommand{\shorttitle}[1]{\renewcommand{\@shorttitle}{#1}} |
---|
55 | \newcommand{\@shortauthors}{} |
---|
56 | \newcommand{\shortauthors}[1]{\renewcommand{\@shortauthors}{#1}} |
---|
57 | \newcommand{\@afiliations}{} |
---|
58 | \newcommand{\afiliations}[1]{\renewcommand{\@afiliations}{#1}} |
---|
59 | \newcommand{\@email}{} |
---|
60 | \newcommand{\email}[1]{\renewcommand{\@email}{#1}} |
---|
61 | \newcommand{\@abstract}{} |
---|
62 | \renewcommand{\abstract}[1]{\renewcommand{\@abstract}{#1}} |
---|
63 | \newcommand{\@keywords}{} |
---|
64 | \newcommand{\keywords}[1]{\renewcommand{\@keywords}{#1}} |
---|
65 | |
---|
66 | %% Fonts |
---|
67 | \def\@normalsize{\@setsize\normalsize{10pt}\xipt\@xipt} % 10 point on 11 |
---|
68 | \def\small{\@setsize\small{10pt}\ixpt\@ixpt} % 9 point on 10 |
---|
69 | \def\footnotesize{\@setsize\footnotesize{9pt}\ixpt\@ixpt} % 9 point on 10 |
---|
70 | \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt} % 7 point on 8 |
---|
71 | \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt} % 6 point on 7 |
---|
72 | \def\large{\@setsize\large{12pt}\xipt\@xipt} % 11 point on 12 |
---|
73 | \def\Large{\@setsize\Large{14pt}\xiipt\@xiipt} % 12 point on 14 |
---|
74 | \def\LARGE{\@setsize\LARGE{16pt}\xivpt\@xivpt} % 14 point on 16 |
---|
75 | \def\huge{\@setsize\huge{20pt}\xviipt\@xviipt} % 17 point on 20 |
---|
76 | \def\Huge{\@setsize\Huge{23pt}\xxpt\@xxpt} % 20 point on 23 |
---|
77 | |
---|
78 | \normalsize% default fontsize |
---|
79 | \parskip0pt\@plus.2pt% |
---|
80 | \parindent11pt% |
---|
81 | |
---|
82 | %% Header |
---|
83 | \fancypagestyle{plain}{ |
---|
84 | \setlength\headwidth{\textwidth} |
---|
85 | \renewcommand\headrulewidth{0pt} |
---|
86 | \renewcommand\footrulewidth{0pt} |
---|
87 | \fancyhf{} |
---|
88 | \fancyhead[R]{% |
---|
89 | \rightskip27mm% |
---|
90 | \small% |
---|
91 | \addtolength\baselineskip{2pt}% |
---|
92 | \@shorttitle\strut\\% |
---|
93 | \hrulefill\enskip\textsc{\@@title}\strut\\[-2ex]% |
---|
94 | } |
---|
95 | \fancyhead[L]{% |
---|
96 | \small% |
---|
97 | \unitlength1mm% |
---|
98 | \begin{picture}(0,0) |
---|
99 | \put(170,.2){\makebox(0,0)[br]{\includegraphics[width=23mm]{icrc2013_header}}} |
---|
100 | %%%\put(0,6){\makebox(0,0)[bl]{[\,\thepage\,]}}% optional page numbering |
---|
101 | \end{picture}% |
---|
102 | } |
---|
103 | } |
---|
104 | \pagestyle{plain} |
---|
105 | |
---|
106 | %% Footnote |
---|
107 | \footnotesep11pt% |
---|
108 | \skip\footins11pt plus 4pt minus 2pt |
---|
109 | \def\footnoterule{\kern-3pt\hrule width.382\linewidth\kern2.6pt} |
---|
110 | \renewcommand\@makefntext[1]{% |
---|
111 | \par% |
---|
112 | \begingroup% |
---|
113 | \footnotesize\hangindent1em\hangafter0% |
---|
114 | \noindent\makebox[0pc][r]{\makebox[1em][l]{\thefootnote.}}\ignorespaces#1% |
---|
115 | \par% |
---|
116 | \endgroup% |
---|
117 | } |
---|
118 | \setcounter{footnote}{0} |
---|
119 | |
---|
120 | %% Article title |
---|
121 | \renewcommand{\maketitle}{ |
---|
122 | \twocolumn[% |
---|
123 | \begin{@twocolumnfalse}% |
---|
124 | \thispagestyle{empty}% |
---|
125 | \normalsize% |
---|
126 | % icrc title and logo |
---|
127 | \begingroup% |
---|
128 | \parindent0pt% |
---|
129 | \unitlength1mm% |
---|
130 | \begin{picture}(0,0)% |
---|
131 | \put(0,8){\makebox(0,0)[tl]{\normalsize\scshape\resizebox{115mm}{!}{\@@title}}} |
---|
132 | \put(0,2.9){\makebox(0,0)[tl]{\normalsize\scshape\resizebox{70mm}{!}{\@@subtitle}}} |
---|
133 | \put(167,12){\makebox(0,0)[tr]{\includegraphics[width=10pc]{\@logosource}}} |
---|
134 | \end{picture}% |
---|
135 | \par% |
---|
136 | \endgroup% |
---|
137 | \vskip2\baselineskip% |
---|
138 | % article title |
---|
139 | \begingroup% |
---|
140 | \parindent0pt% |
---|
141 | \unitlength1mm% |
---|
142 | \begin{picture}(0,0)% |
---|
143 | \put(0,8.9){% |
---|
144 | \makebox(0,0)[tl]{% |
---|
145 | \parbox{115mm}{% |
---|
146 | \parindent0pt% |
---|
147 | \raggedright\bfseries\LARGE% |
---|
148 | \hrulefill\\% |
---|
149 | %\vspace{1cm} |
---|
150 | %\@title% |
---|
151 | }% |
---|
152 | }% |
---|
153 | }% |
---|
154 | \end{picture}% |
---|
155 | \par% |
---|
156 | \endgroup%h |
---|
157 | % fix distance |
---|
158 | \vskip-0.5\baselineskip% |
---|
159 | % proceeding title |
---|
160 | \begingroup% |
---|
161 | \parindent0pt% |
---|
162 | \raggedright\bfseries\LARGE% |
---|
163 | \@title% |
---|
164 | \endgroup |
---|
165 | \vskip0.5\baselineskip% |
---|
166 | % authors |
---|
167 | \begingroup% |
---|
168 | \parindent0pt% |
---|
169 | \raggedright\scshape% |
---|
170 | \@authors% |
---|
171 | \par% |
---|
172 | \endgroup% |
---|
173 | \vskip.5\baselineskip% |
---|
174 | % afiliations |
---|
175 | \begingroup% |
---|
176 | \parindent0pt% |
---|
177 | \raggedright\itshape\footnotesize% |
---|
178 | \@afiliations% |
---|
179 | \par% |
---|
180 | \endgroup% |
---|
181 | \vskip.5\baselineskip% |
---|
182 | % email |
---|
183 | \begingroup% |
---|
184 | \parindent0pt% |
---|
185 | \textit{\@email}% |
---|
186 | \par% |
---|
187 | \endgroup% |
---|
188 | \vskip\baselineskip% |
---|
189 | % abstract and keywords |
---|
190 | \begingroup% |
---|
191 | \leftskip3pc% |
---|
192 | \textbf{Abstract:}\enskip{\@abstract}\par% |
---|
193 | \vskip\baselineskip% |
---|
194 | \rightskip0pc\@plus2pc% |
---|
195 | \textbf{Keywords:}\enskip{\@keywords}\par% |
---|
196 | \endgroup% |
---|
197 | \vskip2\baselineskip% |
---|
198 | \end{@twocolumnfalse}% |
---|
199 | ]% |
---|
200 | } |
---|
201 | |
---|
202 | %% Figures |
---|
203 | \gdef\figurename{Fig.} |
---|
204 | \def\fnum@figure{\textbf{\figurename\,\thefigure}} |
---|
205 | |
---|
206 | %% Tables |
---|
207 | \gdef\tablename{Table} |
---|
208 | \def\fnum@table{\textbf{\tablename~\thetable}} |
---|
209 | |
---|
210 | %% Bibliography layout |
---|
211 | \let\oldthebibliography=\thebibliography |
---|
212 | \let\endoldthebibliography=\endthebibliography |
---|
213 | \renewenvironment{thebibliography}[1] |
---|
214 | {% |
---|
215 | \begin{oldthebibliography}{#1}% |
---|
216 | \parskip0pt\@plus.2pt% |
---|
217 | \itemsep\parskip% |
---|
218 | \raggedright% |
---|
219 | }{% |
---|
220 | \end{oldthebibliography}% |
---|
221 | } |
---|
222 | |
---|
223 | %% Main sections |
---|
224 | \renewcommand\section{% |
---|
225 | \@startsection{section}% |
---|
226 | {1}% |
---|
227 | {\z@}% |
---|
228 | {-18pt\@plus1pt\@minus1pt}% |
---|
229 | {.382\baselineskip}% |
---|
230 | {\raggedright\Large\bfseries\boldmath}% |
---|
231 | } |
---|
232 | \renewcommand\subsection{% |
---|
233 | \@startsection{subsection}% |
---|
234 | {2}% |
---|
235 | {\z@}% |
---|
236 | {-9pt\@plus4pt\@minus3pt}% |
---|
237 | {.2\baselineskip}% |
---|
238 | {\raggedright\large\bfseries\boldmath}% |
---|
239 | } |
---|
240 | \renewcommand\subsubsection{% |
---|
241 | \@startsection{subsubsection}% |
---|
242 | {3}% |
---|
243 | {\z@}% |
---|
244 | {-9pt\@plus4pt\@minus3pt}% |
---|
245 | {.2\baselineskip}% |
---|
246 | {\raggedright\normalsize\bfseries\boldmath}% |
---|
247 | } |
---|
248 | |
---|
249 | %% General behavior of paragraph layout |
---|
250 | \flushbottom |
---|
251 | \sloppy |
---|
252 | \adjdemerits=20 |
---|
253 | \hyphenpenalty=20 |
---|
254 | \exhyphenpenalty=0 |
---|
255 | \doublehyphendemerits=20 |
---|
256 | \finalhyphendemerits=80 |
---|
257 | \lefthyphenmin=1 |
---|
258 | \righthyphenmin=1 |
---|
259 | \binoppenalty=100 |
---|
260 | \interlinepenalty=0 |
---|
261 | \predisplaypenalty=40 |
---|
262 | \postdisplaypenalty=0 |
---|
263 | \displaywidowpenalty=9999 |
---|
264 | \widowpenalty=9999 |
---|
265 | \clubpenalty=300 |
---|
266 | \brokenpenalty=30 |
---|
267 | \pretolerance=300 |
---|
268 | \tolerance=900 |
---|
269 | \emergencystretch=1em |
---|
270 | \frenchspacing |
---|
271 | |
---|
272 | %% Some glue to garantee flushbottom layout |
---|
273 | \AtBeginDocument{% |
---|
274 | \normalsize% |
---|
275 | \baselineskip11pt\@plus.2pt\@minus.1pt% |
---|
276 | \parskip0pt% |
---|
277 | } |
---|
278 | |
---|
279 | \twocolumn |
---|
280 | |
---|
281 | |
---|
282 | %% End of file `icrc2013.sty' |
---|