|
1 \NeedsTeXFormat{LaTeX2e} |
|
2 \ProvidesPackage{abstracts} |
|
3 \RequirePackage{graphicx} |
|
4 %\RequirePackage{setspace} |
|
5 \RequirePackage[a4paper,textwidth=16cm,textheight=25cm]{geometry} |
|
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
7 |
|
8 %\RequirePackage[utf8]{inputenc} |
|
9 \RequirePackage[T1]{fontenc} |
|
10 \RequirePackage{lmodern} |
|
11 \RequirePackage{titlesec} |
|
12 \RequirePackage{fancyhdr} |
|
13 \RequirePackage{framed} |
|
14 \RequirePackage[hyphens]{url} |
|
15 \RequirePackage{enumitem} |
|
16 \RequirePackage{hyperref} |
|
17 |
|
18 % For ltxgrid to work |
|
19 %\newcommand{\class@name}{gael} |
|
20 |
|
21 %----------------------------------------------------------------------------- |
|
22 % Special-purpose color definitions (dark enough to print OK in black and white) |
|
23 \usepackage{color} |
|
24 |
|
25 % A few colors to replace the defaults for certain link types |
|
26 \definecolor{orange}{cmyk}{0,0.4,0.8,0.2} |
|
27 \definecolor{darkorange}{rgb}{.71,0.21,0.01} |
|
28 \definecolor{darkblue}{rgb}{.01,0.21,0.71} |
|
29 \definecolor{darkgreen}{rgb}{.1,.52,.09} |
|
30 |
|
31 %----------------------------------------------------------------------------- |
|
32 % The hyperref package gives us a pdf with properly built |
|
33 % internal navigation ('pdf bookmarks' for the table of contents, |
|
34 % internal cross-reference links, web links for URLs, etc.) |
|
35 \usepackage{hyperref} |
|
36 \hypersetup{pdftex, % needed for pdflatex |
|
37 breaklinks=true, % so long urls are correctly broken across lines |
|
38 colorlinks=true, |
|
39 urlcolor=blue, |
|
40 linkcolor=darkblue, |
|
41 citecolor=darkgreen, |
|
42 } |
|
43 |
|
44 |
|
45 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
46 % Definitions of the commands used in abstracts : |
|
47 |
|
48 % For the hyperref package we need to include section call in the source, |
|
49 % so let's render them useless : |
|
50 |
|
51 \setlength\parindent{0pt} |
|
52 |
|
53 \def\title#1{ |
|
54 \noindent |
|
55 \section*{\Large #1} |
|
56 \addcontentsline{toc}{section}{\sffamily #1} |
|
57 } |
|
58 |
|
59 \def\addauthorstoc#1{% |
|
60 \addtocontents{toc}{\vspace*{-.5ex}{\small #1}\protect\newline\smallskip} |
|
61 } |
|
62 |
|
63 \def\presentingauthor#1{ |
|
64 \begin{minipage}{0.8\linewidth} |
|
65 ~ ~ ~\underline{#1} |
|
66 \end{minipage} |
|
67 } |
|
68 |
|
69 \def\email#1{{\small \tt \url{#1}}} |
|
70 |
|
71 \renewenvironment{abstract}{\sffamily\bfseries}{\par\smallskip} |
|
72 |
|
73 |
|
74 \def\otherauthors#1{ |
|
75 {\sffamily #1}\par |
|
76 } |
|
77 |
|
78 \def\address#1{{\em #1}} |
|
79 |
|
80 \def\tablefootnote#1#2{\hbox to 0pt{$^{\rm #1}$\footnotesize #2\hss}} |
|
81 |
|
82 \def\thebibliography#1{ |
|
83 \list{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]} |
|
84 \leftmargin\labelwidth\advance\leftmargin\labelsep\itemsep-\parsep |
|
85 \topsep0pt\usecounter{enumi}\small} |
|
86 \small |
|
87 } |
|
88 |
|
89 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
90 % Styling |
|
91 \titleformat*{\section}{\large\bfseries\sffamily} |
|
92 \titleformat*{\subsection}{\bfseries\sffamily} |
|
93 \titleformat*{\subsubsection}{\sffamily} |
|
94 |
|
95 \def\resetheadings#1#2#3#4{ |
|
96 \fancyhf{} %delete the current section for header and footer |
|
97 \fancyfoot[RE,LO]{\sffamily\bfseries\thepage} |
|
98 \fancyhead[LO]{\bfseries Proceedings of the 8$^{\text{th}}$ Python in |
|
99 Science Conference (SciPy 2009)} |
|
100 \fancyfoot[RO]{\footnotesize #3} |
|
101 \fancyfoot[LE]{\footnotesize #4} |
|
102 \fancyhead[RE]{#1} |
|
103 \renewcommand{\headrulewidth}{1pt} |
|
104 \renewcommand{\footrulewidth}{1pt} |
|
105 \renewcommand{\headwidth}{\textwidth} |
|
106 \pagestyle{fancy} |
|
107 |
|
108 \gdef\this@citation{#2} |
|
109 |
|
110 \fancypagestyle{mytitle}{% |
|
111 \fancyhf{} % clear all header and footer fields |
|
112 \fancyfoot[RE,LO]{\sffamily\bfseries\thepage} |
|
113 \fancyfoot[LE,RO]{\footnotesize \this@citation} |
|
114 \fancyhead[LO,RE]{\bfseries Proceedings of the 8$^{\text{th}}$ Python |
|
115 in Science Conference (SciPy 2009)} |
|
116 \renewcommand{\headrulewidth}{1pt} |
|
117 \renewcommand{\footrulewidth}{1pt} |
|
118 \renewcommand{\headwidth}{\textwidth} |
|
119 } |
|
120 \thispagestyle{mytitle} |
|
121 } |
|
122 |
|
123 \resetheadings{}{}{}{} |
|
124 |
|
125 \setlength\columnsep{3ex} |
|
126 |
|
127 \setlength\parindent{0pt} |
|
128 |
|
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
130 % A cooler caption |
|
131 \renewcommand{\caption}[2][foo]{% |
|
132 \begin{minipage}{0.9\linewidth} |
|
133 \small\sffamily\sl% |
|
134 \hspace*{-0.05\linewidth}% |
|
135 #2 |
|
136 \end{minipage}}% |
|
137 %} |
|
138 |
|
139 % Float parameters, for more full pages. |
|
140 \renewcommand{\topfraction}{0.9} % max fraction of floats at top |
|
141 \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom |
|
142 |
|
143 \renewcommand{\textfraction}{0.07} % allow minimal text w. figs |
|
144 % Parameters for FLOAT pages (not text pages): |
|
145 \renewcommand{\floatpagefraction}{0.6} % require fuller float pages |
|
146 % % N.B.: floatpagefraction MUST be less than topfraction !! |
|
147 |
|
148 |
|
149 |
|
150 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
151 % A hack to have longtable work without problems with mutlicolumn |
|
152 |
|
153 \renewenvironment{longtable}[2][1]{% |
|
154 %\setlength{\locallinewidth}{1.3\linewidth} |
|
155 \footnotesize |
|
156 % Hack |
|
157 %\def\textbf#1{{\sffamily\bfseries #1}} |
|
158 \sffamily |
|
159 \begin{center} |
|
160 \begin{tabular}{#2} |
|
161 }{% |
|
162 \end{tabular} |
|
163 \end{center} |
|
164 } |
|
165 |
|
166 \def\endhead{\small} |
|
167 |
|
168 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
169 % Code blocks |
|
170 \newlength\leftsidespace |
|
171 |
|
172 \renewenvironment{quote}{% |
|
173 \par |
|
174 \smallskip |
|
175 \hspace{0.03\linewidth}% |
|
176 \begin{minipage}{0.97\linewidth} |
|
177 \footnotesize}{% |
|
178 \end{minipage} |
|
179 \smallskip |
|
180 } |
|
181 |
|
182 % Hack to restore or original font size }in lists: |
|
183 \let\old@item\item |
|
184 \def\item#1{% |
|
185 \normalsize\old@item{#1}% |
|
186 } |
|
187 |
|
188 \setitemize{leftmargin=1em} |
|
189 |
|
190 \setlength{\parskip}{0.1em plus 0.5em minus 0.1em} |
|
191 |
|
192 %% Hack to get good linebreaking in tt: |
|
193 %\let\oldtexttt\textt |
|
194 %\DeclareUrlCommand\mytexttt{% |
|
195 %\mathchardef\UrlBreakPenalty=0 |
|
196 %\mathchardef\UrlBigBreakPenalty=0 |
|
197 %} |
|
198 %\def\texttt#1{\mytexttt{#1}} |
|
199 |
|
200 % :vim:ft=tex: |