Browse Source

canevas diapos

master
Olivier Langella 4 months ago
parent
commit
7242eb04b0
  1. 53
      diapos/CMakeLists.txt
  2. 1379
      diapos/UseLATEX.cmake
  3. BIN
      diapos/images/EESR14_R_46_FR_02.png
  4. 130
      diapos/recherche_bien_commun.tex
  5. 77
      diapos/slashbox.sty

53
diapos/CMakeLists.txt

@ -0,0 +1,53 @@
PROJECT(debian_PAPPSO NONE)
cmake_minimum_required(VERSION 2.8)
#FILE(GLOB SVG_FILES "${CMAKE_SOURCE_DIR}/images/*.svg")
FILE(GLOB SVG_FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/*.svg")
FOREACH(file ${SVG_FILES})
GET_FILENAME_COMPONENT(filename ${file} NAME_WE)
GET_FILENAME_COMPONENT(filepath ${file} PATH)
#inkscape --without-gui --export-pdf="${f%.svg}.pdf" $f
ADD_CUSTOM_COMMAND (
#COMMENT ("inkscape ${file} to pdf")
OUTPUT ${filepath}/${filename}.pdf
DEPENDS ${filepath}/${filename}.svg
COMMAND inkscape
ARGS --without-gui --export-pdf="${filepath}/${filename}.pdf" ${filepath}/${filename}.svg
)
SET (PDF_RESULTS ${PDF_RESULTS}
${filepath}/${filename}.pdf
)
ENDFOREACH(file)
ADD_CUSTOM_TARGET(svg2pdf
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/images
COMMENT "Converting SVG files..."
DEPENDS ${PDF_RESULTS}
)
SET(LATEX_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build)
INCLUDE(UseLATEX.cmake)
ADD_LATEX_DOCUMENT (
recherche_bien_commun.tex
INPUTS recherche_bien_commun.tex slashbox.sty
IMAGE_DIRS images
DEFAULT_PDF
DEPENDS svg2pdf
)
ADD_CUSTOM_TARGET(view
COMMAND evince recherche_bien_commun.pdf
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/build
COMMENT "Viewing pdf..."
)

1379
diapos/UseLATEX.cmake

File diff suppressed because it is too large Load Diff

BIN
diapos/images/EESR14_R_46_FR_02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

130
diapos/recherche_bien_commun.tex

@ -0,0 +1,130 @@
%\documentclass[12pt,handout]{beamer}
\documentclass{beamer}
%\documentclass[handout]{beamer}
\mode<presentation>
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{slashbox}
\usepackage{colortbl}
\usepackage{caption}
\usepackage[rightcaption]{sidecap} %right caption
\definecolor{light-gray}{gray}{0.8}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\usepackage{array}% http://ctan.org/pkg/array
\newsavebox{\mybox}% Store some content in a box
\newcolumntype{G}{@{}>{\begin{lrbox}{\mybox}}l<{\end{lrbox}}@{}}% a column that Gobbles it's entries
\usepackage{color}
\definecolor{gray}{rgb}{0.4,0.4,0.4}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible,
showstringspaces=false,
framesep=5pt,
commentstyle=\color{gray}\upshape,
numbers=left,
showtabs=true,
tabsize=5,
tab=\smash{\rule[-.2\baselineskip]{.4pt}{\baselineskip}\kern.5em}
}
\lstdefinelanguage{XML}
{
morestring=[b]",
morestring=[s]{>}{<},
morecomment=[s]{<?}{?>},
stringstyle=\color{black},
identifierstyle=\color{darkblue},
keywordstyle=\color{cyan},
morekeywords={xmlns,version,type}% list your attributes here
}
%-----------------
%Define the colors you want to use
\definecolor{keywordcolor}{rgb}{0,0.6,0.6}
\definecolor{delimcolor}{rgb}{0.461,0.039,0.102}
\definecolor{Rcommentcolor}{rgb}{0.101,0.043,0.432}
%-----------------
%Set up your listings. You can type `texdoc listings` in your terminal
\lstdefinestyle{customR}{
language=R,
basicstyle=\ttfamily,
breaklines=true,
showstringspaces=false,
keywords={if, else, function, theFunction, tmp},
otherkeywords={},
commentstyle=\itshape\color{Rcommentcolor},
keywordstyle=\color{keywordcolor},
moredelim=[s][\color{delimcolor}]{"}{"},
}
\lstdefinelanguage{customRtwo}{
otherkeywords={<-,<<-,\%*\%}, %% cannot add <-
keywordstyle=\bfseries
}
\definecolor{chocolate}{RGB}{0,0,150}
\usetheme{CambridgeUS}
%\useoutertheme{shadow}
\usecolortheme{dolphin}
\setbeamercolor{title}{bg=blue!5!white, fg=chocolate}
\setbeamercolor{frametitle}{bg=blue!5!white, fg=chocolate}
\setbeamercolor{structure}{bg=white, fg=chocolate}
\setbeamercolor{block title alerted}{bg=chocolate, fg=white}
\setbeamertemplate{itemize item} [ball] %default, triangle, circle, square et ball.
\setbeamertemplate{itemize subitem} [circle]
\setbeamertemplate{footline}{ %pour ajouter les numéros de diapo dans le pied de page
\color{black}
\hfill \insertframenumber/\inserttotalframenumber \hspace{0.05cm} \vspace{0.1cm}
}
%\setbeamertemplate{headline}{ %pour mettre les titre dans le haut de page. Définit la position des titres
% \color{black}
% \vspace{0.1cm}
% \hspace{0.2cm} \insertsection
% \hfill \insertsubsection \hspace{0.2cm}
%}
\setbeamertemplate{navigation symbols}{} % pour supprimer les symbols
%\beamertemplatetransparentcovered % fait afficher l'ensemble du frame en peu lisible (gris clair) dès l'ouverture
\setbeamercovered{transparent}
%\textblockorigin{0mm}{0mm} % origine des positions
%\hypersetup{pdfpagemode=FullScreen}
\title{Logiciels libres : à la recherche du bien commun}
\author{Edlira Nano, Olivier Langella}
\institute{
\includegraphics[width=0.3\textwidth]{images/EESR14_R_46_FR_02}}
%\logo{\includegraphics[width=0.3\textwidth]{images/PAPPSO}}
\date[]{Journées réseaux
de l'enseignement et
de la recherche, mai 2022, Marseille}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

77
diapos/slashbox.sty

@ -0,0 +1,77 @@
% slashbox.sty by Koichi Yasuoka, May 27, 1993
% minor modification by Toru Sato, May 31, 1993
\typeout{slashbox style by K.Yasuoka, May 1993.}%
\newbox\@slashboxa
\newbox\@slashboxb
\newbox\@slashboxc
\newcount\@slashboxwd
\newcount\@slashboxht
\newdimen\@slashsepl
\newdimen\@slashsepr
\def\slashbox{%
\def\@slashboxpicture##1{%
\put(0,0){\line(##1,1){\@slashboxwd}}%
\put(0,\@slashboxht){\makebox(0,0)[tl]{\box\@slashboxa}}%
\put(\@slashboxwd,0){\makebox(0,0)[br]{\box\@slashboxb}}%
}%
\@slashbox
}%
\def\backslashbox{%
\def\@slashboxpicture##1{%
\put(0,\@slashboxht){\line(##1,-1){\@slashboxwd}}%
\put(0,0){\makebox(0,0)[bl]{\box\@slashboxa}}%
\put(\@slashboxwd,\@slashboxht){\makebox(0,0)[tr]{\box\@slashboxb}}%
}%
\@slashbox
}%
\def\@slashbox{\@ifnextchar [{\@@slashbox}{\@@slashbox[0pt]}}
\def\@@slashbox[#1]{\@ifnextchar [{\@@@slashbox[#1]}{\@@@slashbox[#1][c]}}
\def\@@@slashbox[#1][#2]#3#4{%
% #1: width, #2: suppression of \tabcolsep on `l', `r', or `lr' side
% #3: left item, #4: right item
\@slashsepl=\tabcolsep
\@slashsepr=\tabcolsep
\@tfor\@tempa :=#2\do{\expandafter\let
\csname @slashsep\@tempa\endcsname=\z@}%
\setbox\@slashboxa=\hbox{\strut\hskip\tabcolsep\shortstack[l]{#3}}%
\setbox\@slashboxb=\hbox{\shortstack[r]{#4}\hskip\tabcolsep\strut}%
\setbox\@slashboxa=\hbox{\raise\dp\@slashboxa\box\@slashboxa}%
\setbox\@slashboxb=\hbox{\raise\dp\@slashboxb\box\@slashboxb}%
\setbox\@slashboxc=\hbox{%
\@tempdima=\wd\@slashboxa
\advance\@tempdima by \wd\@slashboxb
\advance\@tempdima by \@slashsepl
\advance\@tempdima by \@slashsepr
\@tempdimb=#1\relax%
\ifdim\@tempdimb>\@tempdima \@tempdima=\@tempdimb\fi%
\@tempdimb=\ht\@slashboxa
\advance\@tempdimb by \dp\@slashboxa
\advance\@tempdimb by \ht\@slashboxb
\advance\@tempdimb by \dp\@slashboxb
\@tempcnta=\@tempdima
\@tempcntb=\@tempdimb
\advance\@tempcnta by \@tempcntb
\advance\@tempcnta by -1
\divide\@tempcnta by \@tempcntb
\ifnum\@tempcnta>6 \@tempcnta=6
\@tempdimb=0.166666666\@tempdima
\else
\ifnum\@tempcnta<1 \@tempcnta=1\fi
\@tempdima=\@tempdimb
\multiply\@tempdima by \@tempcnta
\fi%
\advance\@tempdima by -\@slashsepl
\advance\@tempdima by -\@slashsepr
\@slashboxwd=\@tempdima
\@slashboxht=\@tempdimb
\@tempcntb=\@slashsepl
\setlength{\unitlength}{1sp}%
\begin{picture}(\@slashboxwd,\@slashboxht)(\@tempcntb,0)
\advance\@tempdima by \@slashsepl
\advance\@tempdima by \@slashsepr
\@slashboxwd=\@tempdima
\@slashboxpicture{\@tempcnta}
\end{picture}%
}%
$\vcenter{\box\@slashboxc}$%
}%
Loading…
Cancel
Save