diff --git a/CHANGELOG.md b/CHANGELOG.md index accf326..e01c468 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [0.2.0] - 2019-09-30 + * formationTitle.sty, add two new commands, `\objectivesTitle` + and `\messagesTitles`, which allow to set the titles of the first page + and keep it on a separate line + ## [0.1.0] - 2019-09-30 ### Changed * formationTitle.sty, add new command for the array defining the steps - of the formation, `\steptable`. + of the formation, `\steptable` * formationTitle.sty, add a new command `\dumblang` which allow to switch between english(#1) and french(#2) * plan.tex, now use `\steptable` diff --git a/formationTitle.sty b/formationTitle.sty index d713c05..0390422 100644 --- a/formationTitle.sty +++ b/formationTitle.sty @@ -31,17 +31,24 @@ not set, please fix this.} %\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}{\textbf{Messages list} +\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}{\textbf{Objectives list} +\newcommand*{\@objectives}{ \begin{enumerate} \item Objective 1 \item Objective 2 @@ -71,6 +78,7 @@ not set, please fix this.} \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} diff --git a/plan.tex b/plan.tex index a745637..aa7d056 100644 --- a/plan.tex +++ b/plan.tex @@ -16,13 +16,13 @@ \author{Gregory Trolliet} \supervisor{Jean Dupont} \logo{logo.pdf} -\objectives{\textbf{Objectives} +\objectives{ \begin{itemize} \item[] Objective n$^{\circ}$1 \item[] Objective n$^{\circ}$2 \end{itemize} } -\messages{\textbf{Messages} +\messages{ \begin{itemize} \item[] Message n$^{\circ}$1 \item[] Message n$^{\circ}$2