-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtechnote.sty
103 lines (88 loc) · 2.63 KB
/
technote.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
%% Minimalist style for technical reports.
%% technote.sty
%%
\usepackage{xspace}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[color=black,opacity=1.0]{background}
\backgroundsetup{contents={}}
\usepackage[total={6.875in,8.875in}]{geometry}
\setlength{\columnsep}{0.3125in}
\setlength{\footskip}{0.625in}
%% page layout customisation.
%%\setlength{\textheight}{8.875in}
%%\setlength{\textwidth}{6.875in}
%%\setlength{\columnsep}{0.3125in}
%%\setlength{\topmargin}{0in}
%%\setlength{\headheight}{0in}
%%\setlength{\headsep}{0in}
%%\setlength{\parindent}{0.5pc}
%%\setlength{\oddsidemargin}{-.304in}
%%\setlength{\evensidemargin}{-.304in}
%% place department info on top-right of every page.
\newcommand{\department}[1]{%
\SetBgContents{\textit{{\small #1}}}
\SetBgScale{1}
\SetBgAngle{0}
\SetBgPosition{current page.north east}
\SetBgHshift{-1in}
\SetBgVshift{-0.5in}
}
\let\make@deparment\relax
% todo - place logo?
\newcommand{\logo}[2][]{%
\gdef\make@logo{\includegraphics[#1]{#2}}%
}
\let\make@logo\relax
% \vskip -3em
% \ifx\make@logo\relax
% \else
% \make@logo
% \fi
%
\def\@maketitle{%
\clearpage
\newpage
\thispagestyle{empty}
\vspace*{-24pt}
\begin{flushleft}
{\Large \bf \@title\\}\vspace*{12pt}{\@author}
\end{flushleft}
}
%% define keywords.
\def\keywords#1{\gdef\@keywords{#1}} \gdef\@keywords{}
%% abstract should be 'summary'.
\def\abstract{
\noindent
\rule{\linewidth}{0.3pt}
\textbf{Summary} \hskip 1em %%\vskip 1em
}
\def\endabstract{
\noindent\\
\small{{\textit Key words}: \@keywords} \\
\rule{\linewidth}{0.3pt}
}
%% sections
\renewcommand\section{\@startsection {section}{1}{\z@}%
{18\p@ \@plus 6\p@ \@minus 3\p@}%
{9\p@ \@plus 6\p@ \@minus 3\p@}%
{\normalsize\bfseries\boldmath}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{12\p@ \@plus 6\p@ \@minus 3\p@}%
{3\p@ \@plus 6\p@ \@minus 3\p@}%
{\normalfont\normalsize\itshape}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{12\p@ \@plus 6\p@ \@minus 3\p@}%
{\p@}%
{\normalfont\normalsize\itshape}}
%% etc. et al.
\makeatletter
\DeclareRobustCommand\onedot{\futurelet\@let@token\@onedot}
\def\@onedot{\ifx\@let@token.\else.\null\fi\xspace}
\def\eg{\emph{e.g}\onedot} \def\Eg{\emph{E.g}\onedot}
\def\ie{\emph{i.e}\onedot} \def\Ie{\emph{I.e}\onedot}
\def\cf{\emph{c.f}\onedot} \def\Cf{\emph{C.f}\onedot}
\def\etc{\emph{etc}\onedot} \def\vs{\emph{vs}\onedot}
\def\wrt{w.r.t\onedot} \def\dof{d.o.f\onedot}
\def\etal{\emph{et al}\onedot}
\makeatother