-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhegyhati.sty
116 lines (103 loc) · 3.02 KB
/
hegyhati.sty
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
% Setting spacing and margins
\usepackage{setspace}
\linespread{1.2}
\usepackage[top=1.08in, bottom=0.9in, left=0.9in, right=0.9in]{geometry}
% For partitioning the document into several files
\newcommand{\parts}[0]{Parts/}
\newcommand{\Chapter} [2]{\chapter{#1}\label{chapter_#2}\input{\parts #2.tex}}
\newcommand{\ChapterShort} [3]{\chapter[#1]{#2}\label{chapter_#3}\input{\parts #3.tex}}
\newcommand{\ChapterUnnumbered}[3]{\chapter*{#2}\input{\parts #3.tex}\addcontentsline{toc}{chapter}{#1}}
\newcommand{\Section} [2]{\section{#1}\label{section_#2}\input{\parts #2.tex}}
\newcommand{\SectionShort} [3]{\section[#1]{#2}\label{section_#3}\input{\parts #3.tex}}
\newcommand{\Subsection} [2]{\subsection{#1}\label{subsection_#2}\input{\parts #2.tex}}
\newcommand{\Subsubsection} [2]{\subsubsection{#1}\label{subsubsection_#2}\input{\parts #2.tex}}
% For emphasis
\newcommand{\Emph}[1]{\textit{\textbf{#1}}}
% For file/class/function/variable names
\newcommand{\CodeName}[1]{\texttt{\textbf{#1}}}
% Simple todo
\usepackage[usenames,dvipsnames]{color}
\newcommand{\Todo}[1]{\textcolor{red}{TODO: #1}}
\newcommand{\TodoLater}[1]{\footnote{\textcolor{green}{TODO LATER: #1}}}
% Basic stuff for character encoding, language, etc.
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{t1enc}
% For hyper references
\usepackage{hyperref}
% For math things
\usepackage{amsmath}
\usepackage{amssymb}
% For figures
\usepackage{graphicx}
\newcommand{\Figure}[3]
{ % \Figure{filename without extension, also labelsuffix}{caption}{options}
\begin{figure}[hptb]
\begin{center}
\includegraphics[#3]{Figures/#1.eps}
\caption{#2}
\label{fig_#1}
\end{center}
\end{figure}
}
\newcommand{\FigureShort}[4]
{ % \Figure{filename without extension}{shortcaption}{caption}{options}
\begin{figure}[hptb]
\begin{center}
\includegraphics[#4]{Figures/#1.eps}
\caption[#2]{#3}
\label{fig_#1}
\end{center}
\end{figure}
}
% For tables
\usepackage{multirow}
\usepackage{longtable}
\newcommand{\Table}[4]
{ % \Table{labelsuffix}{caption}{column definition}{tabular content}
\begin{table}[hptb]
\begin{center}
\begin{tabular}{#3}
#4
\end{tabular}
\caption{\protect #2}
\label{tab_#1}
\end{center}
\end{table}
}
\newcommand{\TableShort}[5]
{ % \Table{labelsuffix}{short caption}{caption}{column definition}{tabular content}
\begin{table}[hptb]
\begin{center}
\begin{tabular}{#4}
#5
\end{tabular}
\caption[#2]{\protect #3}
\label{tab_#1}
\end{center}
\end{table}
}
% For pseudo codes
\usepackage[chapter]{algorithm}
\usepackage{algorithmic}
\newcommand{\Algorithm}[3]
{
\begin{algorithm}
\caption{\protect #2}
\label{alg_#1}
\begin{algorithmic}
#3
\end{algorithmic}
\end{algorithm}
}
\newcommand{\AlgorithmShort}[4]
{
\begin{algorithm}
\caption[#2]{\protect #3}
\label{alg_#1}
\begin{algorithmic}
#4
\end{algorithmic}
\end{algorithm}
}
\def \LETE {:=}