答案1
使用titlerule
和vspace
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usepackage{titlesec}
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\vspace{1cm}\titlerule[1pt]}]
\begin{document}
\section{TEST}
Bla bla
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\vspace{0cm}\titlerule[1pt]}]
\section{TEST2}
Bla bla2
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\titlerule[1pt]}]
\section{TEST2}
Bla bla3
\end{document}