répertoires pour skb

This commit is contained in:
Benjamin Bohard 2015-03-09 09:27:18 +01:00
parent a0893bdafe
commit 9e83c67bf7
16 changed files with 326 additions and 0 deletions

View File

@ -0,0 +1,52 @@
\documentclass{beamer}
\usepackage{skb}
\skbconfig[
root = ../../../,
rep = content,
pub = presentations,
fig = figures,
sli = slides,
acr = database/acr,
bib = database/bib
]{skblocal.tex}
\skbinput[from=rep]{style/preambule}
\title[]{SIG libres pour les collectivités}
\subtitle{XXX CLIENT XXX}
\author[Equipe Auteur]{Cadoles}
\institute[Cadoles]{\includegraphics[width=2cm]{beamer-skel/img/logo-cadoles-01.png}}
\date{{\small \today}}
\subject{Talks}
\AtBeginSubsection[]
{
\begin{frame}<beamer>
\frametitle{}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\logo{
% \includegraphics[width=1cm]{beamer-skel/img/logo-ecologie.png}~
\hspace{120pt}
\includegraphics[width=2cm]{beamer-skel/img/logo-cadoles-01.png}~
\hspace{113pt}
\includegraphics[width=1cm]{beamer-skel/img/logo_en.jpg}~
}
\begin{document}
\skbinput[from=rep]{style/title.tex}
% Corps de la formation
\skbinput[from=rep]{style/license.tex}
\end{document}

95
setup_main_tex_file.py Executable file
View File

@ -0,0 +1,95 @@
#!/usr/bin/python
# -*- coding:utf-8 -*-
import argparse
import re
import random
import time
from os import path, makedirs
from jinja2 import Environment, FileSystemLoader
def get_unique_name(base):
now = time.localtime()
year = str(now[0])
month = str(now[1]).rjust(2, '0')
day = str(now[2]).rjust(2, '0')
rand = str(randint(0, 100)).rjust(2, '0')
return '-'.join([base, year, month, day, rand]).decode('utf-8')
def escape_tex(value):
newval = value
for pattern, replacement in LATEX_SUBS:
newval = pattern.sub(replacement, newval)
return newval
def main():
parser = argparse.ArgumentParser(description="Préparation du fichier maître tex")
parser.add_argument('-n', '--name', help="Nom du fichier à créer")
parser.add_argument('-a', '--author', help="Auteur de la formation")
parser.add_argument('-t', '--title', help="Titre de la formation")
parser.add_argument('-d', '--directory', help="Sous-répertoires où créer le fichier")
args = parser.parse_args()
jinja_loader = FileSystemLoader('./templates')
jinja_env = Environment(loader=jinja_loader,
block_start_string='((*',
block_end_string='*))',
variable_start_string='(((',
variable_end_string=')))',
comment_start_string='((=',
comment_end_string='=))',
trim_blocks=True)
jinja_env.filters['escape_tex'] = escape_tex
root = '../'
if args.directory:
root = root + re.sub(r'[\w]+/?', '../', args.directory)
else:
root = '../'
name = args.name
if name:
if path.splitext(name)[1] == '':
name = name.decode('utf-8') + u'.tex'
else:
name = get_unique_name('formation')
title = args.title
if not title:
title = u'FIXME'
else:
title = title.decode('utf-8')
author = args.author
if not author:
author = u'Cadoles'
else:
author = author.decode('utf-8')
directory = args.directory
if not directory:
directory = ''
env = {'root': root,
'title': title,
'author': author}
resources = [(path.join('presentations', directory), 'main.tex'),
('slides', 'license-cc-by-sa-2.0.tex'),
('slides', 'preambule.tex'),
('slides', 'title.tex')]
for directory, template_file in resources:
template = jinja_env.get_template(template_file)
rendered_template = template.render(**env)
if not path.exists(directory):
makedirs(directory)
with open(path.join(directory, name), 'w') as rendered_file:
rendered_file.write(rendered_template.encode('utf-8'))
if __name__ == '__main__':
main()

7
slides/SIG/floss.tex Normal file
View File

@ -0,0 +1,7 @@
\begin{frame}
\frametitle{Les briques libres de votre SIG}
\begin{itemize}
\item Données libres
\item Logiciels libres
\end{itemize}
\end{frame}

4
slides/SIG/frame.tex Normal file
View File

@ -0,0 +1,4 @@
\begin{frame}
\frametitle{Des données géoréférencées, pourquoi ?}
La dimension spatiale est importante dans beaucoup de mécanismes de prise de décision.
\end{frame}

4
slides/SIG/geodata.tex Normal file
View File

@ -0,0 +1,4 @@
\begin{frame}
\frametitle{Des données géoréférencées, pourquoi ?}
La dimension spatiale est importante dans beaucoup de mécanismes de prise de décision.
\end{frame}

View File

@ -0,0 +1,10 @@
\begin{frame}
\frametitle{SIG internalisé}
\begin{itemize}
\item adaptation des données ;
\item valeur ajoutée ;
\item données métiers ;
\item responsabilité de la qualité des données ;
\item haute disponibilité.
\end{itemize}
\end{frame}

View File

@ -0,0 +1,7 @@
\begin{frame}
\frametitle{SIG typique}
\begin{itemize}
\item données externes : WMS, WFS
\item données internes : WMS, WFS, base de données géoréférencées
\end{itemize}
\end{frame}

16
slides/sig.tex Normal file
View File

@ -0,0 +1,16 @@
% Page de titre
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Plan}
\begin{columns}[t]
\begin{column}{5cm}
\tableofcontents[sections={1-6},currentsection, hideothersubsections]
\end{column}
\begin{column}{5cm}
\tableofcontents[sections={7-12},currentsection,hideothersubsections]
\end{column}
\end{columns}
\end{frame}

