generated from lorossi/latex-notes-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb2.sty
executable file
·35 lines (29 loc) · 1.03 KB
/
db2.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{db2}[2022/09/29 LaTeX template for my data bases 2 notes customization]
\RequirePackage{diagbox}
\RequirePackage{rotating}
\ProcessOptions\relax
% macros for common abbreviations
\newcommand{\cc}{\shortfor{CC}}
\newcommand{\csr}{\shortfor{CSR}}
\newcommand{\tpl}{\shortfor{2PL}}
\newcommand{\stpl}{\shortfor{Strict 2PL}}
\newcommand{\vsr}{\shortfor{VSR}}
\newcommand{\cg}{\shortfor{CG}}
\newcommand{\dbms}{\shortfor{DBMS}}
\newcommand{\ts}{\shortfor{TS}}
\newcommand{\si}{\shortfor{SI}}
% macros for fancy NP and NP-complete
\newcommand{\NP}{\(\mathcal{NP}\)\xspace}
\newcommand{\NPC}{\NP-\textit{complete}\xspace}
% macros for common languages and frameworks
\newcommand{\sql}{\texttt{SQL}\xspace}
\newcommand{\java}{\texttt{Java}\xspace}
\newcommand{\javab}{\texttt{JavaBean}\xspace}
\newcommand{\jpa}{\texttt{JPA}\xspace}
\newcommand{\jta}{\texttt{JTA}\xspace}
% workaround for showing annotations as keywords
\lstdefinelanguage{annotatedjava}{
language=Java,
morecomment=[l][keywordstyle]{@},
}