Implement basic header
This commit is contained in:
parent
cc0528e7b1
commit
bc4f3dfb0c
1 changed files with 64 additions and 0 deletions
64
RainbowCR.cls
Normal file
64
RainbowCR.cls
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
|
\ProvidesClass{RainbowCR}[Compte rendu de CR des Rainbow Swingers]
|
||||||
|
|
||||||
|
\LoadClass[a4paper]{article}
|
||||||
|
\RequirePackage[margin=2cm,right=4.5cm]{geometry}
|
||||||
|
\RequirePackage{fontawesome}
|
||||||
|
\RequirePackage{amsmath}
|
||||||
|
\RequirePackage{amsfonts}
|
||||||
|
\RequirePackage{amssymb}
|
||||||
|
\RequirePackage[french]{babel}
|
||||||
|
\RequirePackage[shortlabels]{enumitem}
|
||||||
|
\RequirePackage{array}
|
||||||
|
|
||||||
|
% Listes
|
||||||
|
\setlist[itemize]{label=\textbullet}
|
||||||
|
\setlist[itemize,2]{label=$\circ$}
|
||||||
|
|
||||||
|
% Title
|
||||||
|
\def\@subtitle{\vspace{-0.8em}}
|
||||||
|
\newcommand*{\subtitle}[1]{\def\@subtitle{#1}}
|
||||||
|
\renewcommand{\maketitle}{
|
||||||
|
~\vspace{1cm}
|
||||||
|
\noindent\begin{center}
|
||||||
|
{\LARGE Compte-rendu de CA~--~Rainbow Swingers (EVUG)}\\
|
||||||
|
\vspace{0.4em}
|
||||||
|
{\Large \@subtitle~}\\
|
||||||
|
\end{center}
|
||||||
|
\vspace{2em}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
% Header
|
||||||
|
\newcommand*{\presents}[1]{\def\@presents{#1}}
|
||||||
|
\newcommand*{\excuses}[1]{\def\@excuses{#1}}
|
||||||
|
\newcommand*{\invites}[1]{\def\@invites{#1}}
|
||||||
|
\newcommand*{\lieu}[1]{\def\@lieu{#1}}
|
||||||
|
\newcommand*{\horaires}[1]{\def\@horaires{#1}}
|
||||||
|
|
||||||
|
\newcommand{\MakeHeader}{
|
||||||
|
\maketitle
|
||||||
|
\def\arraystretchbck{\arraystretch}
|
||||||
|
\renewcommand{\arraystretch}{1.3}
|
||||||
|
|
||||||
|
\noindent\begin{minipage}[t]{0.50\textwidth}
|
||||||
|
\vspace{0px}
|
||||||
|
\begin{tabular}{p{0.25\textwidth} >{\raggedright\arraybackslash}p{0.75\textwidth}}
|
||||||
|
\textbf{Présents} & \@presents \\
|
||||||
|
\textbf{Excusés} & \@excuses \\
|
||||||
|
\textbf{Invités} & \@invites
|
||||||
|
\end{tabular}
|
||||||
|
\end{minipage}
|
||||||
|
\hfill\hfill\vline\hfill
|
||||||
|
\begin{minipage}[t]{0.40\textwidth}
|
||||||
|
\vspace{0px}
|
||||||
|
\begin{tabular}{>{\centering\arraybackslash}p{1em} p{0.9\textwidth}}
|
||||||
|
\faicon{calendar} & \@date \\
|
||||||
|
\faHome & \@lieu \\
|
||||||
|
\faicon{clock-o} & \@horaires \\
|
||||||
|
\end{tabular}
|
||||||
|
\end{minipage}
|
||||||
|
\renewcommand{\arraystretch}{\arraystretchbck}
|
||||||
|
|
||||||
|
\vspace{2em}
|
||||||
|
}
|
Loading…
Reference in a new issue