Compare commits
4 commits
498e916bb7
...
c4c31d9283
Author | SHA1 | Date | |
---|---|---|---|
Théophile Bastian | c4c31d9283 | ||
Théophile Bastian | 04fbb886f1 | ||
Théophile Bastian | 5bf8a45d91 | ||
Théophile Bastian | d63d51c457 |
|
@ -13,20 +13,20 @@
|
|||
\RequirePackage[framemethod=tikz]{mdframed}
|
||||
\RequirePackage{marginnote}
|
||||
|
||||
% Hacks divers
|
||||
\catcode`\·=13 \def\cdottext{\ensuremath\cdot} \let·\cdottext
|
||||
%%%%%%%%%% Hacks divers %%%%%%%%%%%%%%%%%%%%
|
||||
%\catcode`\·=13 \def\cdottext{\ensuremath\cdot} \let·\cdottext
|
||||
|
||||
% Version choristes
|
||||
%%%%%%%%%% Version choristes %%%%%%%%%%%%%%%%%%%%
|
||||
\newif\ifchoristes
|
||||
%\choristesfalse
|
||||
\newcommand{\versionchoristes}{\choristestrue}
|
||||
\newcommand{\onlyCA}[1]{\ifchoristes\else#1\fi}
|
||||
|
||||
% Listes
|
||||
%%%%%%%%%% Listes %%%%%%%%%%%%%%%%%%%%
|
||||
\setlist[itemize]{label=\textbullet}
|
||||
\setlist[itemize,2]{label=$\circ$}
|
||||
|
||||
% Title
|
||||
%%%%%%%%%% Title %%%%%%%%%%%%%%%%%%%%
|
||||
\def\@subtitle{\vspace{-0.8em}}
|
||||
\newcommand*{\subtitle}[1]{\def\@subtitle{#1}}
|
||||
\renewcommand{\maketitle}{
|
||||
|
@ -40,7 +40,7 @@
|
|||
|
||||
}
|
||||
|
||||
% Header
|
||||
%%%%%%%%%% Header %%%%%%%%%%%%%%%%%%%%
|
||||
\newcommand*{\presents}[1]{\def\@presents{#1}}
|
||||
\newcommand*{\excuses}[1]{\def\@excuses{#1}}
|
||||
\newcommand*{\invites}[1]{\def\@invites{#1}}
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
\newcommand{\makeheader}{
|
||||
\maketitle
|
||||
\def\arraystretchbck{\arraystretch}
|
||||
\let\arraystretchbck\arraystretch
|
||||
\renewcommand{\arraystretch}{1.3}
|
||||
|
||||
\noindent\begin{minipage}[t]{0.50\textwidth}
|
||||
|
@ -69,13 +69,13 @@
|
|||
\faicon{clock-o} & \@horaires \\
|
||||
\end{tabular}
|
||||
\end{minipage}
|
||||
\renewcommand{\arraystretch}{\arraystretchbck}
|
||||
\let\arraystretch\arraystretchbck
|
||||
|
||||
\vspace{2em}
|
||||
}
|
||||
|
||||
|
||||
% Tasks
|
||||
%%%%%%%%%% Tasks %%%%%%%%%%%%%%%%%%%%
|
||||
\definecolor{taskbarcolor}{RGB}{172,70,255}
|
||||
\definecolor{tasktextcolor}{RGB}{90,36,132}
|
||||
\newmdenv[
|
||||
|
@ -91,20 +91,10 @@
|
|||
\newenvironment{task}[1][À définir]{
|
||||
|
||||
\ifchoristes\else%
|
||||
\marginnote{~\\\vspace{-10pt}\raggedright{}\color{tasktextcolor}#1}
|
||||
\begin{taskbar}%
|
||||
\marginnote{\raggedright{}\color{tasktextcolor}#1}
|
||||
\fi
|
||||
}
|
||||
{
|
||||
\ifchoristes\else\end{taskbar}\fi
|
||||
}
|
||||
|
||||
% Patch the task environment with indentation
|
||||
% Thanks https://tex.stackexchange.com/a/207364
|
||||
\makeatletter
|
||||
\newcommand{\indentforlinedintro}{%
|
||||
\patchcmd\mdf@lrbox{\parindent\z@}{\parindent\normalparindent\relax}{}{}%
|
||||
\patchcmd\mdf@trivlist{\itemindent\z@}{\itemindent\normalparindent}{}{}%
|
||||
}
|
||||
\patchcmd{\task}{\begin}{\indentforlinedintro\begin}{}{}
|
||||
\makeatother
|
||||
|
|
Loading…
Reference in a new issue