Commit 8ae1b577ccbf2b2bd4efd9e0ca96450524749639
1 parent
027f7d07
Exists in
master
Ajout exemple org
Showing
1 changed file
with
49 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,49 @@ |
1 | +#+TITLE: Jolie présentation avec org-mode | |
2 | +#+AUTHOR: Jordi Inglada | |
3 | +#+LANGUAGE: fr | |
4 | +#+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t | |
5 | +#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc | |
6 | + | |
7 | +#+LATEX_CLASS: beamer | |
8 | +#+LATEX_CLASS_OPTIONS: [presentation,8pt] | |
9 | +#+BEAMER_THEME: Cesbio | |
10 | +#+LATEX_HEADER: \setbeamertemplate{navigation symbols}{} | |
11 | +#+LATEX_HEADER: \usepackage[french]{babel} | |
12 | +#+LATEX_HEADER: \usepackage[utf8]{inputenc} | |
13 | +#+LATEX_HEADER: \usepackage{minted} | |
14 | +#+LATEX_HEADER: \usemintedstyle{emacs} | |
15 | +#+LATEX_HEADER: \usepackage{color} | |
16 | +#+LATEX_HEADER: \newcommand{\shorttitle}{Org mode} | |
17 | +#+LATEX_HEADER: \newcommand{\shortauthor}{J. Inglada} | |
18 | +#+STARTUP: beamer | |
19 | + | |
20 | +* Première section | |
21 | + | |
22 | +** La structure | |
23 | + | |
24 | +Le ~H:2~ dans la ligne | |
25 | +#+begin_example | |
26 | +#+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t | |
27 | +#+end_example | |
28 | +indique que le niveau de heading 2 correspond à chaque slide. | |
29 | +Autres options : | |
30 | +- ~num:t~ numérotation des planches | |
31 | +- ~toc:t~ création de la table des matières | |
32 | + | |
33 | +Pour les autres options, regarder https://orgmode.org/manual/Export-Settings.html#Export-Settings | |
34 | + | |
35 | + | |
36 | +* Deuxième section | |
37 | + | |
38 | +** On peut ajouter du code | |
39 | + | |
40 | +#+BEGIN_SRC python :results output :exports both | |
41 | +#-*- coding: utf-8 -*- | |
42 | +def une_fonction(x, y): | |
43 | + return x+y | |
44 | + | |
45 | +a = une_fonction(2, 2) | |
46 | + | |
47 | +print('Le résultat est {}'.format(a)) | |
48 | +#+END_SRC | |
49 | + | ... | ... |