# Create a custom \section

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}

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

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