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:
parent
f3f2d27465
commit
914b7be9cb
3 changed files with 18 additions and 5 deletions
|
@ -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`
|
||||
|
|
|
@ -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}
|
||||
|
|
4
plan.tex
4
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
|
||||
|
|
Loading…
Reference in a new issue