2019-09-30 19:04:26 +02:00
|
|
|
% Copyright note: This package define a formation title
|
2019-10-01 08:28:41 +02:00
|
|
|
\ProvidesPackage{formationTitle}[2019/10/01 v.0.4.0 a formation title
|
2019-09-30 19:04:26 +02:00
|
|
|
Gregory Trolliet]
|
2019-09-30 21:22:17 +02:00
|
|
|
|
2020-02-12 10:02:24 +01:00
|
|
|
\usepackage[a4paper, landscape]{geometry}
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage{enumerate}
|
|
|
|
\usepackage{numprint}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
|
|
|
|
\usepackage[pdfusetitle]{hyperref}
|
2019-10-27 09:16:39 +01:00
|
|
|
|
2019-11-21 15:43:53 +01:00
|
|
|
\usepackage[dvipsnames,table]{xcolor}
|
|
|
|
|
|
|
|
\definecolor{light-gray}{HTML}{CCCCCC}
|
|
|
|
\newcommand{\pause}{\rowcolor{light-gray}}
|
|
|
|
|
2020-02-12 17:11:38 +01:00
|
|
|
\newcommand{\groupTitle}[1]{
|
|
|
|
\pause
|
|
|
|
&%
|
|
|
|
\multicolumn{6}{l}{#1}
|
|
|
|
}
|
|
|
|
|
2019-09-30 21:22:17 +02:00
|
|
|
\newcommand{\dumblang}[2]{{#1}}
|
2019-10-01 08:28:41 +02:00
|
|
|
|
|
|
|
\DeclareOption{english}{
|
|
|
|
\renewcommand{\dumblang}[2]{#1}
|
|
|
|
}
|
|
|
|
|
|
|
|
\DeclareOption{french}{
|
|
|
|
\renewcommand{\dumblang}[2]{#2}
|
|
|
|
}
|
|
|
|
|
|
|
|
\ExecuteOptions{english}
|
|
|
|
\ProcessOptions\relax
|
|
|
|
|
|
|
|
%Set the actual language, #1 for english and #2 for french
|
2019-09-30 21:22:17 +02:00
|
|
|
\usepackage[\dumblang{english}{french}]{babel}
|
|
|
|
|
2019-09-30 19:04:26 +02:00
|
|
|
\RequirePackage{graphicx}
|
2019-09-30 21:22:17 +02:00
|
|
|
\RequirePackage{booktabs}
|
|
|
|
|
|
|
|
\RequirePackage{array}
|
|
|
|
\RequirePackage{longtable}
|
|
|
|
\RequirePackage{makecell}
|
2019-09-30 19:04:26 +02:00
|
|
|
|
|
|
|
\newcommand*{\logo}[1]{\gdef\@logo{#1}%
|
|
|
|
}
|
|
|
|
\newcommand*{\@logo}{logo.pdf}
|
|
|
|
\newcommand*{\context}[1]{\gdef\@context{#1}%
|
|
|
|
}
|
|
|
|
\newcommand*{\@context}{\texttt{\string\context} currently
|
|
|
|
not set, please fix this.}
|
|
|
|
\title{Workshop plan}
|
|
|
|
\newcommand*{\subject}[1]{\gdef\@subject{#1}%
|
|
|
|
}
|
|
|
|
\newcommand*{\@subject}{Workshop}
|
|
|
|
\newcommand*{\subtopic}[1]{\gdef\@subtopic{#1}%
|
|
|
|
}
|
|
|
|
\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}%
|
|
|
|
}
|
2019-09-30 21:22:17 +02:00
|
|
|
%\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently
|
|
|
|
%not set, please fix this.}
|
2019-09-30 19:04:26 +02:00
|
|
|
|
2019-10-01 08:11:58 +02:00
|
|
|
\newcommand*{\place}[1]{\gdef\@place{#1}%
|
|
|
|
}
|
|
|
|
\newcommand*{\room}[1]{\gdef\@room{#1}%
|
|
|
|
}
|
2019-09-30 22:35:01 +02:00
|
|
|
|
2020-02-12 10:02:24 +01:00
|
|
|
\newcounter{PartCounter}
|
|
|
|
|
|
|
|
\newcommand*{\partCount}{%
|
|
|
|
\stepcounter{PartCounter}%
|
|
|
|
\arabic{PartCounter}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcounter{HourCounter}
|
|
|
|
\newcounter{MinuteCounter}
|
|
|
|
|
|
|
|
\newcommand{\startTime}[2]{%
|
2020-02-13 09:54:25 +01:00
|
|
|
\setcounter{HourCounter}{#1}
|
|
|
|
\setcounter{MinuteCounter}{#2}
|
2020-02-12 10:02:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand*{\printTime}{%
|
|
|
|
\ifnum\value{HourCounter}<10%
|
|
|
|
{}0%
|
|
|
|
\fi%
|
|
|
|
\arabic{HourCounter}h%
|
|
|
|
\ifnum\value{MinuteCounter}<10%
|
|
|
|
{}0%
|
|
|
|
\fi%
|
|
|
|
\arabic{MinuteCounter}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand*{\partDuration}[1]{
|
|
|
|
\printTime{} (#1')%
|
|
|
|
\addtocounter{MinuteCounter}{#1}
|
|
|
|
\ifnum\value{MinuteCounter}>59
|
|
|
|
\stepcounter{HourCounter}
|
|
|
|
\addtocounter{MinuteCounter}{-60}
|
|
|
|
\fi
|
|
|
|
}
|
|
|
|
|
2019-09-30 22:35:01 +02:00
|
|
|
\newcommand*{\messagesTitle}[1]{\gdef\@messagesTitle{\textbf{#1}}%
|
|
|
|
}
|
|
|
|
\newcommand*{\@messagesTitle}{\textbf{Messages}}
|
2019-09-30 19:04:26 +02:00
|
|
|
\newcommand*{\messages}[1]{\gdef\@messages{#1}%
|
|
|
|
}
|
2019-09-30 22:35:01 +02:00
|
|
|
\newcommand*{\@messages}{
|
2019-09-30 19:04:26 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\item Messages 1
|
|
|
|
\item Messages 2
|
|
|
|
\item Messages 3
|
|
|
|
\end{enumerate}}
|
2019-10-01 08:11:58 +02:00
|
|
|
\newcommand*{\objectivesTitle}[1]{\gdef\@objectivesTitle{\textbf{#1}}%
|
2019-09-30 22:35:01 +02:00
|
|
|
}
|
2019-10-01 08:11:58 +02:00
|
|
|
\newcommand*{\@objectivesTitle}{\textbf{\dumblang{Objectives}{Objectifs}}}
|
2019-09-30 19:04:26 +02:00
|
|
|
\newcommand*{\objectives}[1]{\gdef\@objectives{#1}%
|
|
|
|
}
|
2019-09-30 22:35:01 +02:00
|
|
|
\newcommand*{\@objectives}{
|
2019-09-30 19:04:26 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\item Objective 1
|
|
|
|
\item Objective 2
|
|
|
|
\item Objective 3
|
|
|
|
\end{enumerate}}
|
|
|
|
|
|
|
|
\renewcommand*{\maketitle}{%
|
|
|
|
\begin{titlepage}
|
|
|
|
{\raggedleft%
|
|
|
|
\includegraphics[width=2cm]{\@logo}\par
|
|
|
|
}
|
|
|
|
\vspace{-1.25cm}
|
|
|
|
\centering
|
|
|
|
{\scshape\Large\@context\unskip\strut\par}
|
|
|
|
\vspace{1cm}
|
|
|
|
{\huge\bfseries\@title\unskip\strut\par}
|
|
|
|
\vspace{1cm}
|
|
|
|
{\scshape\Large\@subject\unskip\strut\par}
|
|
|
|
\ifx\@subtopic\undefined
|
|
|
|
\else
|
|
|
|
{\itshape\@subtopic\unskip\strut\par}
|
|
|
|
\fi
|
|
|
|
\vspace{1cm}
|
|
|
|
{\Large\itshape\@author\unskip\strut\par}
|
|
|
|
\vspace{1cm}
|
|
|
|
|
|
|
|
\begin{tabular}{p{.5\textwidth}|p{.5\textwidth}}
|
|
|
|
\toprule
|
|
|
|
& \\
|
2019-10-01 08:11:58 +02:00
|
|
|
\@objectivesTitle\unskip\strut\par & \@messagesTitle\unskip\strut\par \\
|
2019-09-30 19:04:26 +02:00
|
|
|
\@objectives\unskip\strut\par & \@messages\unskip\strut\par \\
|
|
|
|
\bottomrule
|
|
|
|
\end{tabular}
|
|
|
|
\vfill
|
|
|
|
|
2019-09-30 21:22:17 +02:00
|
|
|
|
|
|
|
\ifx\@supervisor\undefined
|
|
|
|
\else
|
|
|
|
{
|
|
|
|
\dumblang{supervised by}{supervisé par}\par
|
|
|
|
\@supervisor\unskip\strut\par}
|
|
|
|
\vfill
|
|
|
|
\fi
|
|
|
|
|
2019-10-01 08:11:58 +02:00
|
|
|
{\large \@date}
|
2020-02-13 09:54:25 +01:00
|
|
|
\ifnum\value{HourCounter}=0
|
2019-10-01 08:11:58 +02:00
|
|
|
\else
|
|
|
|
{
|
2020-02-13 09:54:25 +01:00
|
|
|
\large\itshape\printTime\unskip\strut}
|
2019-10-01 08:11:58 +02:00
|
|
|
\fi
|
|
|
|
\ifx\@place\undefined
|
|
|
|
\else
|
|
|
|
{\par
|
|
|
|
\@place\unskip\strut}
|
|
|
|
\ifx\@room\undefined
|
|
|
|
\else
|
|
|
|
{
|
2019-10-01 08:30:51 +02:00
|
|
|
\itshape\@room\unskip\strut}
|
2019-10-01 08:11:58 +02:00
|
|
|
\fi
|
|
|
|
\fi
|
2019-09-30 19:04:26 +02:00
|
|
|
\end{titlepage}
|
|
|
|
}
|
2019-09-30 21:22:17 +02:00
|
|
|
\newcommand{\steptable}[1]
|
|
|
|
{
|
|
|
|
\setlength\LTleft{0pt}
|
|
|
|
\setlength\LTright{0pt}
|
2020-02-12 10:02:24 +01:00
|
|
|
\begin{longtable}{p{0.01\textwidth}p{0.035\textwidth}|p{.09\textwidth}p{.17\textwidth}p{.28\textwidth}p{.17\textwidth}p{.13\textwidth}}
|
|
|
|
\makecell[l]{
|
|
|
|
\textbf{N\ensuremath{^\circ}}
|
|
|
|
} &
|
2019-09-30 21:22:17 +02:00
|
|
|
\makecell[l]{
|
|
|
|
\textbf{\dumblang{Hour}{Heure}} \\
|
2019-11-21 15:25:20 +01:00
|
|
|
(\dumblang{Time}{Durée})
|
2019-09-30 21:22:17 +02:00
|
|
|
} &
|
|
|
|
\makecell[l]{
|
2019-11-21 15:25:20 +01:00
|
|
|
\textbf{\dumblang{Theme}{Thème}} \\
|
2019-09-30 21:22:17 +02:00
|
|
|
(\dumblang{What}{Quoi}?)
|
|
|
|
} &
|
|
|
|
\makecell[l]{
|
2019-11-21 15:25:20 +01:00
|
|
|
\textbf{\dumblang{Learning goals}{Objectifs pédagogiques}} \\
|
|
|
|
{ }
|
2019-09-30 21:22:17 +02:00
|
|
|
} &
|
|
|
|
\makecell[l]{
|
2019-11-21 15:25:20 +01:00
|
|
|
\textbf{\dumblang{Process}{Processus / Modalités}} \\
|
2019-11-21 15:46:37 +01:00
|
|
|
(\dumblang{Instructions, procedure}{Consignes, déroulement})
|
2019-09-30 21:22:17 +02:00
|
|
|
} &
|
|
|
|
\makecell[l]{
|
2019-12-05 10:10:55 +01:00
|
|
|
\textbf{\dumblang{Content}{Contenu}} \\
|
2019-11-21 15:46:37 +01:00
|
|
|
(\dumblang{Elements, references}{Éléments, références})
|
2019-11-21 15:25:20 +01:00
|
|
|
} &
|
|
|
|
\makecell[l]{
|
|
|
|
\textbf{\dumblang{Methods}{Moyens}} \\
|
|
|
|
(\dumblang{With what}{Avec quoi}?)
|
|
|
|
}\\
|
2019-09-30 21:22:17 +02:00
|
|
|
\endhead
|
|
|
|
\toprule
|
|
|
|
#1
|
|
|
|
\end{longtable}
|
|
|
|
}
|
2019-09-30 19:04:26 +02:00
|
|
|
\endinput
|