Page Layoutkeeping two paragraphs on same page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Curious George
Posts: 9
Joined: Wed Apr 04, 2012 6:33 pm

keeping two paragraphs on same page

Post by Curious George »

Recently I used LaTex to create an abstract booklet for a mini-conference. For each entry I tried to use a format like:

Code: Select all

\begin{samepage}
\section*{Presenters's name}
Presenter's Affiliation\\
Presentation Title\\[2ex]
Abstract
\end{samepage}

but there were often page breaks between the Title and the Abstract. Changing the above to:

Code: Select all

\begin{samepage}
\section*{Presenters's name}
Presenter's Affiliation\\
Presentation Title\\
\ \\
Abstract
\end{samepage}

removed the unwanted page breaks. But this seems somewhat inelegant; also rather limiting, since the vertical gap between the title and the abstract must be exactly \baselineskip. Is there a better solution?

Thanks for any suggestions -

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

keeping two paragraphs on same page

Post by cgnieder »

Have you tried

Code: Select all

Presentation Title\\*[2ex]
Abstract
The starred version is meant to prevent a page break at the line break.

Regards
site moderator & package author
Post Reply