From ec6815b2d89c4afd23cc4b34c1dd4635845565f0 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Mon, 30 Sep 2019 19:04:26 +0200 Subject: [PATCH] Make the base title page The title page is defined by multiples variables. The plan.tex file is an example of usage of this project. --- formationTitle.sty | 76 +++++++++++++++++++++++++++++++++++++++++++++ logo.pdf | Bin 0 -> 1461 bytes plan.tex | 47 ++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 formationTitle.sty create mode 100644 logo.pdf create mode 100644 plan.tex diff --git a/formationTitle.sty b/formationTitle.sty new file mode 100644 index 0000000..86df7f4 --- /dev/null +++ b/formationTitle.sty @@ -0,0 +1,76 @@ +% Copyright note: This package define a formation title +\ProvidesPackage{formationTitle}[2019/09/30 v.01 a formation title +Gregory Trolliet] +\RequirePackage{graphicx} +\usepackage{booktabs} + +\newcommand*{\logo}[1]{\gdef\@logo{#1}% +} +\newcommand*{\@logo}{logo.pdf} +\newcommand*{\context}[1]{\gdef\@context{#1}% +} +\newcommand*{\@context}{\texttt{\string\context} currently +not set, please fix this.} +\title{Workshop plan} +\newcommand*{\subject}[1]{\gdef\@subject{#1}% +} +\newcommand*{\@subject}{Workshop} +\newcommand*{\subtopic}[1]{\gdef\@subtopic{#1}% +} +\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}% +} +\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently +not set, please fix this.} + +\newcommand*{\messages}[1]{\gdef\@messages{#1}% +} +\newcommand*{\@messages}{\textbf{Messages list} +\begin{enumerate} +\item Messages 1 +\item Messages 2 +\item Messages 3 +\end{enumerate}} +\newcommand*{\objectives}[1]{\gdef\@objectives{#1}% +} +\newcommand*{\@objectives}{\textbf{Objectives list} +\begin{enumerate} +\item Objective 1 +\item Objective 2 +\item Objective 3 +\end{enumerate}} + +\renewcommand*{\maketitle}{% +\begin{titlepage} +{\raggedleft% + \includegraphics[width=2cm]{\@logo}\par +} +\vspace{-1.25cm} +\centering +{\scshape\Large\@context\unskip\strut\par} +\vspace{1cm} +{\huge\bfseries\@title\unskip\strut\par} +\vspace{1cm} +{\scshape\Large\@subject\unskip\strut\par} +\ifx\@subtopic\undefined +\else +{\itshape\@subtopic\unskip\strut\par} +\fi +\vspace{1cm} +{\Large\itshape\@author\unskip\strut\par} +\vspace{1cm} +%\vfill +%supervised by\par +%\@supervisor\unskip\strut\par + +\begin{tabular}{p{.5\textwidth}|p{.5\textwidth}} +\toprule +& \\ +\@objectives\unskip\strut\par & \@messages\unskip\strut\par \\ +\bottomrule +\end{tabular} +\vfill + +{\large \@date\par} +\end{titlepage} +} +\endinput diff --git a/logo.pdf b/logo.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2fbb5b67fdd60fbe888d824bb088b076baf7854e GIT binary patch literal 1461 zcmY!laBlN;il7i!2eH(m55gW5mUb4C$NRY9j4_!|Ct z%RImL#4$Sb)l}i*cJjXqbAS9k^dtS%*Nv9eHkZmWONDaIluIxTO(tsxn8(#N^eweUIHmrA=np8Mnnt-pT9)gywn>*chzw;NK?RD9Ia**wuL(kc&9-U1-KKq$oLH7phDb{r| zJk}4}PB<#<@(khZT6gkS+Rpd-f~V^KoojLb%NXC2_T1{gO!XSU;#s?rCEe^6xwYSW zVXkN5d-Bk8DpbJ!-YJ~yMd{laPW&Uw}CIS=D*N}aqQEB=7zm2v!=DR0gg z`Ln+5ZTosT>3F~Np_3Zyi>j7=Qe4RO_ISjq#*`Dr%BmCUy6#C$t>3kwtmw=yJ4q*F zzEjp#I_oMf@3}v1@yGvSHLp&23+~C9)17o>PH}V9gtK*ib%(-Dj8?QZUSLeL4)(sk z{DA8ZyO|a|E*tDOs|q$+b*%cNx~6AaQ0OtH{a2!XH%}5f{mE_GuZORNx3cL=XnFBY zlE|8!TzgAl?woC}Rn~B188S|F7=2ugn-8kho2EsQ|&Af7Qip@Ng9Yek8Ba0xJ3D%jY7 z1b{$4(E!L%(06uJFjUY_P6U#`#0r!El0XDC#|UnYf__M4L8^j&Kw^5T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