/
localcommands.sty
46 lines (36 loc) · 1.48 KB
/
localcommands.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
%\newenvironment{explanation}[1]
%{\vskip0.08cm\parbox[t]{0.15\textwidth}{\raggedleft #1}
%\hskip0.03\textwidth\begin{minipage}[t]{0.76\textwidth}}
%{\end{minipage}\vskip0.05cm}
\def\sectionlevel{135}
%\newcommand{\definition}[2]{
% \def\definitionnumber{\ }
% \ifnum\sectionlevel=1\refstepcounter{section}
% \addcontentsline{toc}{section}{\thesection\ #1 #2}\def\definitionnumber{\thesection}
% \else
% \ifnum\sectionlevel=13\refstepcounter{subsection}
% \addcontentsline{toc}{subsection}{\thesubsection\ #1 #2}\def\definitionnumber{\thesubsection}
% \else
% \ifnum\sectionlevel=135\refstepcounter{subsubsection}
% \addcontentsline{toc}{subsubsection}{\thesubsubsection\ #1 #2}
% \def\definitionnumber{\thesubsubsection}
% \fi\fi\fi
% \label{s:definition-#2}
% \vskip0.5cm
% \noindent
% \definitionnumber\hskip0.2cm\emph{#1}\hskip0.2cm\textsc{#2}\nopagebreak\vskip0.1cm\hrule\nopagebreak\vskip0.1cm}
% COLUMNS
\newcolumntype{d}[1]{D{.}{.}{#1}}
\newcolumntype{L}[1]{>{\raggedright}p{#1}}
%\setcounter{secnumdepth}{5}
%\setcounter{tocdepth}{4}
% Listings
\def\hrulefill{\leavevmode\leaders\hrule height 0.4pt\hfill\kern\z@} %adjust hrulefill with listings bottomrule
\newcommand{\ltitle}[1]{\vspace{.5\baselineskip}{\centering\hrulefill\hspace{.25cm}{\ttfamily #1}\hspace{.25cm}\hrulefill}}
\let\sc\scshape
\let\rm\upshape
\let\it\itshape
\defbibheading{references}{\chapter{References}}
\renewcommand{\bf}{\bfseries }
\renewcommand{\tt}{\ttfamily }
\newcommand{\biberror}[1]{}