I would like to have the sections of my document to just be separated by a vertical space, with no visible section header. Furthermore, I would like the first paragraph of each section start without an indent.
I tried the following minimal working example for an \invisiblesection
command, taken from this question. Unfortunately, any text that follows this \invisiblesection
command gets indented:
\documentclass{article}
\newcommand\invisiblesection[1]{%
\refstepcounter{section}%
\addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}%
\sectionmark{#1}}
\begin{document}
\invisiblesection{First Section}
The section header is invisible :) but the paragraph starts with an indent :(
\section{Second Section}
The section header is visible :( but the paragraph starts with no indent :)
\end{document}
Adding \noindent
to the end of \invisiblesection
doesn't fix this. Adding \noindent
to the beginning of each new section does fix it, but I would like this to happen automatically, as it does when I use the normal section
environment.
\par
. So how do you mean a difference between "follows the previous paragraph" and "follows a blank line"?\@afterheading
to your definition of\invisiblesection