Commit 515e836a authored by Bonnegent's avatar Bonnegent
Browse files

import initial

parents
% Django par la pratique
% Sébastien Bonnegent
% 22 octobre 2017
# Pourquoi ?
## Parce que
- Le code source est lisible
- Il est *git*able
- Le résultat est le même que *Beamer*
## Du code
La coloration de code est très simple.
### Un Hello World!
~~~python
public static void main(String... args) {
System.out.println("Hello world!");
}
~~~
## Du code numéroté
~~~{.c .numberLines startFrom="5"}
int main(int argc, char *argv[]) {
printf("Hello world!\n");
return 0;
}
~~~
## Des énumérations
- Apache
- BSD
- GPL
- GPLv2
- GPLv3
- MIT
## Des listes numérotées
1. Récupérer le projet
2. Installer `pandoc`
3. Installer les dépendances
a. `texlive-latex-base`
b. `latex-beamer`
4. Installer un lecteur (`impressive`)
5. `make run`
This diff is collapsed.
DEP=$(wildcard *.sty images/*.jpg images/*.png)
THEME=Custom
pdf/01.pdf: 01/slides.md $(DEP)
pandoc -st beamer -V theme:$(THEME) -V lang:fr-FR 01/slides.md -o pdf/01.pdf
1: pdf/01.pdf
impressive -t Crossfade --nologo pdf/01.pdf
clean:
rm -rf pdf/*.pdf
Installation sur une fedora 26
==============================
dnf install pandoc pandoc-pdf texlive-latex-bin-bin texlive-beamer \
texlive-wasysym texlive-collection-langfrench impressive texlive-wasy
git clone git@framagit.org:bonnegent/cours_django.git
Ensuite, il y a un Makefile par sous répertoire.
Outils utilisés
===============
* vi
* pandoc
* https://blog.rom1v.com/2014/02/des-slides-beamer-en-markdown/
% the 3 colors
\definecolor{Color1}{HTML}{25567B}
\definecolor{Color2}{HTML}{033E6B}
\definecolor{Color3}{HTML}{66A3D2}
% the logo on the title page
% \titlegraphic{\includegraphics[height=1.5cm]{avatar.png}}
\titlegraphic{\includegraphics[height=1.5cm]{images/logo_django.png}}
% the logo on every page
\logo{\includegraphics[height=0.5cm]{images/logo_insa_rouen.png}}
\usepackage{booktabs,latexsym,amssymb,wasysym}
\hypersetup{colorlinks,linkcolor=,urlcolor=Color3}
\useoutertheme{split}
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme[shadow]{rounded}
% to disable the navigation bar
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{frametitle}{bg=white,fg=Color2}
\setbeamercolor{palette primary}{bg=Color3,fg=white}
\setbeamercolor{palette secondary}{bg=Color2}
\setbeamercolor{palette tertiary}{bg=Color3}
\setbeamercolor{palette quaternary}{bg=Color1}
\setbeamercolor{normal text}{fg=Color1}
\setbeamercolor{block title}{bg=Color2}
\setbeamercolor{example text}{fg=Color3}
\setbeamercolor{alerted text}{fg=Color1}
\setbeamercolor{item}{parent=normal text}
\setbeamercolor{section in toc}{fg=Color3}
% title blocks: can be better depending on selected colors
%\setbeamercolor{titlelike}{bg=Color2,fg=white}
\newcommand{\code}[1]{\textcolor{Color3}{\footnotesize{\texttt{#1}}}}
\newcommand{\entity}[1]{\textcolor{Color2}{#1}}
\newcommand{\good}{\textcolor{green}{\smiley}}
\newcommand{\bad}{\textcolor{red}{\frownie}}
% Does not work when generated from markdown using pandoc
%\AtBeginPart{\frame{\partpage}}
%
%\AtBeginSection[]
%{
% \begin{frame}<beamer>
% \frametitle{Plan}
% \tableofcontents[currentsection]
% \end{frame}
%}
% This is the correct way to get the frame number in the footline,
% by modifying beamerouterthemesplit footline.
\setbeamertemplate{footline}{
\leavevmode
\hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\usebeamerfont{date in head/foot}
\hfill\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}
}
Tous les fichiers dans ce répertoire sont générés, ne rien mettre ici.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment