-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agenda: create commmand to refactor agendas
This commits adds commands to refactro the agendas. It adds respectively commands to : - Define and show a specific section (lecture or lab) - Define and show a supported board - Show a specified part of a specified day Signed-off-by: Thomas Bonnefille <[email protected]>
- Loading branch information
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
\newcommand\defagendaitem[6]{ | ||
\ifthenelse{\equal{\agendalanguage}{french}}{ | ||
\expandafter\def\csname #1@#2@title\endcsname {#5} | ||
\expandafter\def\csname #1@#2@contents\endcsname {#6} | ||
}{ | ||
\expandafter\def\csname #1@#2@title\endcsname {#3} | ||
\expandafter\def\csname #1@#2@contents\endcsname {#4} | ||
} | ||
} | ||
|
||
\newcommand\showagendaitem[2]{ | ||
\feagendaonecolumn{ | ||
\ifthenelse{\equal{\agendalanguage}{french}}{ | ||
\ifthenelse{\equal{#2}{lecture}} | ||
{Cours -} | ||
{ | ||
\ifthenelse{\equal{#2}{lab}}{ | ||
\ifthenelse{\equal{\trainingtype}{online}}{Démo -}{TP -} | ||
} | ||
{} | ||
} | ||
}{ | ||
\ifthenelse{\equal{#2}{lecture}} | ||
{Lecture -} | ||
{ | ||
\ifthenelse{\equal{#2}{lab}}{ | ||
\ifthenelse{\equal{\trainingtype}{online}}{Demo -}{Lab -} | ||
} | ||
{} | ||
} | ||
} | ||
\csname #1@#2@title\endcsname | ||
}{ | ||
\csname #1@#2@contents\endcsname | ||
} | ||
} | ||
|
||
\newcommand\defboard[6]{ | ||
\ifthenelse{\equal{\agendalanguage}{french}}{ | ||
\expandafter\def\csname #1@title\endcsname {#4} | ||
\expandafter\def\csname #1@contents\endcsname {#5} | ||
}{ | ||
\expandafter\def\csname #1@title\endcsname {#2} | ||
\expandafter\def\csname #1@contents\endcsname {#3} | ||
} | ||
\expandafter\def\csname #1@image\endcsname {#6} | ||
} | ||
|
||
\newcommand\showboarditem[1]{ | ||
\feagendatwocolumn{ | ||
\csname #1@title\endcsname | ||
}{ | ||
\csname #1@contents\endcsname | ||
} | ||
{} | ||
{ | ||
\csname #1@image\endcsname | ||
} | ||
} | ||
|
||
|
||
\newcommand\showonlineagendaday[1]{ | ||
\ifthenelse{\equal{\agendalanguage}{french}}{ | ||
\section{#1 demi-journée} | ||
}{ | ||
\section{Half day #1} | ||
} | ||
} | ||
|
||
\newcommand\showonsiteagendaday[2]{ | ||
\ifthenelse{\equal{\agendalanguage}{french}}{ | ||
\ifthenelse{\equal{#2}{morning}}{ | ||
\section{Jour #1 - Matin} | ||
}{ | ||
\section{Jour #1 - Après-midi} | ||
} | ||
}{ | ||
\ifthenelse{\equal{#2}{morning}}{ | ||
\section{Day #1 - Morning} | ||
}{ | ||
\section{Day #1 - Afternoon} | ||
} | ||
} | ||
} |