-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsprawozdanie.cls
54 lines (46 loc) · 1.77 KB
/
sprawozdanie.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sprawozdanie}
\LoadClass[12pt, twoside]{article}
\RequirePackage{lmodern}
\RequirePackage{amsmath}
\RequirePackage{fixltx2e}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{graphics}
\RequirePackage{xcolor}
\RequirePackage{tikz}
\RequirePackage{hyperref}
\RequirePackage[margin = 2cm]{geometry}
\RequirePackage{fancyhdr}
\DeclareOption{red}{\renewcommand{\headlinecolor}{\color{slcolor}}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\newcommand{\class}[1]{\gdef\@class{#1}}%
\newcommand{\@class}{\@latex@warning@no@line{No \noexpand\class given}}
%\newcommand{\indeks}[1]{\gdef\@indeks{#1}}%
%\newcommand{\@indeks}{\@latex@warning@no@line{No \noexpand\indeks given}}
\newcommand{\deadline}[1]{\gdef\@deadline{Data oddania: \textbf{#1}}}%
\newcommand{\@deadline}{\@latex@warning@no@line{No \noexpand\deadline given}}
\newcommand{\instructor}[1]{\gdef\@instructor{Prowadzący: #1}}%
\newcommand{\@instructor}{\@latex@warning@no@line{No \noexpand\instructor given}}
\renewcommand{\maketitle}{%
\begin{titlepage}
\begin{center}
\def\tkzscl{0.2}\definecolor{ZnakColor}{cmyk}{1,0,0,1}
\input{znak.tex}\\\vfill
{\fontsize{22}{50}\fontseries{bx}\selectfont\@class}\\[10pt]
{\fontsize{30}{40}\selectfont\sc\@title}\\[10pt]\vfill
{\fontsize{22}{40}\selectfont\@author\fontseries{n}\selectfont}\\\vfill
\end{center}
{\fontsize{18}{20}\selectfont\@instructor\fontseries{n}\selectfont}\\[10pt]
{\fontsize{18}{20}\selectfont\@deadline\fontseries{n}\selectfont}
\end{titlepage}
}
\fancyhf{}
%\fancyhead[RE]{\nouppercase{\scshape \leftmark}}
%\fancyhead[LO]{\nouppercase{\scshape \rightmark}}
\fancyhead[LE]{\@class}
\fancyhead[LO]{\@title}
\fancyhead[R]{\@author}
\fancyfoot[LO,RE]{\thepage}
\pagestyle{fancy}