-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreamble.tex
82 lines (62 loc) · 1.77 KB
/
preamble.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
%% Preamble %%
%% A minimal LaTeX preamble
%% Some packates are needed to implement
%% Asciidoc features
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsxtra}
\usepackage{amsfonts}
\usepackage{wasysym}
\usepackage{isomath}
\usepackage{mathtools}
\usepackage{txfonts}
\usepackage{upgreek}
\usepackage{enumerate}
\usepackage{tensor}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{changes}
\usepackage{etoolbox}
\usepackage{soul}
\let\openbox\relax
\usepackage[letterpaper, margin=1in, headheight=47pt]{geometry}
\usepackage[hyperlink]{manual}
\usepackage{titlesec}
% No paragraph indent
\setlength{\parindent}{0cm}
% Bigger paragraph skips
\setlength{\parskip}{0.25cm}
\usepackage[defaultsans]{droidsans}
\renewcommand{\familydefault}{\sfdefault}
% Set paragraph numbers correctly (skip susubsection)
\setcounter{secnumdepth}{4}
\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}}
\renewcommand\thesubsubsection{
\ifnum \value{subsubsection}=0
\thesubsection
\else
\thesubsection.\Alph{subsubsection}\relax
\fi}
\newcommand*{\p}{\paragraph{}}
\newlength\titleindent
\setlength\titleindent{1.2cm}
\definecolor{mygray}{gray}{0.55}
\titleformat{\paragraph}[runin]
{\normalfont\footnotesize}{\llap{\parbox{\titleindent}{\textcolor{mygray}{\theparagraph}\hfill}}}{0em}{}
\titlespacing{\paragraph}{0pt}{0em}{0em}
% End of paragraph numbers setting
\date{\vspace{-2ex}}
\definecolor{color-1}{rgb}{1,1,1}
\definecolor{color-2}{rgb}{0,0,0.5}
\definecolor{color-3}{rgb}{0.07,0.33,0.8}
\definecolor{color-4}{rgb}{0.13,0.13,0.13}
\definecolor{red}{rgb}{1,0,0}
\definecolor{color-6}{rgb}{0,0,1}
\pagestyle{fancy}
\begin{document}