Add a better location information

This commit is contained in:
Gregory Trolliet 2019-10-01 08:11:58 +02:00
parent 914b7be9cb
commit fde256187c
3 changed files with 41 additions and 4 deletions

View file

@ -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

View file

@ -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]

View file

@ -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