I am using the abstract package, but want to remove the title and associated horizontal spacing. Is there an easy way to do this?
(Be aware: this may be a complete newby question, as I have only recently started to use LaTex. Please be kind!)
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
\documentclass[10pt,twocolumn]{article}
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\geometry{margin=1in} % for example, change the margins to 2 inches all round
\addtolength{\topmargin}{-10mm}
%%% PACKAGES
\usepackage{abstract}
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\mdseries\upshape
\sectionrule{15pt}{0pt}{-5pt}{1pt} }
\title{Title Title Title}
\author{Alistair Collins, Company}
\date{} % Activate to display a given date or no date (if empty), otherwise the current date is printed
\begin{document}
\twocolumn[
\maketitle
\begin{onecolabstract}
One Column Abstract - it is the Abstract title that I wish to remove.\\
\end{onecolabstract}
]
\section{Section Title}
\textit{Italic text as first paragraph\\\\
}
Main text
\end{document}
Best Answer
The simplest way is
The title is stored in
\abstractname
, so we clear it; butabstract
puts the title between\begin{center}
and\end{center}
, but actuallycenter
is stored in the macro\absnamepos
; so we abuse LaTeX features and place the (empty) title in the (inexistent)empty
environment so the result is that nothing will be printed and no excess space will be set.