Add new commands for objectives and messages

Add two new commands, objectivesTitle and messagesTitle for allow user 
to change it and still have it on a separate line.
This commit is contained in:
Gregory Trolliet 2019-09-30 22:35:01 +02:00
parent f3f2d27465
commit 914b7be9cb
3 changed files with 18 additions and 5 deletions

View file

@ -5,10 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [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 ## [0.1.0] - 2019-09-30
### Changed ### Changed
* formationTitle.sty, add new command for the array defining the steps * 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 * formationTitle.sty, add a new command `\dumblang` which allow to switch
between english(#1) and french(#2) between english(#1) and french(#2)
* plan.tex, now use `\steptable` * plan.tex, now use `\steptable`

View file

@ -31,17 +31,24 @@ not set, please fix this.}
%\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently %\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently
%not set, please fix this.} %not set, please fix this.}
\newcommand*{\messagesTitle}[1]{\gdef\@messagesTitle{\textbf{#1}}%
}
\newcommand*{\@messagesTitle}{\textbf{Messages}}
\newcommand*{\messages}[1]{\gdef\@messages{#1}% \newcommand*{\messages}[1]{\gdef\@messages{#1}%
} }
\newcommand*{\@messages}{\textbf{Messages list} \newcommand*{\@messages}{
\begin{enumerate} \begin{enumerate}
\item Messages 1 \item Messages 1
\item Messages 2 \item Messages 2
\item Messages 3 \item Messages 3
\end{enumerate}} \end{enumerate}}
\newcommand*{\objectivesTitles}[1]{\gdef\@objectivesTitles{\textbf{#1}}%
}
\newcommand*{\@objectivesTitles}{\textbf{\dumblang{Objectives}{Objectifs}}}
\newcommand*{\objectives}[1]{\gdef\@objectives{#1}% \newcommand*{\objectives}[1]{\gdef\@objectives{#1}%
} }
\newcommand*{\@objectives}{\textbf{Objectives list} \newcommand*{\@objectives}{
\begin{enumerate} \begin{enumerate}
\item Objective 1 \item Objective 1
\item Objective 2 \item Objective 2
@ -71,6 +78,7 @@ not set, please fix this.}
\begin{tabular}{p{.5\textwidth}|p{.5\textwidth}} \begin{tabular}{p{.5\textwidth}|p{.5\textwidth}}
\toprule \toprule
& \\ & \\
\@objectivesTitles\unskip\strut\par & \@messagesTitle\unskip\strut\par \\
\@objectives\unskip\strut\par & \@messages\unskip\strut\par \\ \@objectives\unskip\strut\par & \@messages\unskip\strut\par \\
\bottomrule \bottomrule
\end{tabular} \end{tabular}

View file

@ -16,13 +16,13 @@
\author{Gregory Trolliet} \author{Gregory Trolliet}
\supervisor{Jean Dupont} \supervisor{Jean Dupont}
\logo{logo.pdf} \logo{logo.pdf}
\objectives{\textbf{Objectives} \objectives{
\begin{itemize} \begin{itemize}
\item[] Objective n$^{\circ}$1 \item[] Objective n$^{\circ}$1
\item[] Objective n$^{\circ}$2 \item[] Objective n$^{\circ}$2
\end{itemize} \end{itemize}
} }
\messages{\textbf{Messages} \messages{
\begin{itemize} \begin{itemize}
\item[] Message n$^{\circ}$1 \item[] Message n$^{\circ}$1
\item[] Message n$^{\circ}$2 \item[] Message n$^{\circ}$2