aboutsummaryrefslogtreecommitdiff
path: root/fichiers
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-10-03 10:29:24 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-10-03 10:29:24 +0200
commitfb54e0d5ec2df0abd20f456a7d07c297a67110ff (patch)
treefc3b7fb92302bcf450c262fe8b5108ce024dc128 /fichiers
parent1adacb29a6f82f571afd38c759e22bcf3e9e8a08 (diff)
downloadcourses-fb54e0d5ec2df0abd20f456a7d07c297a67110ff.tar.gz
new file 02-git.tex
Diffstat (limited to 'fichiers')
-rw-r--r--fichiers/02-git.tex44
1 files changed, 44 insertions, 0 deletions
diff --git a/fichiers/02-git.tex b/fichiers/02-git.tex
new file mode 100644
index 0000000..87767ab
--- /dev/null
+++ b/fichiers/02-git.tex
@@ -0,0 +1,44 @@
1\input{../_preamble}
2%\input{../_preamble_bbl}
3\usepackage{menukeys}
4\title{Git}
5\usepackage{float}
6\usepackage{dingbat}
7\usepackage[newfloat]{minted}
8\SetupFloatingEnvironment{listing}{listname=Listings}
9\setminted{
10 bgcolor=Lavender,
11 breaklines,
12 breaksymbolright=\small\carriagereturn}
13\setmintedinline{bgcolor=Lavender}
14\usepackage{capt-of}
15\usepackage{soul}
16\makeindex[name=cmds, intoc, title={Liste des commandes et
17 instructions}, options={-s \jobname.ist}]
18
19\NewDocumentCommand{\commande}{s m O{}}{
20 \IfBooleanTF{#1}{\index[cmds]{#2@\texttt{#2}|#3textbf}}
21 {\index[cmds]{#2@\texttt{#2}#3}}
22}
23
24\NewDocumentCommand{\inputfile}{O{} m m O{application/x-sh}}{
25 \marginpar{\attachandlink{scripts/#3}[#4]{Fichier
26 attaché}{\textcolor{blue}{Ouvrir le fichier}}}
27 \inputminted[#1]{#2}{scripts/#3}
28}
29
30\begin{document}
31\maketitle
32\renewcommand{\contentsname}{Sommaire}
33\tableofcontents
34
35\listoflistings
36
37\needspace{3\baselineskip}
38\listoftables
39
40\chapter{Introduction}
41\label{cha:introduction}
42
43
44\end{document} \ No newline at end of file