blob: 8819448e5b65da446e85b635307f61fc4112f50a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
\documentclass[a4paper,twoside]{report}
\usepackage{polski}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\pagestyle{fancy} %% deklarujemy styl "fancy"
\fancyhead{} \fancyfoot{} %% "zresetuj" zawarto¶æ pagin
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhead[LE,RO]{\normalfont \small \thepage}
\fancyhead[LO]{\normalfont \small \itshape \rightmark}
\fancyhead[RE]{\normalfont \small \itshape \leftmark}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}
\begin{document}
\chapter{Rozdział pierwszy}
\section{Punkt jeden-jeden}
a\newpage
b\newpage
\section{Punkt jeden-dwa}
x\newpage
y\newpage
z\newpage
p\newpage
%% %% %% %% %% %% %% %%
\chapter{Rozdział drugi}
\section{Punkt dwa-jeden}
q\newpage
r\newpage
s\newpage
t\newpage
\section{Punkt dwa-dwa}
\chapter{Rozdział trzeci}
\section{Punkt 3-jeden}
w\newpage
\section{Punkt 3-2}
\end{document}
|