Reorganise folders

This commit is contained in:
Joel von der Weid
2024-01-12 15:29:35 +01:00
parent 43fac9529c
commit 7d997f5809
5 changed files with 0 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,65 @@
% Settings for slides.tex
\usepackage{svg}
\usepackage{xpatch}
\usepackage{xcolor}
% Code block style
\usepackage{minted}
\setminted{
baselinestretch=1.1,
fontsize=\footnotesize,
linenos,
xleftmargin=0.8cm
}
\makeatletter
\newcommand{\my@beamer@setsep}{%
\ifnum\@itemdepth=1\relax
\setlength\itemsep{\my@beamer@itemsepi}% separation for first level
\else
\ifnum\@itemdepth=2\relax
\setlength\itemsep{\my@beamer@itemsepii}% separation for second level
\setlength\topsep{\my@beamer@itemsepii}% separation for second level
\else
\ifnum\@itemdepth=3\relax
\setlength\itemsep{\my@beamer@itemsepiii}% separation for third level
\setlength\topsep{\my@beamer@itemsepiii}% separation for second level
\fi\fi\fi}
\newlength{\my@beamer@itemsepi}\setlength{\my@beamer@itemsepi}{3ex}
\newlength{\my@beamer@itemsepii}\setlength{\my@beamer@itemsepii}{1.5ex}
\newlength{\my@beamer@itemsepiii}\setlength{\my@beamer@itemsepiii}{1.5ex}
\newcommand\setlistsep[3]{%
\setlength{\my@beamer@itemsepi}{#1}%
\setlength{\my@beamer@itemsepii}{#2}%
\setlength{\my@beamer@itemsepiii}{#3}%
}
\xpatchcmd{\itemize}
{\def\makelabel}
{\my@beamer@setsep\def\makelabel}
{}
{}
\xpatchcmd{\beamer@enum@}
{\def\makelabel}
{\my@beamer@setsep\def\makelabel}
{}
{}
\makeatother
\makeatletter
\beamer@theme@subsectionfalse%
\makeatother
\setbeamertemplate{itemize items}{\usebeamercolor[bg]{section in head/foot}$\blacktriangleright$}
\setbeamertemplate{enumerate items}{\usebeamercolor[bg]{section in head/foot}\insertenumlabel.}
\setlength\itemsep{20em}
% To disable navigation buttons above footer
% \beamertemplatenavigationsymbolsempty
% To align title to the left in the header (this removes bullet points)
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}{section in head/foot}
\insertsectionnavigationhorizontal{\textwidth}{}{\hfill\hfill\hfill}
\end{beamercolorbox}%
}

View File

@@ -0,0 +1,122 @@
\documentclass{beamer}
\usetheme{Szeged}
\usecolortheme{whale}
\input{settings.tex}
\title[title]{Full title} % title is used in slides footer
\subtitle{subtitle}
\author{Joël VON DER WEID\\
joel.von-der-weid@hesge.ch}
\institute{Hepia}
\date{\today}
\begin{document}
% Hide header/footer text in title frame
\setbeamercolor{section in head/foot}{fg=section in head/foot.bg}
\setbeamercolor{institute in head/foot}{fg=section in head/foot.bg}
\begin{frame}
\titlepage
\raggedleft
\includesvg[height=6mm]{img/hepia_logo.svg}
% Include a second logo
%\hfill\includesvg[height=6mm]{img/hepia_logo.svg}
\end{frame}
\setbeamercolor{section in head/foot}{fg=white!95!black}
\setbeamercolor{institute in head/foot}{fg=white!95!black}
% Hide institute in footer
%\institute{}
% Enable frame numbers after title frame
\setbeamertemplate{page number in head/foot}{%
\insertframenumber
}
%--------------------------------
\section{Introduction}
\begin{frame}{Summary}
\tableofcontents
\end{frame}
\begin{frame}{Context}
\begin{itemize}
\item Item 1
\begin{itemize}
\item Item 2
\item Item 3
\end{itemize}
\item Item 4
\item Item 5
\end{itemize}
\end{frame}
\logo{\includesvg[height=6mm]{img/hepia_logo.svg}\hspace{1cm}\vspace{1cm}}
\begin{frame}{Frame with logo}
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
\end{frame}
\logo{}
%--------------------------------
\section{Subject}
\begin{frame}{Sub suject}
\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\end{itemize}
\end{frame}
\begin{frame}{2 columns}
\begin{columns}[onlytextwidth, T, c]
\begin{column}{0.5\linewidth}
\begin{itemize}
\item Item 1
\item Item 2
\item Item 3
\end{itemize}
\end{column}
\begin{column}{0.5\linewidth}
\begin{center}
\vspace{-5mm}
\includegraphics[width=0.95\linewidth]{img/img}
\end{center}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Big image}
\includegraphics[width=\linewidth]{img/img}
\end{frame}
\begin{frame}[fragile]{frame with code}
\begin{itemize}
\item Some code example
\end{itemize}
\begin{minted}{python}
def hello():
print("Hello World")
\end{minted}
\end{frame}
\begin{frame}{}
\begin{columns}[onlytextwidth, T, c]
\begin{column}{\linewidth}
\vspace{0.7cm}
\usebeamercolor[bg]{frametitle}
\center{\Huge{Demonstration}}
\end{column}
\end{columns}
\end{frame}
\end{document}

