I would like to make a command to separate some blocks of text with an horizontal line.
However I don't want the line to be drawn at the end (or begininng) of a page, since the page break is already separating the content. Also it would be nice to encourage page breaks to only occur at these places.
Is there some simple way to implement this?
Here is an example. I would like to prevent the lines at the beginning of the new pages.
\documentclass{article}
\usepackage{lipsum}
\newcommand{\mybreak}{
\bigskip
\pagebreak[3]
\begin{center}
--------------------------
\end{center}
\bigskip
}
\begin{document}
\lipsum[1-2]
\mybreak
\lipsum[1-2]
\mybreak
\lipsum[1-2]
\mybreak
\lipsum[1-2]
\mybreak
\lipsum[1-2]
\mybreak
\end{document}
minipage, e.g.,\xdef\svparindent{\the\parindent}, then\noindent\begin{minipage}{\textwidth}\parindent=\svparindent\relax\strut \lipsum[1]\par \lipsum[2] \strut\end{minipage}(use[nopar]option oflipsum) – Steven B. Segletes May 25 '17 at 12:01