LaTeX forum ⇒ 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).
bartzmc
Posts: 10
Joined: Thu Apr 06, 2017 9:15 pm

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

Postby bartzmc » Mon Apr 17, 2017 9:00 am

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[a4paper,12pt,twoside]{report}
  2. \usepackage{polski}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{sectsty}
  5. \usepackage{scrlayer-scrpage}
  6. \pagestyle{scrheadings}
  7. \renewcommand{\chaptermark}[1]{%
  8. \markboth{\space #1}{}}
  9. \renewcommand{\sectionmark}[1]{
  10. \markright{\thesection.\space #1}}%\hspace{0.5cm}}}
  11. \begin{document}
  12. \chapter{DZIAŁ I. PRZEPISY OGÓLNE}
  13. \section{Rozdział 2. Zasady ogólne}
  14. \subsection*{Art. 6 Zasada legalności }\noindent
  15. \subsection*{Art. 7. Zasada uwzględniania interesu publicznego i słusznego interesu obywateli }
  16. \subsection*{Art. 8. Zasada pogłębiania zaufania do organów państwa }\noindent
  17. \subsection*{Art. 9. Obowiązek udzielania informacji faktycznej i prawnej stronom }\noindent
  18. \subsection*{Art. 10. Zasada czynnego udziału stron w postępowaniu administracyjnym }\noindent
  19. \subsection*{Art. 11. Zasada wyjaśniania zasadności decyzji lub postanowienia }\noindent
  20. \subsection*{Art. 12. Zasada szybkości postępowania }\noindent
  21. \subsection*{Art. 13. Załatwianie spornych spraw w drodze ugody administracyjnej }\noindent
  22. \subsection*{Art. 14. Forma pisemna lub forma dokumentu elektronicznego }\noindent
  23. \subsection*{Art. 15. Zasada dwuinstancyjności postępowania administracyjnego }\noindent
  24. \subsection*{Art. 16. Zasady ogólne trybu odwoławczego }\noindent
  25. \end{document}

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Apr 17, 2017 9:21 am

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

Postby bartzmc » Mon Apr 17, 2017 9:35 am

Is it illegal?

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Apr 17, 2017 9:47 am

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

Postby bartzmc » Mon Apr 17, 2017 9:58 am

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


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests