summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pas-tableur/doc.codes.tex
blob: 429b0cad3c6f34a275c5d7a213b1cfd255e7cc1e (plain)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
\tcbuselibrary{listings}
\usetikzlibrary{decorations.pathmorphing}

% Couleurs utilisées dans la documentation

\definecolor{codeTitleFont}{cmyk}{0.04,0,0.03,0.16}
\definecolor{codeTitleBackLeft}{cmyk}{0.08,0,0.06,0.76}
\definecolor{codeTitleBackRight}{cmyk}{0.07,0,0.05,0.42}
\definecolor{listingTitleFont}{cmyk}{0,0.31,0.91,0.38}
\definecolor{listingTitleBackLeft}{cmyk}{0,0.05,0.64,0}
\definecolor{listingTitleBackRight}{cmyk}{0,0.03,0.31,0.02}


% Code LaTeX

\tcbset{codeTEX/.style={
	sharp corners=all,
	before skip=1em,
	after skip=1em,
	enhanced,
	frame style={	
			left color=codeTitleBackLeft,
			right color=codeTitleBackRight},
	interior style={
		top color=codeTitleBackLeft!50,
		bottom color=codeTitleBackRight!20},
	boxrule=0.7pt,
	fonttitle={\sffamily\bfseries\color{codeTitleFont}},
	colback=codeTitleFont,
	listing only,
	left=6mm,
	listing options={
		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
		keywordstyle=\color{blue},
		numbers=left,
		language=TeX,
		breaklines=true,
		morekeywords={definecolor,tcbset,begin, newtcbtheorem,newenvironment,newcommand,bfseries,color, sffamily,tcblower,ttfamily,setlength},
		numberstyle=\tiny\color{red!75!black}},
	breakable
	}
}

% Listing exemples

\tcbset{listing/.style={
	sharp corners=all,
	before skip=1em,
	after skip=1em,
	enhanced,
	frame style={	
			left color=listingTitleBackLeft,
			right color=listingTitleBackRight},
	boxrule=0.7pt,
	fonttitle={\sffamily\bfseries\color{listingTitleFont}},
	colback=listingTitleBackRight,
	breakable,
	listing options={
		basicstyle=\ttfamily\fontsize{7}{9}\selectfont,
		keywordstyle=\color{listingTitleFont},
		numbers=left,
		language=TeX,
		breaklines=true,
		numbersep=5pt,
		morekeywords={ifelse,begin,definecolor,tcbset},
		numberstyle=\tiny\color{red!75!black}},
	},
	interior style={
		draw=listingTitleBackLeft,
		top color=listingTitleBackLeft!50,
		bottom color=listingTitleBackRight!20},
	  segmentation style={
		draw=listingTitleFont,
		solid,
		decorate,
		decoration={random steps,segment length=2mm}
	}
}

% Titre de la documentation

\tcbset{head/.style={
	enhanced,
	hbox,
	tikznode,
	left=8mm,
	right=8mm,
	boxrule=0.4pt,
  colback=white,
  colframe=gray,
  drop lifted shadow=black!50!yellow,
  before=\par\vspace*{5mm},
  after=\par\bigskip,
  interior style={
		draw=white,
		top color=white,
		bottom color=white}
	}
}

% TOC

\tcbset{toc/.style={
	breakable,
	enhanced jigsaw,
	title={\color{red!50!black}Sommaire},
	fonttitle=\bfseries\Large,
  colback=yellow!10!white,
  colframe=red!50!black,
  before=\par\bigskip\noindent,
  interior style={
  	fill overzoom image=goldshade.png,
  	fill image opacity=0.25},
  colbacktitle=yellow!20,
  enlargepage flexible=\baselineskip,
  pad at break*=3mm,
  attach boxed title to top center={
  	yshift=-0.25mm-\tcboxedtitleheight/2,
  	yshifttext=2mm-\tcboxedtitleheight/2},
  boxed title style={
  	enhanced,
  	boxrule=0.5mm,
    frame code={ 
    \path[tcb fill frame] ([xshift=-4mm]frame.west) -- (frame.north west)
    -- (frame.north east) -- ([xshift=4mm]frame.east)
    -- (frame.south east) -- (frame.south west) -- cycle; },
    interior code={ 
    	\path[tcb fill interior] ([xshift=-2mm]interior.west)
    -- (interior.north west) -- (interior.north east)
    -- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west)
    -- cycle;}  },
  drop fuzzy shadow
	}
}

% Historique de l'extension

\tcbset{histo/.style={
	enhanced,
	breakable,
	sidebyside,
	lefthand width=1.5cm
	}
}