1
0
This commit is contained in:
i0p 2022-04-25 21:47:07 +03:00 committed by Mikhail Klementev
parent fe5b500f7b
commit 528faddc31

View File

@ -55,9 +55,9 @@
% Header and Footer % Header and Footer
\usepackage{fancyhdr} \usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} \fancyhf{}
%%%% Header Settings %%%% Header Settings
\fancyhead[RE]{\leftmark} \fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark} \fancyhead[LO]{\rightmark}
@ -71,20 +71,36 @@
\renewcommand{\headrule}{\hrule height 0pt} \renewcommand{\headrule}{\hrule height 0pt}
\begin{document} \begin{document}
\title{Ричард Столлман и революция свободного программного обеспечения} \title{Ричард Столлман и революция свободного программного обеспечения}
\author{Сэм Вильямс \\ Второе издание с правками от Ричарда Мэттью Столлмана} \author{Сэм Вильямс \\ Второе издание с правками от Ричарда Мэттью Столлмана}
\date{} \date{}
\maketitle \maketitle
\begin{sloppypar}
\thispagestyle{empty} \thispagestyle{empty}
\frontmatter \frontmatter
\include{copyright} \include{copyright}
\thispagestyle{empty} \thispagestyle{empty}
\tableofcontents \tableofcontents
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{#1}}{}}
\include{rms-preface} \include{rms-preface}
\include{preface-williams} \include{preface-williams}
\mainmatter \mainmatter
%% fancy pagestyle redifine
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{%
\chaptername\ \thechapter.%
\ #1}}{}}
\include{chap01} \include{chap01}
\include{chap02} \include{chap02}
\include{chap03} \include{chap03}
@ -101,6 +117,7 @@
\backmatter \backmatter
%% fancy pagestyle redifine
\renewcommand{\chaptermark}[1]{% \renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{#1}}{}} \markboth{\MakeUppercase{#1}}{}}
@ -108,6 +125,9 @@
\include{appendix} \include{appendix}
\include{gfdl} \include{gfdl}
\printindex \printindex
\end{sloppypar}
\end{document} \end{document}
% Initial LaTeX formatting by John Sullivan at the FSF, 2010 % Initial LaTeX formatting by John Sullivan at the FSF, 2010