Obtain current title in latex
to use in header or in the text:
\newcommand{\sectitle}{}
\let\stdsection\section
\renewcommand\section[1]{\stdsection{#1}\renewcommand{\sectitle}{#1}}
to use in header or in the text:
\newcommand{\sectitle}{}
\let\stdsection\section
\renewcommand\section[1]{\stdsection{#1}\renewcommand{\sectitle}{#1}}
leave a comment