PlanFormation/formationTitle.sty

131 lines
3.0 KiB
Plaintext
Raw Normal View History

% Copyright note: This package define a formation title
\ProvidesPackage{formationTitle}[2019/09/30 v.01 a formation title
Gregory Trolliet]
2019-09-30 21:22:17 +02:00
%Set the actual language, #1 for english and #2 for french
\newcommand{\dumblang}[2]{{#1}}
\usepackage[\dumblang{english}{french}]{babel}
\RequirePackage{graphicx}
2019-09-30 21:22:17 +02:00
\RequirePackage{booktabs}
\RequirePackage{array}
\RequirePackage{longtable}
\RequirePackage{makecell}
\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.}
\newcommand*{\messagesTitle}[1]{\gdef\@messagesTitle{\textbf{#1}}%
}
\newcommand*{\@messagesTitle}{\textbf{Messages}}
\newcommand*{\messages}[1]{\gdef\@messages{#1}%
}
\newcommand*{\@messages}{
\begin{enumerate}
\item Messages 1
\item Messages 2
\item Messages 3
\end{enumerate}}
\newcommand*{\objectivesTitles}[1]{\gdef\@objectivesTitles{\textbf{#1}}%
}
\newcommand*{\@objectivesTitles}{\textbf{\dumblang{Objectives}{Objectifs}}}
\newcommand*{\objectives}[1]{\gdef\@objectives{#1}%
}
\newcommand*{\@objectives}{
\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
& \\
\@objectivesTitles\unskip\strut\par & \@messagesTitle\unskip\strut\par \\
\@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
{\large \@date\par}
\end{titlepage}
}
2019-09-30 21:22:17 +02:00
\newcommand{\steptable}[1]
{
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\begin{longtable}{@{\extracolsep{\fill}}p{.6cm}p{4cm}p{4cm}p{4cm}p{4cm}}
\makecell[l]{
\textbf{\dumblang{Hour}{Heure}} \\
(\dumblang{Time}{Temps})
} &
\makecell[l]{
\textbf{\dumblang{Theme, content}{Thème, contenu}} \\
(\dumblang{What}{Quoi}?)
} &
\makecell[l]{
\textbf{\dumblang{Style, method}{Forme, méthode}} \\
(\dumblang{How}{Comment}?)
} &
\makecell[l]{
\textbf{\dumblang{Teaching methods}{Moyens didactiques}} \\
(\dumblang{With what}{Avec quoi}?)
} &
\makecell[l]{
\textbf{\dumblang{Method of assessing}{Méthode d'évaluation}} \\
\textbf{\dumblang{learning outcomes}{des acquis}} \\
(\dumblang{How}{Comment}?)
} \\
\endhead
\toprule
#1
\end{longtable}
}
\endinput