Page LayoutHeader with chapter name, section name and list of subsections in it

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bartzmc
Posts: 10
Joined: Thu Apr 06, 2017 9:15 pm

Header with chapter name, section name and list of subsections in it

Post by bartzmc »

I need to modify my header.
Now it looks like that:
Image
What I need to have:
Image
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

\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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Header with chapter name, section name and list of subsections in it

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
bartzmc
Posts: 10
Joined: Thu Apr 06, 2017 9:15 pm

Header with chapter name, section name and list of subsections in it

Post by bartzmc »

Is it illegal?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Header with chapter name, section name and list of subsections in it

Post by Johannes_B »

Not illegal, but the board rules say Crossposts have to be crosslink to prevent double effort of helpers.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
bartzmc
Posts: 10
Joined: Thu Apr 06, 2017 9:15 pm

Header with chapter name, section name and list of subsections in it

Post by bartzmc »

I'm sorry, I didn't know. Just wanted to more people see my question.
Post Reply