-
Notifications
You must be signed in to change notification settings - Fork 0
/
kevinnih.sty
65 lines (59 loc) · 2.76 KB
/
kevinnih.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
\usepackage{fullpage}
\usepackage{titlesec} %allows us to use the \titleformat commands at the end of this doc
\usepackage{helvet} %change font family to helvetica
\usepackage[numbers,sort&compress,super]{natbib} %"Nature"-like superscript format. Good results are with \bibliographystyle{unsrtnat}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption,subcaption}
\usepackage{hyperref,url} %for nice cross-references within
\usepackage{color}
\usepackage{multirow}
\usepackage{pdfsync}
\usepackage{rotating}
\usepackage{sfmath}
\usepackage{pgf,tikz} %see http://www.texample.net/tikz/examples/ for awesome examples of how this can beused
\usepackage{lipsum} %allows inserting of dummy text
\usepackage[top=0.5in, bottom=0.5in, left=0.5in, right=0.5in]{geometry}
\usetikzlibrary{arrows,positioning,calc}
\hypersetup{
colorlinks=true,
linkcolor=blue, % color of internal links (change box color with linkbordercolor)
citecolor=blue, % color of links to bibliography
filecolor=blue, % color of file links
urlcolor=blue % color of external links
}
\renewcommand{\familydefault}{\sfdefault}
%\textwidth = 7.1 in
%\textheight = 9.8 in
%\oddsidemargin = 0.2 in
%\evensidemargin = 0.7 in
%\topmargin = 0.1 in
%\headheight = 15 pt
%\headsep = 0.2 in
%\parindent = 0.25in
%\voffset = -1.0in
%\hoffset = -0.5in
\hyphenation{me-la-no-gas-ter}
\hyphenation{dro-so-phi-la}
\hyphenation{si-mu-lans}
\hyphenation{pipe-line}
\makeatletter
\def\paragraph{\@startsection %
{paragraph}{4}{\z@}{0ex plus 0ex minus 0ex}{-1em}{\normalsize\bf\sffamily}}
\def\subparagraph{\@startsection %
{subparagraph}{5}{\z@}{0ex plus 0ex minus 0ex}{-1em}{\normalsize\it\sffamily}}
%Change sections to A, B, C, etc., subsections to A.1, A.2, B.1, etc., and subsubsections to A.1.1, A.1.2, etc.
\renewcommand {\thesection} {\@Alph\c@section}
\renewcommand {\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesection.\arabic{subsection}.\arabic{subsubsection}}
\renewcommand {\thefigure}{\textbf{\arabic{figure}}}
\renewcommand {\thetable}{\textbf{\arabic{table}}}
%\renewcommand {\thefigure}{\textbf{\thesection\arabic{figure}}}
%\renewcommand {\thefigure}{\textbf{\thesection.\arabic{subsection}.\arabic{subsubsection}.\arabic{figure}}}
%\renewcommand {\thetable}{\textbf{\thesection.\arabic{subsection}.\arabic{subsubsection}.\arabic{table}}}
%\renewcommand {\thetable}{\textbf{\thesection\arabic{table}}}
%Change section, etc., commands so that there is no newline @ end and minimal padding
\titleformat{\section}[runin]{\normalsize\bf\sffamily}{\thesection}{5pt}{}
\titleformat{\subsection}[runin]{\normalsize\bf\sffamily}{\thesubsection}{5pt}{}
\titleformat{\subsubsection}[runin]{\normalsize\bf\sffamily}{\thesubsubsection}{5pt}{}
\makeatother