ich have the following code:
\begin{center}
\rule{0.2\linewidth}{0.1mm}\hspace{0.5em}
\textbf{\large Analytische Aufgaben}\hspace{0.5em}
\rule{0.2\linewidth}{0.1mm}
\end{center}
What i want is that the text ist in between the lines like this:
|-------------- Analytische Aufgaben ------------|
The "----" should be on line and fill across the full horizontal page. "|" indicates the ends of the page.
I've tried multiple things but didn't get it workling.
Thanks

