答案1
\documentclass{article}
\begin{document}
\noindent
\rlap{\rule[-1ex]{\linewidth}{.5mm}}EDUCATION
\end{document}
答案2
我将在零宽度框中设置规则,然后允许文本在其上方运行:
\documentclass{article}
\usepackage[nopar]{lipsum}
\newcommand{\sectionheading}[1]{%
\noindent
\makebox[0pt][l]{\rule[-.2\baselineskip]{\linewidth}{.5mm}}%
\textbf{#1}\par\nobreak
}
\begin{document}
\sectionheading{EDUCATION}
\lipsum[1]
\sectionheading{PUBLICATIONS}
\end{document}