Text Formattingsetstretch after the abstract

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
aredonda
Posts: 2
Joined: Mon May 06, 2013 10:12 am

setstretch after the abstract

Post by aredonda »

Hi there,

I'm using setstretch but I would like it to affect the whole text BUT the abstract. I've tried placing it right after it but it doesn't work.
Any ideas?

Agustin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

setstretch after the abstract

Post by cgnieder »

Hi Agustin,

Welcome to the LaTeX community!

Without an example document “it doesn't work” is a rather vague information. I am guessing though, that you want/need double-spacing in your document but want to disable it for the abstract? The setspace package is the recommended package for this kind of things which provides an easy interface:

Code: Select all

\documentclass{article}
\usepackage{setspace}

\usepackage{lipsum}% for dummy text

\begin{document}
\doublespacing
\tableofcontents

\singlespacing
\begin{abstract}
 \lipsum[1-2]
\end{abstract}

\doublespacing
\section{Foo Bar}
\lipsum

\section{Bar Foo}
\lipsum

\end{document}
Regards
site moderator & package author
aredonda
Posts: 2
Joined: Mon May 06, 2013 10:12 am

Re: setstretch after the abstract

Post by aredonda »

Great. Thanks for your answer...it worked!
Post Reply