forked from ranea/Simple-Latex-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.tex
162 lines (131 loc) · 4.35 KB
/
article.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
\documentclass[a4paper]{article}
% See also
% - http://tug.ctan.org/info/latexcheat/latexcheat/latexsheet.pdf
% - http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf
% - Compilation
% latexmk -pdf article.txt
% latexmk -lualatex article.tex
% - Language & Fonts
% PdfLatex
\usepackage[british]{babel}
\usepackage[utf8]{inputenc}
% LuaLatex
% \usepackage{polyglossia} % hyphenation
% \setdefaultlanguage{uk} % or spanish
% \usepackage{fontspec} % to load fonts
% Both
\usepackage{microtype} % typographical improvements
% - Math
\usepackage{amsmath} % equation, align, matricies...
% \usepackage[standard]{ntheorem} % Theorem, Definition, Proof....
% \usepackage{amssymb} % extended symbol collection
% \usepackage{mathtools} % mathbox and \rcases
% \usepackage{centernot} % centred \not command
% \numberwithin{equation}{section} % numbering eqs by sections
% \usepackage{seqsplit} % to split big numbers
% - Floats
\usepackage{graphicx} % \includegraphics[width=\textwidth]{filename}
\graphicspath{ {images/} }
\usepackage{booktabs} % prettier tables
% \usepackage{minted} % \begin{minted}[fontsize=...]{python}
% \usepackage{epstopdf} % to use .eps images
% \usepackage[options]{algorithm2e} # other similar packages outdated; options: ruled,vlined
% - Tikz
% \usepackage{tikz}
% \usetikzlibrary{arrows}
% \usetikzlibrary{positioning}
% \usetikzlibrary{shapes}
% \usetikzlibrary{calc}
% Custom TikZ addons
% \usetikzlibrary{crypto.symbols} % https://www.iacr.org/authors/tikz/
% \tikzset{shadows=no} % Option: add shadows to XOR, ADD, etc.
% \tikzstyle{int}=[draw, fill=blue!20, minimum size=2em]
% \tikzstyle{init} = [pin edge={to-,thin,black}]
% - Others
% \usepackage{url} % \url
% \usepackage[margin=1in]{geometry} % smaller margins
% \usepackage{enumitem} % \begin{enumerate}[label=\alph*)]
% \usepackage{caption} % \caption*
% \usepackage{xspace} % automatic space after newcommand
% \usepackage{todonotes} % common options: disable
% \usepackage{csquotes,xpatch} % recommended by biblatex
% \usepackage[backend=biber,style=alphabetic]{biblatex} % options: doi=false,isbn=false,url=false
% \addbibresource{references.bib}
% \usepackage{cite} % incompatible with biblatex!
% - Cross References (The TEXpert’s Guide to Survival)
% Use Vref (verbose reference) or Cref instead of ref
% no spaces between multiples refs, i.e. \Cref{eq1,eq2}
\usepackage{varioref}
\usepackage{hyperref}
\hypersetup{pdfauthor={Author},
pdftitle={Title},
% hidelinks % for printed version
colorlinks, % remove frame
}
\usepackage{cleveref}
% - New commands
% \newenvironment{tightcenter}{%
% \setlength\topsep{0pt}
% \setlength\parskip{0pt}
% \begin{center}
% }{%
% \end{center}
% }
% \DeclareMathOperator{\hw}{HW}
% \DeclareTextFontCommand{\review}{\bfseries\color{red}}
% \newcommand{\xor}{\ensuremath{\mathop\oplus}}
% \newcommand{\add}{\ensuremath{\mathop\boxplus}}
% \newcommand{\floor}[1]{\lfloor#1\rfloor}
% \newcommand{\ceil}[1]{\lceil#1\rceil}
% \newcommand{\code}[1]{\texttt{#1}}
% \newcommand{\ABC}{\textsc{ABC}\xspace}
% \newcommand{\inlinetodo}[2]{\todo[inline, size=\footnotesize, #1]{#2}}
% \newcommand{\inlinetodourgent}[2]{\todo[inline, size=\footnotesize, color=cyan, #1]{#2}}
% - Latex snippets
%%
% \begin{listing}[h]
% \begin{minted}{python}
% ...
% \end{minted}
% \caption{...}
% \label{...}
% \end{listing}
%%
% \begin{figure}[h]
% \centering
% \includegraphics[width=0.5\textwidth]{...}
% \caption{...}
% \label{...}
% \end{figure}
%%
% \begin{table*}[h]
% \centering
% \renewcommand*{\arraystretch}{1.2} % 1.3\end{table*}
% \begin{tabular}{@{}lrr@{}}
% \toprule
% \multicolumn{2}{c}{Item} \\ \cmidrule(r){2-3}
% Dimension & Metric1 & Metric2 \\
% \midrule
% A & X & 0 \\
% B & Y & 1 \\
% \bottomrule
% \end{tabular}
% \caption{...}
% \label{...}
% \end{table*}
% - Other tips
% space between words: e.g.\ instead of e.g.
% puntuaction in equation: $[...]\,.$ or \,.
% no blank line after/before equation (after produces indent, before produces big space)
% captions should make figures self-contained
%%%%%%%%%%%%%%%%%%%% DOCUMENT %%%%%%%%%%%%%%%%%%%%
\author{Name}
\title{Title \\ Subtitle}
% \date{\today}
\begin{document}
\maketitle
%\tableofcontents
\section{Section}
...
% \printbibliography
\end{document}