I have a KOMA-based document where section footnotes and text footnotes are formatted differently:
\documentclass{scrartcl}
\setlength\parindent{24pt}
\usepackage[symbol]{footmisc}
\usepackage{hyperref}
\begin{document}
\protected\def\hidefootnoteSec{\MakeUppercase{Section footnote.}} % https://tex.stackexchange.com/a/46532)
\begingroup%
\deffootnote[1em]{1.5em}{1em}{{\Large\thefootnotemark}\hspace*{.5em}}
\section[A section]{A section{\protect\NoHyper\protect\footnote[1]{\hidefootnoteSec}\protect\endNoHyper}}
\endgroup%
Test paragraph: should not be indented, but~due to~\verb|group| enclosing section it is.
Second test paragraph~\footnote{text footnote.}:~should be indented.
\end{document}
In general, first paragraph of a section in such document is not indented, but in this case, the \begingroup
…\endgroup
declaration causes LaTeX to fail on detecting that there is section
declared just above the first paragraph. Simply removing the group would make the formatting affect the next footnotes too.
Of course, it is possible to manually force \noindent
in the first paragraph. Yet here I am looking for a more automated solution, so that in a bigger document one does not need to always remember about such additions when adding/removing new footnotes or changing the global indentation.
Is it possible to automatically detect first paragraph after such footnoted–grouped sections for the purpose of (not) indenting it?