diff --git a/inst/templates/inrae_photo/_fairify.yml b/inst/templates/inrae_photo/_fairify.yml new file mode 100644 index 0000000000000000000000000000000000000000..8482bbe052150b080502ffe09d9e01ec4995a863 --- /dev/null +++ b/inst/templates/inrae_photo/_fairify.yml @@ -0,0 +1 @@ +template: fairify:inrae diff --git a/inst/templates/inrae_photo/after_body.tex b/inst/templates/inrae_photo/after_body.tex new file mode 100644 index 0000000000000000000000000000000000000000..b697b2ab097476f86cca92cda8ec2134547a4534 --- /dev/null +++ b/inst/templates/inrae_photo/after_body.tex @@ -0,0 +1 @@ +\input{templates/inrae/after_body} diff --git a/inst/templates/inrae_photo/before_body.tex b/inst/templates/inrae_photo/before_body.tex new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/inst/templates/inrae_photo/cover.tex b/inst/templates/inrae_photo/cover.tex new file mode 100644 index 0000000000000000000000000000000000000000..48597c325c883755978ca0ad5829578f7cb1a751 --- /dev/null +++ b/inst/templates/inrae_photo/cover.tex @@ -0,0 +1,43 @@ + +\thispagestyle{empty} + +\tikzset{develop clipping path=false} +\clippicture{[width=\paperwidth]{templates/inrae_photo/photo_cover.jpg}}{(0,0) -- (0.618,0) -- (0.618,-0.667) -- (0,-0.75)} + +\vspace{-1cm}% +\hfill% +\begin{minipage}[t][6cm][t]{0.20\textwidth} + \begin{center} + \input{templates/inrae/logos} + \end{center} +\end{minipage} + +\begin{minipage}[t][8cm][c]{\textwidth} + \begin{center} + \insertcoverimage + \end{center} +\end{minipage}% + +\vspace{1cm} + +\includegraphics{templates/inrae/chevron.png}\\ + +\vspace{-3mm} + +\hspace{3mm} +\begin{minipage}{0.75\textwidth} + \color{inraeDarker} + \LARGE + %\noindent \textbf{Accedat suavitas quaedam oportet sermonum atque mediocre}\\ + \noindent \textbf{\thetitle}\\ + + \vspace{-4mm} + + \color{inrae} + \small + %\noindent \textbf{Dubitatio veteribus est amicitiae non esse novi veteribus verumque} + % \noindent \textbf{\sousTitre}\\ + + \MakeUppercase{\thedate}\\ + \textbf{\MakeUppercase{\theauthor}} +\end{minipage} diff --git a/inst/templates/inrae_photo/in_header.tex b/inst/templates/inrae_photo/in_header.tex new file mode 100644 index 0000000000000000000000000000000000000000..dd4a8aa941bfea201cc7a097146331c9af5117a2 --- /dev/null +++ b/inst/templates/inrae_photo/in_header.tex @@ -0,0 +1,73 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% BEGIN PREAMBLE.TEX +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\usepackage[french]{babel} + +\newcommand{\insertsecondlogo}{} +\newcommand{\insertthirdlogo}{} +\newcommand{\insertfourthlogo}{} +\newcommand{\insertcoverimage}{} + +% Première de couverture +\usepackage{tikz} +\usepackage{titling} + +% Clip image from tikz path https://tex.stackexchange.com/a/19940 +\usepackage{graphicx} + +\newif\ifdeveloppath + \tikzset{/tikz/develop clipping path/.is if=developpath, + /tikz/develop clipping path=true} + +\newcommand{\clippicture}[2]{ + \begin{tikzpicture} + % Include the image to determine the size and set up the relative coordinate system. Enclose the \includegraphics in \phantom{} once the clipping path has been set up + \ifdeveloppath + \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics#1}; + \else + \node[anchor=south west,inner sep=0] (image) at (0,0) {\phantom{\includegraphics#1}}; + \fi + \pgfresetboundingbox + \begin{scope}[x={(image.south east)},y={(image.north west)}] + % Draw grid while developing clipping path + \ifdeveloppath + \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1); + \foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; } + \foreach \y in {0,1,...,9} { \node [anchor=east] at (0,\y/10) {0.\y}; } + \draw[red, ultra thick] #2 -- cycle; + \else + % Use the path to clip, include the image + \path[clip] #2 -- cycle; + \node[anchor=south west,inner sep=0pt] {\includegraphics#1}; + \fi + \end{scope} + \end{tikzpicture} +} + +\makeatletter +\def\maketitle{% +\input{templates/inrae_photo/cover.tex} +} +\makeatother + +\newcommand{\service}{UMR G-EAU} +\newcommand{\site}{ + UMR G-EAU + + Inrae, Montpellier +} +% Adresse du site +\newcommand{\adresse}{361 rue J-F Breton - BP 5095\\34196 Montpellier cedex 5} +% Téléphone et télécopie +\newcommand{\telephone}{tél. : +33(0)4670400} +\newcommand{\website}{\url{www.g-eau.fr} \\ +\url{www.inrae.fr} +} + +\input{templates/basic/in_header} +\input{templates/inrae/preamble.tex} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% END PREAMBLE.TEX +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/inst/templates/inrae_photo/logo_umr_geau.png b/inst/templates/inrae_photo/logo_umr_geau.png new file mode 100644 index 0000000000000000000000000000000000000000..6f70700bc70997684db7ef17f28ed61f4bf0f50f Binary files /dev/null and b/inst/templates/inrae_photo/logo_umr_geau.png differ diff --git a/inst/templates/inrae_photo/photo_cover.jpg b/inst/templates/inrae_photo/photo_cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4d08b65c20a2f606afcf10b609101a73c0e7270e Binary files /dev/null and b/inst/templates/inrae_photo/photo_cover.jpg differ diff --git a/inst/templates/inrae_photo/setup.R b/inst/templates/inrae_photo/setup.R new file mode 100644 index 0000000000000000000000000000000000000000..60faabf24c4dce6d6f948ff8d7b7234a7624e6df --- /dev/null +++ b/inst/templates/inrae_photo/setup.R @@ -0,0 +1 @@ +fairify::source_template_setup("fairify:inrae")