-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofHTML.sty
127 lines (118 loc) · 2.69 KB
/
profHTML.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{profHTML}[2019/01/29]
\newlength{\htmlLogoSize}
\setlength{\htmlLogoSize}{\f@size pt}
\setlength{\htmlLogoSize}{1.1\htmlLogoSize}
%% styles minted
%% pour colorer le html
\newmintedfile[comhtml]{html}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=red,
numbersep=3pt%
}%%
\newminted[envhtml]{html}{%
fontfamily=tt,
linenos,
mathescape,
breaklines,
autogobble,
framerule=1pt,
rulecolor=red,
numbersep=3pt%
}%%
%% style tcolorbox
%% pour encadrer le code
\newtcolorbox{boitehtml}{%%
enhanced,
breakable,
colback=red!5,
colframe=red,
colbacktitle=red!30,
title={\sffamily\texttt{\color{red!80} Code HTML}%%
\hfill%
\includegraphics[height=\htmlLogoSize]{html.png}%%
},
%% title style={left color=yellow!30, right color=blue!20},
boxrule=5pt,
titlerule=.5pt,
bottomtitle=-2pt,
toptitle=-2pt,
arc=10pt,
watermark graphics=html.png,
watermark zoom=1.00,
watermark opacity=.1,
%% drop fuzzy shadow=blue!50!black
}
%% À UTILISER AVEC UN FICHIER
\newcommand{\fichierhtml}[1]{%
\begin{english}%%
\begin{boitehtml}
\comhtml{#1}
\end{boitehtml}
\end{english}%%
}
%% À UTILISER DIRECTEMENT
\newenvironment{codehtml}{
\VerbatimEnvironment
\begin{english}%%
\begin{boitehtml}
\begin{envhtml}%
}{\end{envhtml}
\end{boitehtml}
\end{english}
}
% \newcommand{\vhtml}[1]{%
% \begin{english}%%
% \begin{mdframed}[%%
% linecolor=red,
% linewidth=5pt,
% frametitlebackgroundcolor=red!30,
% frametitlerule=true,
% backgroundcolor=red!5,
% roundcorner=10pt,
% frametitle={\bfseries\sffamily\texttt{\color{white} Code HTML}%%
% \hfill%
% \includegraphics[height=\htmlLogoSize]{images/html.png}%%
% }]%
% \comhtml{#1}%%
% \end{mdframed}%%
% \end{english}%%
% }
% \newenvironment{htmldirect}{
% \VerbatimEnvironment
% \begin{english}%%
% \begin{mdframed}[%%
% linecolor=blue!20,
% linewidth=5pt,
% frametitlebackgroundcolor=yellow!30,
% frametitlerule=true,
% backgroundcolor=yellow!15,
% roundcorner=10pt,
% frametitle={\bfseries\sffamily\texttt{\color{white} Code HTML}%%
% \hfill%
% \includegraphics[height=\htmlLogoSize]{images/html.png}%%
% }]%
% \begin{minted}[%
% fontfamily=tt,
% linenos,
% mathescape,
% breaklines,
% autogobble,
% framerule=1pt,
% rulecolor=red,
% numbersep=3pt%
% ]{html}}{%
% \end{minted}
% \end{mdframed}
% \end{english}
% }
\endinput
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: