aboutsummaryrefslogtreecommitdiff
path: root/tex/src/preamble-project.tex
blob: 98e797de44f01dd60349594429a507f9933f694d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
%% Necessary macros for this project.
%%
%% These are a set of packages that have been commonly necessary in most
%% LaTeX usages. However, if any are not needed in your work, please feel
%% free to remove them.
%
%% Copyright (C) 2018-2021 Mohammad Akhlaghi <mohammad@akhlaghi.org>
%% Copyright (C) YYYY Your Name <your@email.address>
%
%% This file is free software: you can redistribute it and/or modify it
%% under the terms of the GNU General Public License as published by the
%% Free Software Foundation, either version 3 of the License, or (at your
%% option) any later version.
%
%% This file is distributed in the hope that it will be useful, but WITHOUT
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
%% FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
%% for more details.
%
%% You should have received a copy of the GNU General Public License along
%% with this file.  If not, see <http://www.gnu.org/licenses/>.





%% Packages you may need in your project
%% -------------------------------------
%
%% Here you can add/remove any custom LaTeX package that you need for this
%% project that aren't provided by the journal's style.

%% For loading images into the output (with '\includegraphics').
\usepackage{graphicx}

%% Ordering correction between 'figure' and 'figure*' ('figure*' is
%% commonly used in two-column documents, where the figure should span both
%% columns).
\usepackage{fixltx2e}

%% Color management.
\usepackage{xcolor}
\color{black} % Color of main text.
\definecolor{DarkBlue}{RGB}{0,0,90}

%% Caption management: The `setspace' package defines the `stretch'
%% variable. `abovecaptionskip' is the distance between the figure and the
%% caption. You can use 'captionof{figure}{...}' to use these custom
%% 'figure' caption that is defined here.
\usepackage{setspace, caption}
\captionsetup{font=footnotesize, labelfont={color=DarkBlue,bf}, skip=1pt}
\captionsetup[figure]{font={stretch=1, small}}
\setlength{\abovecaptionskip}{3pt plus 1pt minus 1pt}
\setlength{\belowcaptionskip}{-1.25em}

%% Manage links in the produced paper (for example their colors), and
%% include document information in the "Properties" of the PDF.
\usepackage[
  colorlinks,
  urlcolor=blue,
  citecolor=blue,
  linkcolor=blue,
  linktocpage]{hyperref}
\renewcommand\UrlFont{\rmfamily}
\hypersetup{
    pdftitle={\projecttitle},
    pdfauthor={\projectcopyrightowner},
    pdfsubject={\projectgitrepo{} (commit \projectversion)},
    pdfkeywords={Reproducible research, Maneage, ADD YOUR OWN}
}





%% BibLaTeX or PGFPlots templates
%% ------------------------------
%
%% These are ready-made customizations of these two commonly used packages
%% that you can use as a template for your own project: BibLaTeX (advanced
%% bibliography management) or PGFPlots (for drawing plots within LaTeX
%% directly from tables of data). If you don't use them, you can just
%% delete these two lines and also delete their files from your branch (to
%% keep the 'tex/src' directory on your branch clean).
\input{tex/src/preamble-biblatex.tex}
\input{tex/src/preamble-pgfplots.tex}





%% Style of default paper (DELETE IF USING JOURNAL STYLES)
%% -------------------------------------------------------
%
%% This is primarily defined for the default Maneage paper style. So when
%% you later import your journal's style, delete this line (and these
%% comments). Also delete the file (to keep your project source branch
%% clean from files you don't need/use).
\input{tex/src/preamble-maneage-default-style.tex}