From 7a989feae06c46f57d31fc434f940561a4199669 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Tue, 27 Feb 2018 20:00:07 +0100
Subject: Abstract added to final PDF along with better explanation

An abstract is also something most research reports will need, so a simple
macro was defined to make it easy (not too many code lines within the text
of the main body) to implement an abstract.

The title was also moved up a little to better use the extra white space at
the top of the page.

Finally, the `\highlightchanges' along with its explanation (both as
comments and within the text with examples) was added in `paper.tex' to
demonstrate how useful the `\new' and `\tonote' macros are.
---
 tex/preamble-style.tex | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

(limited to 'tex/preamble-style.tex')

diff --git a/tex/preamble-style.tex b/tex/preamble-style.tex
index b53181d..2e4180f 100644
--- a/tex/preamble-style.tex
+++ b/tex/preamble-style.tex
@@ -64,6 +64,8 @@
 \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}
+
 
 
 
@@ -98,6 +100,37 @@
 
 
 
+%% Define the abstract environment
+\renewenvironment{abstract}
+ {\vspace{-0.5cm}\small%
+  \list{}{%
+    \setlength{\leftmargin}{2cm}%
+    \setlength{\rightmargin}{\leftmargin}%
+  }%
+  \item\relax}
+ {\endlist}
+
+
+
+
+
+%% To keep the main page's code clean.
+\newcommand{\includeabstract}[1]{%
+\twocolumn[%
+  \begin{@twocolumnfalse}%
+    \maketitle%
+    \begin{abstract}%
+    #1%
+    \end{abstract}%
+    \vspace{1cm}%
+  \end{@twocolumnfalse}%
+  ]%
+}
+
+
+
+
+
 % Basic Document information that goes into the PDF meta-data.
 \hypersetup
 {
@@ -112,7 +145,7 @@
 
 
 % Title, author, pipeline info and date as they appear on the output PDF.
-\title{THE TITLE OF YOUR PROJECT}
+\title{\vspace{-3em}THE TITLE OF YOUR PROJECT}
 \author{YOUR NAME, COLLEAGE1 NAME, ETC}
 \date{\small Reproduction pipeline \pipelineversion{}
       and Gnuastro \gnuastroversion\\on \today, \currenttime}
-- 
cgit v1.2.1