3
templates/frame.tex Normal file
View File

@ -0,0 +1,3 @@
\begin{frame}
\frametitle{(((frame.title)))}
\end{frame}

View File

@ -0,0 +1,14 @@
\subject{Talks}
\begin{frame}
\frametitle{Licence}
Cette œuvre est mise à disposition sous licence \href{http://creativecommons.org/licenses/by-nc-sa/2.0/fr/}{\textsc{cc-by-sa-2.0}}
\begin{itemize}
\item Attribution
\item Partage dans les Mêmes Conditions 2.0
\item France
\end{itemize}
Pour voir une copie de cette licence, visitez
\href{http://creativecommons.org/licenses/by-sa/2.0/fr/}{http://creativecommons.org/licenses/by-sa/2.0/fr/}
ou écrivez à Creative Commons, 444 Castro Street, Suite 900,
Mountain View, California, 94041, USA.
\end{frame}

53
templates/main.tex Normal file
View File

@ -0,0 +1,53 @@
\documentclass{beamer}
\usepackage{skb}
\skbconfig[
root = (((root))),
rep = content,
pub = presentations,
fig = figures,
sli = slides,
acr = database/acr,
bib = database/bib
]{skblocal.tex}
\skbinput[from=rep]{style/preambule}
\title[]{(((title)))}
\subtitle{XXX CLIENT XXX}
\author[Equipe Auteur]{(((author)))}
\institute[Cadoles]{\includegraphics[width=2cm]{beamer-skel/img/logo-cadoles-01.png}}
\date{{\small \today}}
\subject{Talks}
\AtBeginSubsection[]
{
\begin{frame}<beamer>
\frametitle{}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\logo{
% \includegraphics[width=1cm]{beamer-skel/img/logo-ecologie.png}~
\hspace{120pt}
\includegraphics[width=2cm]{beamer-skel/img/logo-cadoles-01.png}~
\hspace{113pt}
\includegraphics[width=1cm]{beamer-skel/img/logo_en.jpg}~
}
\begin{document}
\skbinput[from=rep]{style/title.tex}
% Corps de la formation
\skbinput[from=rep]{style/license.tex}
\end{document}

44
templates/preambule.tex Normal file
View File

@ -0,0 +1,44 @@
%\usertheme{Madrid}
\setbeamercovered{transparent}
\setcounter{tocdepth}{2}
\usepackage[french]{babel}
%\usepackage[utf8,utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xunicode} %Unicode extras!
\usepackage{xltxtra} %Fixes
\setmainfont{CaviarDreams}
\usepackage{multicol}
%\usepackage{colortbtl}
\usepackage{graphicx}
\usepackage{verbatim} % Pour l'insertion de fichier en mode verbatim
\usepackage{ucs}
\usepackage{tabto}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{hyperxmp}
\hypersetup{%
colorlinks=true,linkcolor=blue,urlcolor=blue,pdfpagemode=UseNone,
pdftitle={(((title)))},
pdfkeywords={},
pdfauthor={(((author)))},
pdflang={fr-FR},
pdfcopyright={Copyright © 2011-2014 Cadoles}, % Nécessite XeTeX
pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/2.0/fr/},
}
%\usecolortheme{crane}
\definecolor{UniBlue}{RGB}{83,121,180}
\definecolor{CleanWhite}{RGB}{255,255,255}
\setbeamercolor{title}{fg=UniBlue}
\setbeamercolor{frametitle}{fg=CleanWhite}
\setbeamercolor{structure}{fg=UniBlue}
\newcommand{\eolesmall}{
\begin{minipage}[c]{0.10\textwidth}
\includegraphics[width=1cm]{beamer-skel/img/logo-eole.png}
\end{minipage}
}
\newcommand{\eolebig}{\includegraphics[width=2cm]{beamer-skel/img/logo-eole.png}}
\newcommand{\eolefull}{\includegraphics{beamer-skel/img/logo-eole.png}}
%\setmonofont[Scale=0.86]{Andale Mono}
%\usepackage{colortab}
\setbeamertemplate{background}{\includegraphics[width=128mm]{beamer-skel/img/banner01.png}}

17
templates/title.tex Normal file
View File

@ -0,0 +1,17 @@
% Page de titre
\begin{frame}
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Plan}
\begin{columns}[t]
\begin{column}{5cm}
\tableofcontents[sections={1-6},currentsection, hideothersubsections]
\end{column}
\begin{column}{5cm}
\tableofcontents[sections={7-12},currentsection,hideothersubsections]
\end{column}
\end{columns}
\end{frame}