1

I am using the following code for the sections of my document. I would like that the thin line under SECTION would stop at three quarter of \textwidth instead of cover the total width. How can I do?

\documentclass[a4paper, oneside, final]{scrartcl} % Paper options using the scrartcl class

\usepackage{titlesec} % Allows creating custom \section's\usepackage{url}

\titleformat{\section}{\large\scshape\raggedright}{}{0em}{}[\titlerule] % Section formatting

\begin{document}

\section{Section}

\end{document}
  • 2
    It's a well-known fact, that scrartcl and titlesec do not work well together ;-) – user31729 Jan 20 '16 at 16:08
3

like this :

\documentclass[a4paper, oneside, final]{scrartcl} % Paper options using the scrartcl class   
\usepackage{titlesec} % Allows creating custom \section's\usepackage{url}
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{}[\rule{.75\linewidth}{1pt}] % Section formatting
\begin{document}
\section{Section}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.