Now it looks like that:

What I need to have:

Where "DZIAŁ 1. PRZEPISY OGÓLNE" is a chapter, "Rozdział 2. Zasady ogólne" is a section and "Art 6-13" is a list of all subsections in section.
Subsections are written as '\subsection*{Art. 6 Zasada legalności}'
Is it even possible ?
My code:
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,12pt,twoside]{report}\usepackage{polski}\usepackage[utf8]{inputenc}\usepackage{sectsty}\usepackage{scrlayer-scrpage}\pagestyle{scrheadings}\renewcommand{\chaptermark}[1]{%\markboth{\space #1}{}}\renewcommand{\sectionmark}[1]{\markright{\thesection.\space #1}}%\hspace{0.5cm}}}\begin{document}\chapter{DZIAŁ I. PRZEPISY OGÓLNE}\section{Rozdział 2. Zasady ogólne}\subsection*{Art. 6 Zasada legalności }\noindent\subsection*{Art. 7. Zasada uwzględniania interesu publicznego i słusznego interesu obywateli }\subsection*{Art. 8. Zasada pogłębiania zaufania do organów państwa }\noindent\subsection*{Art. 9. Obowiązek udzielania informacji faktycznej i prawnej stronom }\noindent\subsection*{Art. 10. Zasada czynnego udziału stron w postępowaniu administracyjnym }\noindent\subsection*{Art. 11. Zasada wyjaśniania zasadności decyzji lub postanowienia }\noindent\subsection*{Art. 12. Zasada szybkości postępowania }\noindent\subsection*{Art. 13. Załatwianie spornych spraw w drodze ugody administracyjnej }\noindent\subsection*{Art. 14. Forma pisemna lub forma dokumentu elektronicznego }\noindent\subsection*{Art. 15. Zasada dwuinstancyjności postępowania administracyjnego }\noindent\subsection*{Art. 16. Zasady ogólne trybu odwoławczego }\noindent\end{document}