From ecbaadcc88ae38adb34e08755459318372ec13b8 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Tue, 12 Jan 2021 16:15:47 +0000
Subject: Default LaTeX preamble: some packages moved to preamble-project.tex

Until now, important LaTeX packages like 'caption' (for managing figure
captions), 'hyperref' (for managing links) and 'xcolor' (for managing
colors) were being loaded inside the optional
'tex/src/preamble-maneagge-defualt-style.tex' file. We recommend to remove
this file from loading when you use custom journal sytels. However, these
packages will often be necessary after loading special journal styles also.

With this commit, these packages are now loaded into LaTeX as part of the
'tex/src/preamble-project.tex' file. This file is in charge of LaTeX
settings that are custom to the project and independent of its style.

Several other small corrections are made with this commit:

 - I noticed that './project make texclean' crashes if no PDF exists in the
   working directory! So a '-f' was added to the 'rm' command of the
   'texclean' rule.

 - As part of the LaTeX Hyperref, we can set general metadata or properties
   for the PDF (that aren't written into the printable PDF, but into the
   file metadata). They can be viewed in many PDF viewers as PDF
   properties. Until now, we were only using the '\projecttitle' macro here
   to write the paper's title. However, thanks to the recently added
   'reproduce/analysis/config/metadata.conf', we now have a lot of useful
   information that can also go here. So the 'metadata-copyright-owner' is
   now used to define the PDF author, and the project's
   'metadata-git-repository' and commit hash are written into the PDF
   subject. But to import these, it was necessary to define them as LaTeX
   macros, hence the addition of these macros in 'initialize.mk'.

 - Some extra packages that aren't necessary to build the default PDF were
   removed in 'preamble-project.tex'.
---
 tex/src/preamble-maneage-default-style.tex | 54 ------------------------------
 1 file changed, 54 deletions(-)

(limited to 'tex/src/preamble-maneage-default-style.tex')

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}
-- 
cgit v1.2.1

