Skip to content

Commit 33856aa

Browse files
authored
Merge pull request #13 from ouspg/pdfa1b
Make template output PDF/A1b by default
2 parents 80985cb + f922db9 commit 33856aa

15 files changed

Lines changed: 101 additions & 91202 deletions

.github/workflows/verify.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Verify PDF/A-1B compatibility
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
branches:
10+
- main
11+
- devel
12+
13+
jobs:
14+
build_latex:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out repository code
18+
uses: actions/checkout@v4
19+
- name: Install TexLive and dependencies
20+
uses: teatimeguest/setup-texlive-action@v3
21+
with:
22+
package-file: texlive-basic-packages.txt
23+
- name: Compile LaTeX document
24+
run: >
25+
pdflatex -halt-on-error main.tex
26+
- name: Verify PDF
27+
run: >
28+
docker run --rm -t -v "$(pwd):/data"
29+
ghcr.io/verapdf/cli:latest
30+
-f 1b main.pdf

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.aux
2+
*.log
3+
*.out
4+
*.toc
5+
*.xmpi
6+
main.pdf
7+
report.xml

Chapters/implementation.tex

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,25 @@ \subsubsection{Formatting the figure captions} Figures, tables and appendices ar
126126

127127
\figref{fig:work_packages} serves as an example of a figure and a text referring to it. Figure captions are below the figure, and the caption text ends with a full stop. A short caption is centered, while a long caption extending to a several lines is justified on both sides. According to the copyright enactments, you must always have the permission from the copyright holder to use the figure in your work. \textbf{Copyright infringement may lead to legal actions and penalties, and in those cases the author is responsible.} The writer should grow towards to mainly using figures of his own in the thesis. \textbf{ \figref{fig:work_packages} serves as an example of authors' own production, thus requiring no reference or footnotes.} In other words: if no outside source is referred to, it is assumed that the author of the thesis is also the author of the figure.
128128

129-
%Pictures in .eps if you use latex, .pdf or .png if you use pdflatex. Don't specify the extension so you can use both!
129+
It is also good practice to explicitly state a license for your
130+
images, such as CC BY. Please refer to the university instructions on
131+
further instructions on copyright issues.
132+
133+
The final thesis will be published as a PDF/A file, and this LaTeX
134+
template produces files in that format directly (There is no need to
135+
use Muuntaja). Be sure to remove all transparency in your source
136+
images to ensure the end result is also compliant.
137+
138+
% Pictures in .pdf, .png or .jpg. No need to specify the extension.
139+
% Transparent images are not allowed with PDF/A.
140+
% With ImageMagick transparency can be removed with
141+
% convert image.png -background white -alpha remove -alpha off image_nobg.png
142+
% This restriction also affects PDF images
130143
\begin{figure}[ht]
131144
\begin{center}
132145
\includegraphics*[width=0.7\textwidth]{WP}
133146
\end{center}
134-
\caption{Connections between work packages (WP).}
147+
\caption{Connections between work packages (WP). \copyright\ Unto Uneksija 2025 CC BY}
135148
\label{fig:work_packages}
136149
\end{figure}
137150

@@ -256,4 +269,4 @@ \section{Electronic version}
256269

257270
\section{Optional bound versions}
258271

259-
It is not mandatory to bind the thesis at a printing house. However, a student is free to bind the thesis when she/he wants to have a high-quality copy for relatives, for example. For the bound thesis, the words MASTER’S THESIS should be printed in the middle of the front cover. The NAME OF THE AUTHOR of the thesis should be printed in the lower right hand corner of the front cover. The NAME OF THE AUTHOR and year of publication should be printed in the spine of the thesis. You must have your thesis bound at a printing house specialized in printing theses. The printing house will also produce and attach the cover to the printout that you have brought with you. The color of the cover has to be black. The text has to be printed on the cover, i.e., stickers should not be applied!
272+
It is not mandatory to bind the thesis at a printing house. However, a student is free to bind the thesis when she/he wants to have a high-quality copy for relatives, for example. For the bound thesis, the words MASTER’S THESIS should be printed in the middle of the front cover. The NAME OF THE AUTHOR of the thesis should be printed in the lower right hand corner of the front cover. The NAME OF THE AUTHOR and year of publication should be printed in the spine of the thesis. You must have your thesis bound at a printing house specialized in printing theses. The printing house will also produce and attach the cover to the printout that you have brought with you. The color of the cover has to be black. The text has to be printed on the cover, i.e., stickers should not be applied!

0 commit comments

Comments
 (0)