74 lines
2.8 KiB
TeX
74 lines
2.8 KiB
TeX
|
$head_prefix% generated by Docutils <http://docutils.sourceforge.net/>
|
||
|
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
|
||
|
\usepackage{cmap} % fix search and cut-and-paste in Acrobat
|
||
|
$requirements
|
||
|
%%% Custom LaTeX preamble
|
||
|
%%% For some weird reasond, Dollar latex_preamble loads courier and stuff, so we disable that...
|
||
|
|
||
|
%%% User specified packages and stylesheets
|
||
|
$stylesheet
|
||
|
%%% This is hard coded as we don't want to configure rst2latex nor call it with a very long list of arguments
|
||
|
%% Only god knows why they set the counter to 0...
|
||
|
\setcounter{secnumdepth}{3}
|
||
|
|
||
|
|
||
|
% To have real PDF comments
|
||
|
\usepackage{pdfcomment}
|
||
|
\usepackage{xcolor}
|
||
|
|
||
|
%%% HEADERS & FOOTERS
|
||
|
\usepackage{lastpage}
|
||
|
\usepackage{titletoc}
|
||
|
\usepackage{titlesec}
|
||
|
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
|
||
|
\pagestyle{fancy} % options: empty , plain , fancy
|
||
|
\renewcommand{\headrulewidth}{0pt} % customise the layout...
|
||
|
\lhead{}\chead{Bylaws of GNOME Foundation as of April 5, 2002}\rhead{}
|
||
|
\lfoot{}\cfoot{\thepage{}/\pageref{LastPage}}\rfoot{}
|
||
|
|
||
|
|
||
|
% \renewcommand{\thesection}{\textsc{ARTICLE}~\Roman{section}:}
|
||
|
\renewcommand\thesection{\Roman{section}}
|
||
|
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
|
||
|
% \newcommand\romanref[1]{\ref{#1}}
|
||
|
% \newcounter{romansectionreftmp}
|
||
|
% \newcommand\romanref[1]{%
|
||
|
% \setcounter{romansectionreftmp}{\ref{#1}}%
|
||
|
% \Roman{romansectionreftmp}%
|
||
|
% }
|
||
|
|
||
|
% Have a pagebreak instead of a ruler
|
||
|
\newcommand*{\DUtransition}{\pagebreak[4]}
|
||
|
|
||
|
% To use those, do smth like .. role:: huge
|
||
|
% in your document
|
||
|
\newcommand{\DUroleuppercase}[1]{\uppercase{#1}}
|
||
|
\newcommand{\DUrolecentered}[1]{\begin{center}#1\end{center}}
|
||
|
%\newcommand{\DUrolecentered}[1]{{\centering #1}}
|
||
|
\newcommand{\DUrolehuge}[1]{\begin{huge}#1\end{huge}}
|
||
|
\newcommand{\DUrolehugeuppercase}[1]{\DUrolehuge{\DUroleuppercase{#1}}}
|
||
|
|
||
|
\newcommand{\comment}[1]{\pdfmargincomment{#1}%
|
||
|
\mbox{}\marginpar{\footnotesize\raggedright\hspace{0pt}\color{red}\emph{#1}}%
|
||
|
}
|
||
|
\newcommand{\DUrolecomment}[1]{\comment{#1}}
|
||
|
|
||
|
|
||
|
%%% Fallback definitions for Docutils-specific commands
|
||
|
$fallbacks$pdfsetup
|
||
|
%%% Body
|
||
|
\begin{document}
|
||
|
%%% Again, hardcoded to not have to configure or call rst2latex with special arguments
|
||
|
% \selectlanguage{english}
|
||
|
% \titlelabel{\thesection}{\textsc{ARTICLE}~\Roman{section}:}
|
||
|
\titleformat{\section}{\sffamily\Large\bfseries}{ARTICLE \Roman{section}:}{1em}{\uppercase}
|
||
|
\titleformat{\subsection}{\sffamily\large\bfseries}{Section \thesubsection:}{1em}{}
|
||
|
\titlecontents{section}[1.0em]
|
||
|
{\addvspace{1em}\bfseries}
|
||
|
{\contentslabel{3em}}
|
||
|
{\hspace*{-2.3em}}
|
||
|
{\hfill\contentspage}
|
||
|
|
||
|
$body_pre_docinfo$docinfo$dedication$abstract$body
|
||
|
\end{document}
|