aboutsummaryrefslogtreecommitdiff
path: root/tex
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-02-27 20:00:07 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-02-27 20:00:07 +0100
commit7a989feae06c46f57d31fc434f940561a4199669 (patch)
treee85582b283830527ef21d14a92ba02c4e060ba79 /tex
parent95a01b1eff0488698150c098e75e2224fcdc42a6 (diff)
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.
Diffstat (limited to 'tex')
-rw-r--r--tex/preamble-style.tex35
1 files changed, 34 insertions, 1 deletions
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}