Background graphic

This commit is contained in:
Miha Frangež 2025-09-04 16:04:52 +02:00
parent f421352446
commit 860a543032
3 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@ razpored*
# Don't commit the final PDF files
*.pdf
!fri_background.pdf
# The seminarske/ folder should be left empty
seminarske/*

BIN
fri_background.pdf Normal file

Binary file not shown.

View file

@ -12,6 +12,22 @@
linkcolor=black,
urlcolor=black
}
% Title page background
\usepackage{background}
\newcommand{\backgroundon}{%
\backgroundsetup{
scale=1,
angle=0,
opacity=1,
contents={
\includegraphics[width=\paperwidth,height=\paperheight]{fri_background.pdf}
}
}%
}
\newcommand{\backgroundoff}{\backgroundsetup{contents={}}}
%----------------------------------------------------------------------------------------
% PAGE DIMENSIONS
@ -35,6 +51,8 @@
%----------------------------------------------------------------------------------------
\begin{titlepage}
\backgroundon
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here
\center % Center everything on the page
@ -44,7 +62,6 @@
%----------------------------------------------------------------------------------------
\vspace*{30pt}
% \includegraphics[width=0.3\textwidth]{ul_fri_logo.pdf}\\[1cm]
\textsc{\LARGE Univerza v Ljubljani}\\[0.4cm] %
\textcolor{fri_red}{\textsc{\LARGE Fakulteta za računalništvo in informatiko}}\\[1cm]
@ -70,6 +87,8 @@
\end{titlepage}
\backgroundoff
%----------------------------------------------------------------------------------------
% FOOTNOTE SECTION
%----------------------------------------------------------------------------------------
@ -133,12 +152,15 @@ All rights reserved.}\\[0.5cm]
\newcommand{\worksection}[1]{%
\newpage
\backgroundon
\center % Center everything on the page
\vspace*{60pt}
\section{{#1}}
\vfill % Fill the rest of the page with whitespace
\newpage
\backgroundoff
}
% Include all the PDFs