new scripts
[dotfiles.git] / .vim / templates / skeleton.tex
1
2 \documentclass[11pt]{article}
3 \setlength{\parskip}{1.5ex}
4
5 \usepackage{amsfonts,amsmath,amssymb,enumerate,mathtools}
6 \usepackage{titlesec,titling}
7 \usepackage{float}
8 \usepackage[margin=0.5in,bottom=0.25in,top=0.4in]{geometry}
9 \usepackage[shortlabels]{enumitem}
10 \setlist{nosep}
11
12 % \usepackage{import}
13 % \usepackage{xifthen}
14 % \usepackage{pdfpages}
15 % \usepackage{transparent}
16
17 % \usepackage{graphicx}
18 % \graphicspath{ {./resources/} }
19
20 \newcommand{\incfig}[2][1]{%
21     \def\svgwidth{#1\columnwidth}
22     \import{./resources/}{#2.pdf_tex}
23 }
24
25 % formatting
26 \titleformat{\section}
27 {\large\bfseries}{}{0em}{}[\titlerule]
28 \titlespacing{\section}
29 {0em}{0em}{0.3em}
30
31 \titleformat{\subsection}
32 {\bfseries}{}{0em}{}
33 \titlespacing{\subsection}
34 {0em}{0em}{-0.5em}
35
36 \renewcommand{\maketitle}{
37     \begin{center}
38         \textbf{\thetitle}\\
39         \theauthor\\
40         \thedate
41     \end{center}
42 }
43
44 % commands
45 \newcommand{\euler}{e}
46
47 \begin{document}
48 \parindent=0pt
49
50 \title{TITLE}
51 \author{Daniel Liu}
52 \date{DATE}
53 \maketitle
54
55
56
57 \end{document}
58