From 329bf9bd55db710b179f4c349fae141dce1bafa2 Mon Sep 17 00:00:00 2001 From: Karamaz0V1 Date: Thu, 1 Oct 2020 17:18:52 +0200 Subject: [PATCH 1/2] Improve logo location and aspect on front page --- defs.tex | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/defs.tex b/defs.tex index f1080c0..367d813 100644 --- a/defs.tex +++ b/defs.tex @@ -143,18 +143,25 @@ %% check if path to logo has been set, adapted from %% https://tex.stackexchange.com/questions/53068/how-to-check-if-a-macro-value-is-empty-or-will-not-create-text-with-plain-tex-co {\if\relax\@logoecoledoc\relax - %% if empty, do nothing + %% if empty, do nothing \else - %% if not empty, include logo - \node[xshift=.1\paperwidth,yshift=0cm] { - \includegraphics[width=5cm]{\@logoecoledoc} - }; + %% if not empty, include logo + \node[anchor=north west, yshift=-1cm, xshift=1cm] at (current page.north west) { + \includegraphics[width=5cm,height=2.5cm,keepaspectratio]{\@logoecoledoc} + }; \fi } - \node[xshift=.6\paperwidth,yshift=0cm] { - \includegraphics[width=5cm]{\@logoetablissement} - }; + {\if\relax\@logoetablissement\relax + %% if empty, do nothing + \else + %% if not empty, include logo + \node[anchor=north east, yshift=-1cm, xshift=-1cm] at (current page.north east){ + \includegraphics[width=5cm,height=2.5cm,keepaspectratio]{\@logoetablissement} + }; + \fi + } + \end{tikzpicture} \par\nobreak } From f179dee49f393d4cd0d3f8c55872dd9ffe135cb3 Mon Sep 17 00:00:00 2001 From: Karamaz0V1 Date: Thu, 1 Oct 2020 17:48:28 +0200 Subject: [PATCH 2/2] Change the margin from 1cm to 1.5 cm --- defs.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defs.tex b/defs.tex index 367d813..16285fb 100644 --- a/defs.tex +++ b/defs.tex @@ -146,7 +146,7 @@ %% if empty, do nothing \else %% if not empty, include logo - \node[anchor=north west, yshift=-1cm, xshift=1cm] at (current page.north west) { + \node[anchor=north west, yshift=-1.5cm, xshift=1.5cm] at (current page.north west) { \includegraphics[width=5cm,height=2.5cm,keepaspectratio]{\@logoecoledoc} }; \fi @@ -156,7 +156,7 @@ %% if empty, do nothing \else %% if not empty, include logo - \node[anchor=north east, yshift=-1cm, xshift=-1cm] at (current page.north east){ + \node[anchor=north east, yshift=-1.5cm, xshift=-1.5cm] at (current page.north east){ \includegraphics[width=5cm,height=2.5cm,keepaspectratio]{\@logoetablissement} }; \fi