Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
1  
You should provide a minimal example of code. –  egreg Jan 27 '12 at 11:06
    
Added code - hope it is at least roughly minimal! It still produces what I expect...and still has the Abstract title that I'd like to remove. –  Alistair Collins Jan 27 '12 at 11:23
1  
Welcome to TeX.sx! For some hints on how to produce a minimal working example (MWE), see meta.tex.stackexchange.com/questions/228/…. –  doncherry Jan 27 '12 at 11:28
add comment

2 Answers

up vote 17 down vote accepted

The simplest way is

\usepackage{abstract}
\renewcommand{\abstractname}{}    % clear the title
\renewcommand{\absnamepos}{empty} % originally center

The title is stored in \abstractname, so we clear it; but abstract puts the title between \begin{center} and \end{center}, but actually center 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.

share|improve this answer
add comment
\renewcommand{\abstractname}{\vspace{-\baselineskip}}

Slightly more economical than the proposed solution (no need for abstract package).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.