-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofSQL.sty
80 lines (74 loc) · 1.47 KB
/
profSQL.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{profSQL}[2020/10/24]
\newcommand{\sql}{\texttt{SQL}\xspace}
%
\newlength{\sqlLogoSize}
\setlength{\sqlLogoSize}{\f@size pt}
%% styles minted
%% pour colorer le python
\newmintedfile[comsql]{sql}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=red,
numbersep=3pt%
}%%
\newminted[envsql]{sql}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=red,
numbersep=3pt%
}%%
%% style tcolorbox
%% pour encadrer le code
\newtcolorbox{boitesql}{%%
enhanced,
breakable,
colback=violet!15,
colframe=violet!20,
colbacktitle=violet!30,
title={\sffamily\texttt{\color{violet!80} Code SQL}%%
\hfill%
\includegraphics[height=\clangLogoSize]{sql.png}%%
},
%% title style={left color=yellow!30, right color=violet!20},
boxrule=5pt,
titlerule=.5pt,
bottomtitle=-2pt,
toptitle=-2pt,
arc=10pt,
watermark graphics=sql.png,
watermark zoom=1.00,
watermark opacity=.1,
%% drop fuzzy shadow=violet!50!black
}
%% À UTILISER AVEC UN FICHIER
\newcommand{\fichiersql}[1]{%
\begin{english}%%
\begin{boitesql}
\comsql{#1}
\end{boitesql}
\end{english}%%
}
%% À UTILISER DIRECTEMENT
\newenvironment{codesql}{
\VerbatimEnvironment
\begin{english}%%
\begin{boitesql}
\begin{envsql}%
}{\end{envsql}
\end{boitesql}
\end{english}
}
\endinput
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: