Skip to content

Commit

Permalink
Merge pull request #24 from ZuzkaU/master
Browse files Browse the repository at this point in the history
Use PDF/A
  • Loading branch information
COM8 authored Dec 8, 2024
2 parents 70e28bc + 48f6adf commit 076b45d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
7 changes: 4 additions & 3 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
%\documentclass[headsepline,footsepline,footinclude=false,fontsize=11pt,paper=a4,listof=totoc,bibliography=totoc,BCOR=12mm,DIV=12]{scrbook} % two-sided
\documentclass[headsepline,footsepline,footinclude=false,oneside,fontsize=11pt,paper=a4,listof=totoc,bibliography=totoc]{scrbook} % one-sided

% TODO: change citation style in settings
\input{settings}

% TODO: change thesis information
\newcommand*{\getUniversity}{Technische Universität München}
\newcommand*{\getFaculty}{Informatics}
Expand All @@ -20,9 +17,13 @@
\newcommand*{\getDoctype}{Bachelor's Thesis, Master's Thesis, \ldots}
\newcommand*{\getSupervisor}{Supervisor}
\newcommand*{\getAdvisor}{Advisor}
\newcommand*{\getKeywords}{keyword;another keyword;one more}
\newcommand*{\getSubmissionDate}{Submission date}
\newcommand*{\getSubmissionLocation}{Munich}

% TODO: change citation style in settings
\input{settings}

\begin{document}

% Set page numbering to avoid "destination with the same identifier has been already used" warning for cover page.
Expand Down
6 changes: 6 additions & 0 deletions main.xmpdata
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
% Metadata for PDF
\Author{\getAuthor}
\Title{\getTitle}
\Keywords{\getKeywords}
\Subject{\getDoctype}

11 changes: 4 additions & 7 deletions settings.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
\PassOptionsToPackage{table,svgnames,dvipsnames}{xcolor}

\usepackage[a-2u]{pdfx} % generate PDF/A: archival compliant, self-contained pdf
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
Expand All @@ -25,15 +26,11 @@
\usepackage[final]{microtype}
\usepackage{caption}
\usepackage[printonlyused]{acronym}
\usepackage[hidelinks]{hyperref} % hidelinks removes colored boxes around references and links
\AtBeginDocument{%
\hypersetup{
pdftitle=\getTitle,
pdfauthor=\getAuthor,
}
}
\usepackage{ifthen}


\hypersetup{hidelinks} % removes colored boxes around references and links

% for fachschaft_print.pdf
\makeatletter
\if@twoside
Expand Down

0 comments on commit 076b45d

Please sign in to comment.