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.
This commit is contained in:
parent
d7312ab613
commit
ec6815b2d8
3 changed files with 123 additions and 0 deletions
76
formationTitle.sty
Normal file
76
formationTitle.sty
Normal file
|
@ -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
|
BIN
logo.pdf
Normal file
BIN
logo.pdf
Normal file
Binary file not shown.
47
plan.tex
Normal file
47
plan.tex
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
\documentclass{article}
|
||||||
|
|
||||||
|
\usepackage[a4paper, landscape]{geometry}
|
||||||
|
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage[french]{babel}
|
||||||
|
\usepackage{enumerate}
|
||||||
|
\usepackage{numprint}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
|
||||||
|
\usepackage{formationTitle}
|
||||||
|
|
||||||
|
\newenvironment{boxed}
|
||||||
|
{
|
||||||
|
\begin{center}
|
||||||
|
\begin{tabular}{|p{.95\textwidth}|}
|
||||||
|
\hline\\
|
||||||
|
}
|
||||||
|
{
|
||||||
|
\\\\\hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{center}
|
||||||
|
}
|
||||||
|
|
||||||
|
\context{Super society}
|
||||||
|
\title{Formation plan}
|
||||||
|
\subject{My wonderful formation}
|
||||||
|
\author{Gregory Trolliet}
|
||||||
|
\logo{logo.pdf}
|
||||||
|
\objectives{\textbf{Objectives}
|
||||||
|
\begin{itemize}
|
||||||
|
\item[] Objective n$^{\circ}$1
|
||||||
|
\item[] Objective n$^{\circ}$2
|
||||||
|
\end{itemize}
|
||||||
|
}
|
||||||
|
\messages{\textbf{Messages}
|
||||||
|
\begin{itemize}
|
||||||
|
\item[] Message n$^{\circ}$1
|
||||||
|
\item[] Message n$^{\circ}$2
|
||||||
|
\end{itemize}
|
||||||
|
}
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
\end{document}
|
Loading…
Reference in a new issue