aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2023-04-15 12:14:09 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2023-04-15 12:14:09 +0200
commit86725cfe30eb0d967cebf4a35535ec101f242548 (patch)
tree0a6f9b9cc639404ff5d5439a8fcc678950e2d0f3
parent042dfd3249eef0f75707a6373ebfa961a4866486 (diff)
downloadUiO_profile-86725cfe30eb0d967cebf4a35535ec101f242548.tar.gz
UiO_profile-86725cfe30eb0d967cebf4a35535ec101f242548.zip
Add ability to use image on banner portion of fp
-rw-r--r--UiO_profile_fp.sty10
1 files changed, 7 insertions, 3 deletions
diff --git a/UiO_profile_fp.sty b/UiO_profile_fp.sty
index 7532ddc..7134cc0 100644
--- a/UiO_profile_fp.sty
+++ b/UiO_profile_fp.sty
@@ -57,6 +57,7 @@
\RequirePackage{tikz}
\RequirePackage[export]{adjustbox}
\RequirePackage{color, eso-pic, graphicx, xifthen, keyval}
+\usetikzlibrary{fit,calc}
%% The options:
@@ -88,7 +89,6 @@
\def \uiopfp@dept {\csname uiopfp@dept@\uiopfp@lang \endcsname}
\def \uiopfp@fac {\csname uiopfp@fac@\uiopfp@lang \endcsname}
\def \uiopfp@font {helvetica}
-\def \uiopfp@image {}
\def \uiopfp@info {}
\providecommand{\uiopfp@program}{}
\def \uiopfp@supervisor {}
@@ -154,7 +154,11 @@
};
% "Ribbon" bakgrunn
- \node (names) [shape=rectangle, fill={uiopfp@\uiopfp@color}, minimum height=.25\paperheight, minimum width=\paperwidth, anchor=north west] at (current page.north west) {};
+ \node (names) [shape=rectangle, fill={uiopfp@\uiopfp@color}, minimum height=.25\paperheight, minimum width=\paperwidth, anchor=north west,inner sep=0pt] at (current page.north west) {
+ \ifdefined\uiopfp@image
+ \includegraphics[width=\paperwidth,height=.25\paperheight,trim=0 0 0 200,clip]{\uiopfp@image}
+ \fi
+ };
% Navnetrekk
\node[inner sep=0pt, anchor=north west] (uioname) at ([shift={(10mm,-10mm)}]names.north west) {
@@ -186,7 +190,7 @@
% Forfatter
\node[anchor=north west] (author) at ([shift={(0,-5mm)}]\ifdefined\uiopfp@subtitle subtitle\else title\fi.south west) {
- \uiopfp@author
+ {\uiopfp@author}
};
% Studieprogram