I'd like to use sectioning commands inside macros in order to enhance them, i.e. put some kind of line before and thing after the heading.
Is it possible to use/address the optional arguments of the original commands in the macro, e.g. \subsection?
MWE
\documentclass[
11pt,
a4paper,
]
{scrartcl}
\usepackage{
lmodern,
blindtext
}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{
multicol,
xcolor,
}
\newcommand{\specialheadline}[1]{%
{\centering
\color{gray}\rule{0.9\columnwidth}{1pt}\color{black}\par}
\subsection{#1}}
\listfiles
\begin{document}
\begin{center}
Title stuff
\end{center}
\begin{multicols*}{2}
\section{Word}
\specialheadline{ASDF}
%\specialheadline[123]{ASDF} -- THIS LINE DOES NOT WORK
\blindtext[1]
\end{multicols*}
\end{document}