No, but you can define another command, that uses \sectionrule
, for example:
\documentclass[english]{article}
\usepackage{lipsum}
\newcommand{\adaptedsectionrule}[6]{%
\sectionrule{#1}{#2}{#3}{#4}{#6\rule[-#5]{0pt}{#5}}% invisible rule used to increase the distance below
\usepackage{sectsty}
\sectionfont{\adaptedsectionrule{0ex}{0pt}{-1ex}{0.2pt}{1em}}
\begin{document}
\section*{Life}
\lipsum[1]
\end{document}
But IMHO a better solution would be to change the distance after \section
:
\documentclass[english]{article}
\usepackage{lipsum}
\usepackage{sectsty}
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{4.5ex \@plus.2ex}% original 2.3ex \@plus .2ex
{\normalfont\Large\bfseries\SS@sectfont}}
\makeatother
\sectionfont{\sectionrule{0ex}{0pt}{-1ex}{0.2pt}}
\begin{document}
\section*{Life}
\lipsum[1]
\end{document}
BTW: Current version of sectsty
is not fully compatible with current LaTeX, because the definition of \underbar
has changed. LaTeX defines it protected now, but the redefinition of sectsty
is still not robust.