aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reproduce/analysis/make/initialize.mk4
-rw-r--r--tex/src/preamble-maneage-default-style.tex54
-rw-r--r--tex/src/preamble-project.tex54
3 files changed, 42 insertions, 70 deletions
diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk
index 81943db..886c0a7 100644
--- a/reproduce/analysis/make/initialize.mk
+++ b/reproduce/analysis/make/initialize.mk
@@ -237,7 +237,7 @@ clean-mmap:; rm -f reproduce/config/gnuastro/mmap*
# ------------------------------------------
texclean:
- rm *.pdf
+ rm -f *.pdf
rm -rf $(texdir)/build/*
mkdir $(texdir)/build/tikz # 'tikz' is assumed to already exist.
@@ -505,6 +505,8 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
echo "\newcommand{\projectdate}{$$d}" > $@
echo "\newcommand{\projecttitle}{$(metadata-title)}" >> $@
echo "\newcommand{\projectversion}{$(project-commit-hash)}" >> $@
+ echo "\newcommand{\projectgitrepo}{$(metadata-git-repository)}" >> $@
+ echo "\newcommand{\projectcopyrightowner}{$(metadata-copyright-owner)}" >> $@
# Calculate the latest Maneage commit used to build this
# project:
diff --git a/tex/src/preamble-maneage-default-style.tex b/tex/src/preamble-maneage-default-style.tex
index 4e294a5..0f1c84a 100644
--- a/tex/src/preamble-maneage-default-style.tex
+++ b/tex/src/preamble-maneage-default-style.tex
@@ -64,37 +64,6 @@
-%% Color related settings:
-\usepackage{xcolor}
-\color{black} % Text color
-\definecolor{DarkBlue}{RGB}{0,0,90}
-
-
-
-
-
-
-% figure and figure* ordering correction:
-\usepackage{fixltx2e}
-
-
-
-
-
-%% For editing the caption appearence. The `setspace' package defines
-%% the `stretch' variable. `abovecaptionskip' is the distance between
-%% the figure and the caption.
-\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}
-
-
-
-
-
-
%% To make the footnotes align:
\usepackage[hang]{footmisc}
\setlength\footnotemargin{10pt}
@@ -110,20 +79,6 @@
-%To make links to webpages and include document information in the
-%properties of the PDF
-\usepackage[
- colorlinks,
- urlcolor=blue,
- citecolor=blue,
- linkcolor=blue,
- linktocpage]{hyperref}
-\renewcommand\UrlFont{\rmfamily}
-
-
-
-
-
%% Define the abstract environment
\renewenvironment{abstract}
{\vspace{-0.5cm}\small%
@@ -199,15 +154,6 @@
{0em}
{ }
-% Basic Document information that goes into the PDF meta-data.
-\hypersetup
-{
- pdfauthor={YOUR NAME},
- pdfsubject={\projecttitle},
- pdftitle={\projecttitle},
- pdfkeywords={SOME, KEYWORDS, FOR, THE, PDF}
-}
-
%% Title and author information
\usepackage{authblk}
\renewcommand\Authfont{\small\scshape}
diff --git a/tex/src/preamble-project.tex b/tex/src/preamble-project.tex
index 2a3dd0e..98e797d 100644
--- a/tex/src/preamble-project.tex
+++ b/tex/src/preamble-project.tex
@@ -24,27 +24,51 @@
-%% Packages you need in your project
-%% ---------------------------------
+%% 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.
-% Better than verbatim for displaying typed text.
-\usepackage{alltt}
-
-% For arithmetic opertions within LaTeX
-\usepackage[nomessages]{fp}
-
-%To add a code font to the text:
-\usepackage{courier}
-
-%To add some enumerating styles
-\usepackage{enumerate}
-
-%Including images if necessary
+%% 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}
+}
+