Skip to content
Snippets Groups Projects
Commit dd7b8a55 authored by Fredrik Lindeberg's avatar Fredrik Lindeberg :homes:
Browse files

Added support for custom logos

parent ad67febe
No related branches found
Tags 1.3.0
1 merge request!33Custom logo support
%%% demothesis.tex ---
%%
%% Filename: demothesis.tex
%% Description:
%% Author: Ola Leifler
%% Maintainer:
%% Created: Thu Oct 14 12:52:20 2010 (CEST)
%% Version: $Id$
%% Version:
%% Last-Updated: Mon Aug 14 16:34:10 2017 (+0200)
%% By: Ola Leifler
%% Update #: 178
%% URL:
%% Keywords:
%% Compatibility:
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Commentary:
%%
%%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Change log:
%%
%%
%% RCS $Log$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%% Code:
\documentclass[phd,lith,english]{liuthesis}
\usepackage{todonotes}
%% Settings go in settings.tex
\include{settings}
\frontlogo{liu_lebanon}
\department{Institutionen för datavetenskap}
\departmentenglish{Department of Computer and Information Science}
\edition{1:1}
% \supervisor{Min handledare}
\titleenglish{A very very long title}
\division{Division of Human-Centered Systems}
\thesisnumber{111111}
\publicationyear{2017}
\isbn{123456}
\divanumber{456789}
\author{Författaren}
\keywords{keyword1,keyword2}
\thesissubjectenglish{thesis subject}
\begin{document}
% Choose any chapter style compatible with Memoir that you like
\chapterstyle{VZ43}
% Include your chapters here
\include{intro}
\include{theory}
\include{method}
% \include{results}
% \include{discussion}
% \include{conclusion}
% And print the references (by default in references.bib)
\printbibliography
% Demonstrates the use of included publications, for graduate-level theses
% If including paper and you want a proper PDF/A, ensure that you have the exact fonts installed!
%\includearticle{scigen}
%\includearticletex{scigen}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% demothesis.tex ends here
......@@ -139,6 +139,11 @@
\createvariable{thesissubject}
\createvariable{thesissubjectenglish}
% Added, frontlogo
\newif\iffrontlogo
\frontlogofalse
\def\frontlogo#1{\frontlogotrue\gdef\@frontlogo{#1}}
\newif\ifsubtitleswedish
\subtitleswedishfalse
\def\subtitleswedish#1{\subtitleswedishtrue\gdef\@subtitleswedish{#1}}
......@@ -818,7 +823,13 @@
\vfill{}
\begin{textblock*}{\textwidth}(2cm,\paperheight-4cm)
\swedishenglish{\gdef\@langlogo{sv}}{\gdef\@langlogo{en}}
\parbox{0.4\textwidth}{\includegraphics[width=85mm]{liu_primary_black_\@langlogo_rgb}}%
\parbox{0.4\textwidth}{
\iffrontlogo
\includegraphics[height=40mm]{\@frontlogo} %% use height
\else
\includegraphics[width=85mm]{liu_primary_black_\@langlogo_rgb}
\fi
}%
\hspace*{32mm}
\parbox{0.5\textwidth}{\raggedleft%
\vspace*{4mm}
......@@ -846,7 +857,11 @@
{\Large\bfseries\@author}\\
\vfill
\swedishenglish{\gdef\@langlogo{sv}}{\gdef\@langlogo{en}}
\iffrontlogo
\includegraphics[height=30mm]{\@frontlogo} %% use height
\else
\includegraphics[width=60mm]{liu_primary_black_\@langlogo_rgb}
\fi
\\[12mm]
{\footnotesize
\swedishenglish{%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment