From 074a1cbcf7dc0fb4800d1a7c66b7b4cbf3852a3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jari-Matti=20M=C3=A4kel=C3=A4?= <jmjmak@utu.fi>
Date: Thu, 2 May 2019 21:08:50 +0300
Subject: [PATCH] Enable PDF/A support in final version

---
 latex/utuftthesis.cls | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/latex/utuftthesis.cls b/latex/utuftthesis.cls
index 6c2fb04..fea9049 100644
--- a/latex/utuftthesis.cls
+++ b/latex/utuftthesis.cls
@@ -1,3 +1,5 @@
+% version 2.3 2019/05/02 Bugfixes: PDF/A-1b support (via pdfx), moved chead to cfoot,
+%                                  updated UTU logos
 % version 2.2 2018/10/06 Bugfixes: Got rid of startappendices and startpages.
 %                                  various fixes. cleanups
 % version 2.1 2018/10/02 Bugfixes: removed redundant tutkielma.tex, fixed issues with
@@ -139,7 +141,15 @@
 \newcommand{\s@pervisors}{none}
 \newcommand{\k@ywords}{not set}
 \newcommand{\k@ywordstwo}{not set}
-\ifdefstring{\utuftthesis@version}{draft}{\newcommand{\version}{[draft]}}{\newcommand{\version}{}}
+
+\ifdefstring{\utuftthesis@version}{draft}{
+  \newcommand{\version}{[draft]}
+
+}{
+  \newcommand{\version}{}
+  \RequirePackage[a-1b]{pdfx}
+}
+
 \newcommand\keywords[1]{\renewcommand\k@ywords{#1}}
 \newcommand\keywordstwo[1]{\renewcommand\k@ywordstwo{#1}}
 \newcommand\pubyear[1]{\renewcommand\ye@r{#1}}
@@ -463,3 +473,9 @@
   \setcounter{page}{1}
   \chapter{#1}
 }
+
+\ifdefstring{\utuftthesis@version}{draft}{
+}{
+  \hypersetup{hidelinks} % can be customized if you don't want to hide links
+}
+
-- 
GitLab