-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreaseproof-physique.cls
150 lines (130 loc) · 3.92 KB
/
greaseproof-physique.cls
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{greaseproof}[2024/08/28]
\LoadClass[10pt, twoside]{extarticle}
\RequirePackage[
paperwidth=6.125in,
paperheight=9.25in,
left=0.82in,
right=0.695in,
top=0.6in,
bottom=0.71in,
twoside,
% showframe,
headsep=0.1in,
]{geometry}
\RequirePackage{graphicx}
\graphicspath{{images/}}
\RequirePackage{tikz} % Required for drawing custom shapes and positioning elements absolutely on the page
\RequirePackage[usenames, svgnames, table]{xcolor}
\RequirePackage{calc}
\RequirePackage{changepage}
\RequirePackage[toc]{appendix}
\RequirePackage{etoolbox}
\RequirePackage{float} % [H] for figure environment:
\RequirePackage[utf8]{inputenc}
\RequirePackage[LGR, T1]{fontenc}
\RequirePackage[final]{microtype}
%%%%%%%%%% HEADERS, FOOTERS
\RequirePackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\nouppercase{\leftmark}}
\fancyhead[LO]{\nouppercase{\rightmark}}
\fancyhead[RO]{\thepage}
\renewcommand{\headrulewidth}{4pt}
\renewcommand{\footrulewidth}{0.0pt}
%%%%%%%%%% FONTS
\RequirePackage{Alegreya} %% Option 'black' gives heavier bold face
\RequirePackage[euler-digits,small]{eulervm}
\RequirePackage{fontspec}
\RequirePackage[polish]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage[final]{microtype}
\RequirePackage{polski}
% headers, footers
\RequirePackage{fancyhdr}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
% 341 Rozdział 7. Kalifat algebry | 7.2 Pierścień adeli 342 |
\fancyhead[LE]{\thepage}
\fancyhead[CE]{$\mathcal{E}$udoksos z Ptolemais, $\mathcal{L}$achmid z Al-Hiry, $\mathcal{A}$chradyna Ecetryjska}
\fancyhead[RE]{}
\fancyhead[LO]{}
\fancyhead[CO]{Almanach geometryczny}
\fancyhead[RO]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.0pt}
\RequirePackage{amsmath} % \DeclareMathOperator
\RequirePackage{amssymb} % \mathbb
\RequirePackage{amsthm} % \theoremstyle, \newtheorem
\newtheoremstyle{leostyle}
{0pt} % Space above
{0pt} % Space below
{} % Body font
{} % Indent amount
{\bfseries} % Theorem head font
{.} % Punctuation after theorem head
{.5em} % Space after theorem head
{} % Theorem head spec (can be left empty, meaning `normal')
\theoremstyle{leostyle}
\newcounter{counter}
\numberwithin{counter}{section}
\newtheorem{conjecture}[counter]{Hipoteza}
\newtheorem{integral}[counter]{Całka}
\newtheorem{corollary}[counter]{Wniosek}
\newtheorem{definitionB}[counter]{Definicja}
\newtheorem{problem}[counter]{Problem}
\newtheorem{example}[counter]{Przyk\l{}ad}
\newtheorem{lemma}[counter]{Lemat}
\newtheorem{proposition}[counter]{Fakt}
\newtheorem{theorem}{Twierdzenie}
\newtheorem{warning}[counter]{Uwaga}
\newtheorem{tobedone}[counter]{Wymaga przeredagowania}
% https://tex.stackexchange.com/questions/22012/hyperref-and-imakeidx-do-not-work-together
\RequirePackage{imakeidx}
%%%%%%%%%% HYPERLINKS
\RequirePackage[pdfusetitle]{hyperref}
% clickable links
% add [backref] for links from bib entries to citations
% add [pdfusetitle] for metadata
\hypersetup{
colorlinks,
linkcolor={blue},
citecolor={blue},
urlcolor={blue}
}
% constructions
\RequirePackage{tkz-euclide}
% index
\RequirePackage{makeidx}
\patchcmd{\theindex}{\MakeUppercase\indexname}{\sffamily\normalsize\bfseries\indexname}{}{}
\makeindex[title=Skorowidz]
\makeindex[name=persons,title=Indeks osób]
\usepackage[subtle]{savetrees}
\usepackage{titlesec}
\renewcommand\subsection
{%
\@startsection
{subsection}
{2}
{\z@}
{3.25ex \@plus 0.1ex \@minus .2ex}
{-0.2em}
{\normalfont\normalsize\bfseries}%
}
\titleformat{\section}{\centering\normalfont\LARGE\bfseries}{\thesection{.}}{0.2em}{}