From 3354e64c61c3b4e1bd0d68cd9862b77c2370f3d6 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Mon, 26 Jan 2026 15:22:14 +0000 Subject: [PATCH] Johannes logo with font tweaks --- main.tex | 3 --- rulogo.sty | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ ruthesis.sty | 6 ++--- 3 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 rulogo.sty diff --git a/main.tex b/main.tex index fece589..d382b0f 100644 --- a/main.tex +++ b/main.tex @@ -39,9 +39,6 @@ %% in the graphics-cropped folder to speed up processing. %%%%%%%%%%%%%%%%%Information for the Title page %%%%%%%%%%%%%%%%% -\logo{graphics/ru-logo}%Get RU logo from help.ru.is at -% https://uthelp.refined.site/space/UKB/312279050/Final+Project+%2F+Thesis+%2F+Dissertation+Template -% and put it in the graphics folder \title{Thesis and Project Report Template for \theInstitution{}} \author{Joseph~T.~Foley and Marcel~Kyas} \date{November, 2025}%Generally this is set to the day of the defense diff --git a/rulogo.sty b/rulogo.sty new file mode 100644 index 0000000..46b7362 --- /dev/null +++ b/rulogo.sty @@ -0,0 +1,68 @@ +%% Reykjavik University Logo in Tikz +%% Logo designed by graphic designers Alli Metal and Annetta Scheving in 2009 +%% Conversion by Johannes Berger Gunnarson 2022-03-17 +\RequirePackage[table]{xcolor} +\RequirePackage{tikz} +\usetikzlibrary{decorations.text,decorations.shapes,decorations.pathreplacing} +\usetikzlibrary{decorations.pathmorphing} +\usetikzlibrary{arrows.meta,bending} +\usetikzlibrary{positioning} + +\definecolor{HRred}{RGB}{230 45 9} %Rétt, fengið frá skóla +%\colorlet{HRgray}{gray!10!black!70} %gamalt +\definecolor{HRgray}{RGB}{72 72 72}%Rétt, fengið frá skóla +\newcommand{\charCommand}[1]{\hspace{0.5mm}#1\hspace{0.5mm}} +\newcommand{\charCommandROT}[1]{\hspace{0.5mm}\rotatebox[origin = c]{180}{#1}\hspace{0.5mm}} +% Use TeX Gyre Heros (tgheros) to replace copyrighted font. +\RequirePackage{tgheros} +\newfontfamily\rufont{TeX Gyre Heros} + +\newcommand\rulogo{\drawrulogo{0.5}}%most documents only need the half-size logo +\newcommand{\drawrulogo}[1]{ + %ARG: scale based upon 6cm = 1 + \phantom{bla} + \begin{tikzpicture}[scale=#1, every node/.style={scale=#1}] + \useasboundingbox (-6cm, -6cm)rectangle (6cm, 6cm); + \clip[overlay] + (-6cm, -6cm) rectangle (6cm, 6cm) + (0, 0) circle (1.13cm); + \pgfmathsetmacro{\Null}{-17} + \pgfmathsetmacro{\hringSidast}{\Null} + \foreach \horn/\rad in{43/3.45, 42/4.08, 6/2.1, 26/3.45, 5/2.85, 65/4.08, 4/3.4, 12/2.8, 8.5/0.5, 1.5/3.4, 25/4.08, 9/2.85, 11/2.05, 9/0.5, 45/4.08, 11/3.43, 9/2.85, 24/4.08, 4/2} + { + \pgfmathsetmacro{\hringNu}{\hringSidast+\horn} + \draw [HRred, fill=HRred] (0,0) --+(\hringSidast:\rad) arc(\hringSidast:\hringNu:\rad)--(0,0); + \global\let\hringSidast=\hringNu + } + {%\large + \bfseries\fontsize{6pt}{6pt}\rufont + \draw [rotate = -2,decorate,decoration={text effects along path, + text={H{Á}SK{Ó}LINN {Í} REYKJAV{Í}K}, + text align=center, + text effects/.cd, + text along path, scale text to path, + characters={HRgray,character command=\charCommand}} + ] + {(180:4.8) arc (180:4:4.8) }; + + % \draw[rotate = -5] (0,0) --(180:4.8) arc (180:10:4.8)--cycle; + + \draw [ rotate = -8,decorate,decoration={text effects along path, + text={YTISREVINU KIVAJKYER}, + text align=center, + text effects/.cd, + text along path, scale text to path, + characters={HRgray,character command=\charCommandROT}} + ] + {(0:4.8) arc (0:-164:4.8) }; + } + % \draw[rotate = 5] (0,0) --(180:4.8) arc (180:350:4.8)--cycle; + \end{tikzpicture} + \phantom{bla} +} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: "main-dissertation" +%%% TeX-engine: luatex +%%% End: diff --git a/ruthesis.sty b/ruthesis.sty index d31fc76..f1869bc 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -54,6 +54,8 @@ %% ---------------- Graphics ------------------------------ \RequirePackage{graphicx} %% GraphicsX converts and includes graphics intelligently which is needed for jpg, png, etc. +\RequirePackage{rulogo} +%% RU logo with font compatible with Skemman %% ---------------- URLs and Paths ----------------------------- \PassOptionsToPackage{obeyspaces,spaces,hyphens,allowmove}{url} @@ -116,15 +118,13 @@ \newcommand{\DocumentDescription}[1]{\renewcommand{\docdesc@ruthesis}{#1}}%nop for now \newcommand{\pubplaceyear@ruthesis}{Reykjavik, 2025} \newcommand{\publocation}[1]{\renewcommand{\pubplaceyear@ruthesis}{#1}} -\newcommand{\logo@ruthesis}{graphics/smiley-logo} -\newcommand{\logo}[1]{\renewcommand{\logo@ruthesis}{#1}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Memoir titlepage definition and info at p.64 %% \title is ignoring formatting for reasons I don't understand \renewcommand{\maketitlehooka}{ \begin{center} - \includegraphics[width=0.3\textwidth]{\logo@ruthesis} + \rulogo{} \par\end{center}\vspace{0.7cm} } %% TODO: investigate why bold isn't working on the title