-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.tex
More file actions
163 lines (139 loc) · 3.74 KB
/
test.tex
File metadata and controls
163 lines (139 loc) · 3.74 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
\documentclass[10pt,xcolor={dvipsnames}]{beamer}
\mode<presentation>{
\usetheme{CambridgeUS}
\usecolortheme{sysnove}
\setbeamercovered{transparent}
}
%\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage{default}
\usepackage{ifthen}
\usepackage{listings}
\usepackage{tcolorbox}
\tcbuselibrary{listings, raster, xparse}
\usepackage{tikz}
\usetikzlibrary{calc, tikzmark}
\graphicspath{{imgs/}}
\title[Outils de travail collaboratif]{{\small ADSILLH}\\Outils de travail collaboratif}
\author[Alexis Lahouze]{Alexis~\textsc{Lahouze}\\
\medskip
\includegraphics[scale=0.5]{logo-sysnove}
}
\institute[Sysnove]{}
\date{ADSILLH 2016 S1}
\setbeamerfont{author in sidebar}{size=\footnotesize}
\setbeamerfont{title in sidebar}{size=\footnotesize}
\setbeamerfont{subsection in sidebar}{size=\scriptsize}
\setbeamercolor{palette sidebar secondary}{fg=darkred}
\setbeamercolor{title in sidebar}{fg=darkred}
\setbeamertemplate{navigation symbols}{}
\logo{
\includegraphics[height=0.6cm]{logo-sysnove}
\hspace{0.5cm}
}
\usepackage{nameref}
\makeatletter
\newcommand*{\currentname}{\@currentlabelname}
\makeatother
\AtBeginSection[]
{
\begin{frame}{\currentname}
\tableofcontents[
currentsection,
sectionstyle=show/shaded,
subsectionstyle=show/show/hide
]
\end{frame}
}
% Define listings global style
\lstset{
%frame=single,
%breaklines=true,
basicstyle=\ttfamily\tiny,
numberstyle=\ttfamily\tiny,
numbersep=5pt,
%postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}
escapeinside=||
}
% Define diff language for listings
\lstdefinelanguage[normal]{diff}{
morecomment=[f][\color{BrickRed}]<, % deleted lines
morecomment=[f][\color{ForestGreen}]>, % added lines
}
\NewTCBListing{snvlisting}{ O{} m }{%
colback=red0!10!white,
colframe=red0!75!black,
title=#2 (#1),
fonttitle=\tiny,
lowerbox=ignored,
listing only,
listing options={%
basicstyle=\tiny\ttfamily,
numberstyle=\tiny\ttfamily,
numbers=left,
escapeinside=||,
language={#1}}}%
% Command to draw a balloon over two anchors
%\newcommand<>{\balloon}[3]{%
% \coordinate (c) at ($(#2)+(0,1ex)$);
% \node#4 (#1) [balloon, fit=(#3) (c)] {};}
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\begin{frame}[squeeze]{Sommaire}
\tableofcontents[sectionstyle=show, subsectionstyle=show/show/show]
\end{frame}
\section{Développement}
\subsection{Patch}
\begin{frame}{Premiers patchs}
\begin{figure}
\caption{Programme sur bande perforée patchée pour Harvard Mark I.}
\includegraphics[height=160pt]{Harvard_Mark_I_program_tape}\par
\tiny Source~: Wikipedia
\end{figure}
\end{frame}
\begin{frame}[fragile]{Principe de base}
Sortie normale de diff
\begin{tcbraster}[raster columns=3, raster valign=top]
\begin{snvlisting}{Original}
This part of the
document has stayed the
same from version to
version. It shouldn't
be shown if it doesn't
change. Otherwise, that
would not be helping to
compress the size of the
changes.
\end{snvlisting}
\begin{snvlisting}{Modifié}
This is an important
notice! It should
therefore be located at
the beginning of this
document!
\end{snvlisting}
\begin{tcolorbox}[blanker]
\begin{tcbraster}[raster columns=1, raster rows=2]
\begin{snvlisting}[[normal]diff]{Diff}
|\tikzmark{b}|0a1,6|\tikzmark{c}|
> This is an important
> notice! It should
> therefore be located at
> the beginning of this
> document!
\end{snvlisting}
\
\end{tcbraster}
\end{tcolorbox}
\end{tcbraster}
\begin{tikzpicture}[overlay,remember picture]
\draw ([yshift=5pt]pic cs:b) rectangle ([yshift=-2pt]pic cs:c);
\end{tikzpicture}
\end{frame}
\begin{frame}
\framesubtitle{test}
Hello worl!
\end{frame}
\end{document}