[Tex/LaTex] Abstract – doublespace

abstractline-spacingthesis

I have got a problem with an abstract. I created a PHD Thesis in Latex. I use thesis document style. I want abstract to be doublespaced. I put that code to obtained it:

{\doublespacing
 \newpage\ifpdf\pdfbookmark[1]{Acknowledgement}{label:ack}\fi\input{acknowledge.tex}
 \newpage\ifpdf\pdfbookmark[1]{Abstract}{label:abst}\fi     \input{abstract.tex}
}

Unfortunately, everything is doublespaced, except the end of the abstract (see picture):
The interline attribute is changed in the end of the abstract

Does anybody has any suggestions? Regards.

Best Answer

It's important to realize that the line spacing in effect for a given paragraph is determined by the settings that apply at the end of that paragraph, not by those at the paragraph's beginning.

Your code snippet doesn't indicate what comes immediately after the end of the group in which \doublespacing is in force. It also doesn't indicate what's at the end of the file abstract.tex -- specifically, whether there's either an implicit paragraph break (e.g., one or more all-blank lines) or an explicit paragraph break (e.g., \par). At any rate, it appears to be the case that there is currently no implicit or explicit paragraph break between the end of abstract.tex and the subsequent material; it would certainly explain why the final paragraph of the abstract is spaced differently from the preceding one.

There are several remedies, which all come down to providing that all-important paragraph break at the end of the abstract:

  • Insert a \par statement between \input{abstract.tex} and the group's closing right curly brace, or immediately after that right curly brace.

  • Insert one or more all-blank lines either immediately before or immediately after the right curly brace that terminates the scope of the \doublespacing command. (All-blank lines act like an implicit \par statement.)

  • Use the doublespacing environment -- also provided by the setspace package -- instead of the \doublespacing command. Upon entering this environment, LaTeX will execute the command \doublespacing for you. When exiting from this environment, LaTeX will execute the command \restore@spacing; that command, in turn, executes -- you guessed it -- \par.