-
Notifications
You must be signed in to change notification settings - Fork 17
/
faif-2.0.tex
133 lines (102 loc) · 2.94 KB
/
faif-2.0.tex
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
%% Copyright (c) 2002, 2010 Sam Williams
%% Copyright (c) 2010 Richard M. Stallman
%% Permission is granted to copy, distribute and/or modify this
%% document under the terms of the GNU Free Documentation License,
%% Version 1.3 or any later version published by the Free Software
%% Foundation; with no Invariant Sections, no Front-Cover Texts, and
%% no Back-Cover Texts. A copy of the license is included in the
%% file called ``gfdl.tex''.
\documentclass[10pt]{book}
\usepackage{url}
\usepackage[Lenny]{fncychap}
\clubpenalty=10000
\widowpenalty=10000
\usepackage{polyglossia}
\setmainlanguage{russian}
\setotherlanguage{english}
\setkeys{russian}{babelshorthands=true}
\usepackage{fontspec}
\setmainfont{Liberation Serif}
\newfontfamily{\cyrillicfonttt}{Liberation Mono}
\setsansfont{Liberation Sans}
\setmonofont{Liberation Mono}
\usepackage{csquotes}
%% PDF setup
\usepackage{hyperref}
\hypersetup{colorlinks=true,
citecolor=blue,
filecolor=blue,
linkcolor=blue,
urlcolor=blue,
bookmarksopen=true,
pdftitle=Ричард Столлман и революция свободного программного обеспечения,
pdfauthor=Ричард Столлман и Сэм Вильямс,
pdftex}
%% Index
\usepackage{makeidx}
\makeindex
%% Photos
\usepackage{graphicx}
\usepackage[labelformat=empty,font={small,it}, width=3.75in]{caption}
%% Paper size
\usepackage{geometry}
\geometry{papersize={6in,9in}}
\setcounter{errorcontextlines}{10}
% Header and Footer
\usepackage{fancyhdr}
\fancyhf{}
%%%% Header Settings
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\fancyhead[CE,CO]{}
% Footer Settings
\fancyfoot[C]{\thepage}
% Redefining headrule
\makeatletter
\renewcommand{\headrule}{\hrule height 0pt}
\begin{document}
\title{Ричард Столлман и революция свободного программного обеспечения}
\author{Сэм Вильямс \\ Второе издание с правками от Ричарда Мэттью Столлмана}
\date{}
\maketitle
\begin{sloppypar}
\thispagestyle{empty}
\frontmatter
\include{copyright}
\thispagestyle{empty}
\tableofcontents
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{#1}}{}}
\include{rms-preface}
\include{preface-williams}
\mainmatter
%% fancy pagestyle redifine
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{%
\chaptername\ \thechapter.%
\ #1}}{}}
\include{chap01}
\include{chap02}
\include{chap03}
\include{chap04}
\include{chap05}
\include{chap06}
\include{chap07}
\include{chap08}
\include{chap09}
\include{chap10}
\include{chap11}
\include{chap12}
\include{chap13}
\backmatter
%% fancy pagestyle redifine
\renewcommand{\chaptermark}[1]{%
\markboth{\MakeUppercase{#1}}{}}
\include{epilogue}
\include{appendix}
\include{gfdl}
\printindex
\end{sloppypar}
\end{document}
% Initial LaTeX formatting by John Sullivan at the FSF, 2010