-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofCSS.sty
101 lines (89 loc) · 1.93 KB
/
profCSS.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{profCSS}[2019/01/29]
\newlength{\cssLogoSize}
\setlength{\cssLogoSize}{\f@size pt}
%% \multiply\htmlLogoSize by 1.05
\setlength{\cssLogoSize}{1.1\cssLogoSize}
\newmintedfile[comcss]{css}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=blue,
numbersep=3pt%
}%%
\newminted[envcss]{css}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=blue,
numbersep=3pt%
}%%
%% style tcolorbox
%% pour encadrer le code
\newtcolorbox{boitecss}{%%
enhanced,
breakable,
colback=blue!5,
colframe=blue,
colbacktitle=blue!30,
title={\sffamily\texttt{\color{blue} Code CSS}%%
\hfill%
\includegraphics[height=\cssLogoSize]{css.png}%%
},
%% title style={left color=yellow!30, right color=blue!20},
boxrule=5pt,
titlerule=.5pt,
bottomtitle=-2pt,
toptitle=-2pt,
arc=10pt,
watermark graphics=css.png,
watermark zoom=1.00,
watermark opacity=.1,
%% drop fuzzy shadow=blue!50!black
}
%% À UTILISER AVEC UN FICHIER
\newcommand{\fichiercss}[1]{%
\begin{english}%%
\begin{boitecss}
\comcss{#1}
\end{boitecss}
\end{english}%%
}
%% À UTILISER DIRECTEMENT
\newenvironment{codecss}{
\VerbatimEnvironment
\begin{english}%%
\begin{boitecss}
\begin{envcss}%
}{\end{envcss}
\end{boitecss}
\end{english}
}
% \newcommand{\vcss}[1]{%
% \begin{english}%%
% \begin{mdframed}[%%
% linecolor=blue,
% linewidth=5pt,
% frametitlebackgroundcolor=blue!30,
% frametitlerule=true,
% backgroundcolor=blue!5,
% roundcorner=10pt,
% frametitle={\bfseries\sffamily\texttt{\color{white} Code CSS}%%
% \hfill%
% \includegraphics[height=\htmlLogoSize]{images/css.png}%%
% }]%
% \vcs{#1}%%
% \end{mdframed}%%
% \end{english}%%
% }
\endinput
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: