-
Notifications
You must be signed in to change notification settings - Fork 1
/
pres.tex
98 lines (86 loc) · 2.74 KB
/
pres.tex
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
%\documentclass[ignorenonframetext,]{beamer}
\documentclass{beamer}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{:}
\setbeamercolor{caption name}{fg=normal text.fg}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\usepackage{lmodern}
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
\else
\ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
\else
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\fi
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:
\AtBeginPart{
\let\insertpartnumber\relax
\let\partname\relax
\frame{\partpage}
}
\newcommand\AtBeginSectionx{\AtBeginSection{
\let\insertsectionnumber\relax
\let\sectionname\relax
%\frame{\sectionpage}
\frame{\tableofcontents[currentsection]}
}}
\AtBeginSection{\AtBeginSectionx}
\AtBeginSubsection{
\let\insertsubsectionnumber\relax
\let\subsectionname\relax
%\frame{\subsectionpage}
\frame{\tableofcontents[currentsubsection]}
}
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{0}
%%%%LISTING%%%%
\usepackage{listings}
% definition of the nit language
\lstdefinelanguage{nit}{%
keywords={import,class,interface,universal,super,fun,var,redef,protected,private,module,init,do,end,new,%
return,if,then,else,while,for,loop,in,isa,isset,break,continue,label,%
is,abstract,self,true,false,null,nullable,writable,assert,and,or,not,extern,intern},%
morecomment=[l]{\#},%
morestring=[b]",%
}
% disable spaces ij strings by default
\lstset{basicstyle=\scriptsize\ttfamily,%
keywordstyle=\bf\color{green!30!black},%
commentstyle=\itshape\color{green!30!black},%
language=nit,%
inputencoding=utf8,%
tabsize=3,%
showstringspaces=false,%
}
%%%%%%%%%%%%%%%
\title{Nit --- un langage d'avenir}
\date{}
\definecolor{nitgreen}{RGB}{13,137,33}
\usetheme{Boadilla}
\usefonttheme{structurebold}
\usecolortheme[named=nitgreen]{structure}
\begin{document}
\frame{\titlepage}
%\frame{\frametitle{Sommaire}\begin{minipage}{\textwidth}\small\tableofcontents\end{minipage}}
\frame{\tableofcontents}
\include{pres-main}
\end{document}