100
latex/recipe/recipe.tex Normal file
View File

@@ -0,0 +1,100 @@
%% Oven Icon %%
\begin{filecontents*}{oven.svg}
<?xml version="1.0" encoding="utf-8"?>
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
<g><g transform="translate(0.000000,511.000000) scale(0.100000,-0.100000)"><path d="M797.8,4946l-72.8-64V110v-4772l72.8-64l70.6-64h4127.5h4127.5l70.6,64l72.8,64l6.6,4710.2c4.4,3293.1,0,4732.2-17.7,4789.6c-13.2,44.1-48.6,101.5-81.7,125.8l-57.4,46.4H4993.7H868.4L797.8,4946z M8814.4,3740.9v-827.7H4995.9H1177.4v827.7v827.7h3818.5h3818.5V3740.9z M8814.4-949.5v-3399.1H4995.9H1177.4v3399.1v3399.1h3818.5h3818.5V-949.5z"/><path d="M2921.1,4195.5c-198.6-64-304.6-189.8-322.3-379.6c-35.3-375.2,421.6-609.2,697.5-359.8c282.5,256,145.7,699.7-231.8,746C3016,4208.8,2952,4206.6,2921.1,4195.5z M3046.9,3760.7c-19.9-19.9-61.8,13.2-46.4,39.7c8.8,13.2,22.1,13.2,37.5-2.2C3051.3,3785,3055.8,3769.5,3046.9,3760.7z"/><path d="M4854.6,4182.3c-176.6-61.8-278.1-211.9-278.1-408.3c0-240.6,174.4-419.4,408.3-419.4c108.2,0,238.4,44.1,304.6,105.9c114.8,103.7,161.1,339.9,94.9,496.6c-55.2,136.9-249.4,260.5-399.5,258.2C4960.6,4213.2,4903.2,4200,4854.6,4182.3z M5018,3774c0-11-8.8-22.1-22.1-22.1c-11,0-22.1,11-22.1,22.1c0,13.2,11,22.1,22.1,22.1C5009.1,3796,5018,3787.2,5018,3774z"/><path d="M6849.9,4191.1c-247.2-75-379.6-368.6-267.1-589.3c86.1-165.5,214.1-247.2,388.5-247.2c178.8,0,311.2,86.1,388.4,253.8C7509.9,3930.7,7194.3,4292.7,6849.9,4191.1z M6984.6,3767.3c-28.7-28.7-57.4-6.6-35.3,26.5c6.6,13.2,24.3,17.7,37.5,11C7000,3796,7000,3782.8,6984.6,3767.3z"/><path d="M2367.1,1613.1c-315.6-101.5-554-377.4-615.8-712.9c-15.5-79.4-22.1-737.2-17.7-1840.8c6.6-1615.7,8.8-1726,48.5-1829.8c94.9-258.3,295.8-467.9,547.4-569.5l117-48.6l2491.9-6.6c2723.7-6.6,2635.4-8.8,2858.3,121.4c216.3,125.8,386.3,366.4,441.4,620.2c30.9,152.3,35.3,3388.1,2.2,3558c-64,339.9-315.6,620.2-637.9,715.1c-108.1,30.9-399.5,35.3-2615.5,33.1C2651.8,1652.8,2481.9,1650.6,2367.1,1613.1z M7468,1191.5c108.1-28.7,240.6-145.7,289.1-251.6c22.1-50.8,41.9-141.3,41.9-205.3v-117H4995.9H2192.7v117c2.2,203.1,121.4,381.9,300.2,445.9c70.6,26.5,505.4,30.9,2491.9,33.1C6481.3,1213.6,7419.4,1204.8,7468,1191.5z M7794.6-1234.2l-6.6-1410.4l-66.2-94.9c-35.3-50.8-110.4-117-163.3-145.7l-97.1-50.8H4995.9H2530.4l-97.1,50.8c-53,28.7-125.8,94.9-163.3,145.7l-66.2,94.9l-6.6,1410.4l-4.4,1410.4h2803.1H7799L7794.6-1234.2z"/></g></g>
</svg>
\end{filecontents*}
%++++++++++++++++++++++++++++++++++++++++
\documentclass[a4paper,12pt]{memoir}
\usepackage{newfloat,parskip,tabularx,amsmath,graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=2.5cm,a4paper]{geometry}
\usepackage[sfdefault]{noto}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[fixed]{fontawesome5}
\usepackage{svg}
\makeatletter
\newcommand\BIG{\@setfontsize\Huge{32}{36}}
\makeatother
\pagestyle{empty}
% Create commands
\makeatletter
\newcommand\persons[1]{\renewcommand\@persons{#1}}
\newcommand\@persons{}
\newcommand\preptime[1]{\renewcommand\@preptime{#1}}
\newcommand\@preptime{}
\newcommand\cooktime[1]{\renewcommand\@cooktime{#1}}
\newcommand\@cooktime{}
\makeatother
\makeatletter
\renewcommand{\maketitle}{
\vspace*{-0.7cm}
\begin{center}
{\BIG\bfseries \@title \par}
\vspace{0.4cm}
\if\relax\@cooktime\relax
\begin{tabular}{ r|l }
\textbf{\large{\@persons}}~pers~ & \raisebox{-0.5pt}{\faClock[regular]}~\textbf{\@preptime}
\end{tabular}
\else
\begin{tabular}{ r|c|l }
\textbf{\large{\@persons}}~pers~ & \raisebox{-0.5pt}{\faClock[regular]}~\textbf{\@preptime}~ & ~\raisebox{-2pt}{\includesvg[height=1em]{oven.svg}}~ \textbf{\@cooktime}
\end{tabular}
\fi
\end{center}
\vspace*{1cm}
}
\makeatother
\newcommand{\step}[2]{
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{@{}p{0.46\textwidth}cp{0.46\textwidth}}
#1 & & #2
\end{tabular}
\renewcommand{\arraystretch}{1}
\vspace{5mm}
}
\setlength{\parindent}{0pt} % Remove alinea
%++++++++++++++++++++++++++++++++++++++++
%++++++++++++++++++++++++++++++++++++++++
\title{Exemple de recette}
\persons{4}
\preptime{30 min}
\cooktime{50 min}
\begin{document}
\maketitle
%% Recipe %%
\subsection{Pâte}
\step{
3 jaunes d'œufs\\
40g de sucre\\
1 cc de sel
}{Voila un exemple d'étape avec plusieurs petits ingrédients qui doivent etre utilisé en meme temps.}
\step{
150g de chocolat}{Voila un exemple avec un seul ingrédient.}
\step{}{Voici une dernière étape à faire sans aucun ingrédient, genre y garder au frais.}
\subsection{Façonnage}
Voila un exemple de section qui ne prend aucun ingrédient mais donne des instructions sur le façonnage ou la cuisson par exemple.
\end{document}

View File

@@ -0,0 +1,80 @@
%++++++++++++++++++++++++++++++++++++++++
\documentclass[a4paper,12pt]{article}
\usepackage{newfloat,parskip,tabularx,amsmath,graphicx,cite,sourcecodepro}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=2.5cm,a4paper]{geometry}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[autolanguage]{numprint}
% Define default style for code blocks
\usepackage[newfloat]{minted}
\setminted{
linenos=false,
breaklines=true,
escapeinside=||,
mathescape=true,
framesep=3mm,
tabsize=4
}
% Set link colors
\usepackage[final]{hyperref}
\hypersetup{
colorlinks=false,
linkcolor=blue,
citecolor=blue,
filecolor=magenta,
urlcolor=blue
}
\graphicspath{{img/}}
% remove section number in front of subsection numbers (to avoid section 0.1)
\renewcommand{\thesubsection}{\arabic{subsection}}
\setlength{\parindent}{0pt} % Remove alinea
%++++++++++++++++++++++++++++++++++++++++
% Provide \correction command to show corrections in the pdf if enabled
\newif\ifcorrected
\correctedtrue % Set \correctedtrue to see corrections in the pdf
\newcommand{\correction}[1]{\ifcorrected {\color{Mahogany} #1} \fi }
%++++++++++++++++++++++++++++++++++++++++
\title{<Document Title>}
\author{Joël von der Weid <joel.von-der-weid@hesge.ch>}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
This is an abstract
\end{abstract}
\section*{Section}
This is a section.
%\begin{figure}[ht!]
%\center
%\includegraphics[width=0.95\textwidth]{schema}
%\caption{Schema relationnel de la base de données}
%\label{fig:schema}
%\end{figure}
\subsection*{Subsection}
\begin{minted}{sql}
SELECT * FROM t1, t2
WHERE t1.id = t2.id;
\end{minted}
\mintinline{sql}|SELECT * FROM t1, t2;|
\subsubsection*{Subsubsection}
\correction{Voici une correction : \texttt{SELECT * FROM t1;}}
\end{document}