From fde256187c6b9758cbefafa48b56bf6088b37215 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 1 Oct 2019 08:11:58 +0200 Subject: [PATCH] Add a better location information --- CHANGELOG.md | 12 ++++++++++++ formationTitle.sty | 29 +++++++++++++++++++++++++---- plan.tex | 4 ++++ 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e01c468..519b5c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [0.3.0] - 2019-10-01 +### Added + * formationTitle.sty, add new commands used to specify the location of + the formation + * `\hour` define the hour of the formation + * `\place` and `\room` define the place and the room + +### Changed + * Changed the display of the title page to add the use of the new commands + * If the place isn't defined, the room won't be displayed + ## [0.2.0] - 2019-09-30 +### Added * 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 diff --git a/formationTitle.sty b/formationTitle.sty index 0390422..13d262a 100644 --- a/formationTitle.sty +++ b/formationTitle.sty @@ -31,6 +31,12 @@ not set, please fix this.} %\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently %not set, please fix this.} +\newcommand*{\hour}[1]{\gdef\@hour{#1}% +} +\newcommand*{\place}[1]{\gdef\@place{#1}% +} +\newcommand*{\room}[1]{\gdef\@room{#1}% +} \newcommand*{\messagesTitle}[1]{\gdef\@messagesTitle{\textbf{#1}}% } @@ -43,9 +49,9 @@ not set, please fix this.} \item Messages 2 \item Messages 3 \end{enumerate}} -\newcommand*{\objectivesTitles}[1]{\gdef\@objectivesTitles{\textbf{#1}}% +\newcommand*{\objectivesTitle}[1]{\gdef\@objectivesTitle{\textbf{#1}}% } -\newcommand*{\@objectivesTitles}{\textbf{\dumblang{Objectives}{Objectifs}}} +\newcommand*{\@objectivesTitle}{\textbf{\dumblang{Objectives}{Objectifs}}} \newcommand*{\objectives}[1]{\gdef\@objectives{#1}% } \newcommand*{\@objectives}{ @@ -78,7 +84,7 @@ not set, please fix this.} \begin{tabular}{p{.5\textwidth}|p{.5\textwidth}} \toprule & \\ -\@objectivesTitles\unskip\strut\par & \@messagesTitle\unskip\strut\par \\ +\@objectivesTitle\unskip\strut\par & \@messagesTitle\unskip\strut\par \\ \@objectives\unskip\strut\par & \@messages\unskip\strut\par \\ \bottomrule \end{tabular} @@ -93,7 +99,22 @@ not set, please fix this.} \vfill \fi -{\large \@date\par} +{\large \@date} +\ifx\@hour\undefined +\else +{ +\large\itshape\@hour\unskip\strut} +\fi +\ifx\@place\undefined +\else +{\par +\@place\unskip\strut} +\ifx\@room\undefined +\else +{ +\@room\unskip\strut} +\fi +\fi \end{titlepage} } \newcommand{\steptable}[1] diff --git a/plan.tex b/plan.tex index aa7d056..86b1e61 100644 --- a/plan.tex +++ b/plan.tex @@ -16,6 +16,10 @@ \author{Gregory Trolliet} \supervisor{Jean Dupont} \logo{logo.pdf} +\hour{10h00} +\place{École-club Migros, Pont-Rouge} +\room{salle 514} + \objectives{ \begin{itemize} \item[] Objective n$^{\circ}$1