Skip to content

Commit

Permalink
Modified some stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
dparo committed Jun 27, 2022
1 parent 7645af3 commit 0cd857c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
5 changes: 2 additions & 3 deletions Config/config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
\setbool{GenerateListOfFigures}{true}
\setbool{GenerateListOfTables}{false}

\newcommand{\PdfXConformanceStandard}{a-2b}

%%
%% Customize your work
%%
Expand All @@ -30,9 +32,6 @@
\newcommand{\DegreeName}{Master's Degree in Computer Engineering}
\newcommand{\Title}{A Branch-and-Cut based Pricer for the Capacitated Vehicle Routing Problem}

\newbool{ifCoSupervisor}
\booltrue{ifCoSupervisor}

\newcommand{\SupName}{Domenico}
\newcommand{\SupSurname}{Salvagnin}

Expand Down
11 changes: 2 additions & 9 deletions Config/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@

\usepackage{pdflscape}

% PDF/A configuration
% Validate at:
% - https://demo.verapdf.org/
% - https://www.pdf-online.com/osa/validate.aspx
% To check for PDF metadata:
% - https://www.metadata2go.com/result/3ef837c3-cbab-4905-9cd5-beb87fc14968
\usepackage[a-2b,mathxmp]{pdfx}
%% Generate PDF/A-1 conformant document
\usepackage[\PdfXConformanceStandard,mathxmp]{pdfx}
\usepackage{colorprofiles}

% biblatex is better than default bibtex
Expand Down Expand Up @@ -72,8 +67,6 @@

\usepackage{tikz} % A drawing package to draw arbitrary shapes, useful even for drawing networks/graphs

\usepackage{setspace} % For \setstretch

% To access various style for arrow heads
\usetikzlibrary{snakes,arrows,shapes}

Expand Down
2 changes: 1 addition & 1 deletion Config/pdf_metadata.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% NOTE(dparo): Prefer to not modify this file/variables
%% Modify he variables inside Config/config.tex instead

\newcommand{\PdfMetadataLanguage}{en-GB}
\newcommand{\PdfMetadataLanguage}{en-US}
\newcommand{\PdfMetadataPublisher}{\Publisher}

\newcommand{\PdfMetadataTitle}{\Title}
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ croppdfs: $(PDFS_CROPPED)
pdfcrop "$<" "$@"


validate: $(TARGET_PDF)
$(info ###)
$(info ### Validating PDF conformance to PDF-A standard)
$(info ###)
verapdf -f 2b --format text -v ./build/Paro_Davide.pdf

prebuild: $(BUILD_DIR) svg2pdf croppdfs

Expand Down
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

![GitHub release (latest by date)](https://img.shields.io/github/v/release/dparo/master-thesis.tex?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/dparo/master-thesis.tex?style=for-the-badge) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/dparo/master-thesis.tex/CI?style=for-the-badge)


# A Branch-and-Cut based Pricer algorithm for tackling the Capacitated Vehicle Routing Problem

This repository contains the LaTeX source code for the master degree thesis
Expand All @@ -17,30 +15,29 @@ Prebuilt PDF download URL:
https://github.com/dparo/master-thesis.tex/releases/latest/download/Paro_Davide.pdf
-->


<div>
<a href="https://dparo.github.io/documents/MSc_Paro_Davide.pdf" target="_blank" rel="noopener noreferrer">
<img src="https://img.shields.io/badge/-Get%20PDF%20Document-0a4026?style=for-the-badge&logo=firefox" alt="Get PDF Document" />
</a>
</div>
</div>
<div>
<a href="https://github.com/dparo/master-thesis.tex/releases/latest" target="_blank" rel="noopener noreferrer">
<img src="https://img.shields.io/badge/-View%20latest%20Release-063179?style=for-the-badge&logo=github" alt="View latest Release" />
</a>
</div>



## :construction: Manually compile the document
## :construction: Manually compile the document

### :anchor: Requirements

- A GNU/Linux system
- A full distribution of LaTex (with latexmk)
- GNU make
- (Optional) Inkscape to automatically batch convert SVGs to PDFS
- (Optional) Ghostscript to optimize the PDF for release mode

### :inbox_tray: Cloning the repository

```sh
git clone --recursive https://github.com/dparo/master-thesis.tex
```
Expand All @@ -52,30 +49,30 @@ make all
```

### :mag: Verify PDF/A-2b conformance
- Requires VeraPDF binary to be installed and be available in `$PATH`.

- Requires [veraPDF](https://verapdf.org/software/) to be installed and be available in `$PATH`.

```
make validate
```

If validation fails, VeraPDF will output the failed rules.
If validation fails, veraPDF will output the failed rules.
You can take a look at all the available rules and their associated meaning [here](https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules).


## ℹ️ Additional resources
- [VeraPDF free online validator for conformance to PDF/A-1 standard (WEB)](https://demo.verapdf.org): Prefer to use the native VeraPDF executable if possible.
- [VeraPDF free online validator for conformance to PDF/A-1 standard (Native)](https://verapdf.org/software/): Crossplatform, recommented over web version.
- [VeraPDF list of validation rules with their meaning](https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules)

- [veraPDF free online validator for conformance to PDF/A-1 standard (WEB)](https://demo.verapdf.org): Prefer to use the native veraPDF executable if possible.
- [veraPDF free online validator for conformance to PDF/A-1 standard (Native)](https://verapdf.org/software/): Crossplatform, recommented over web version.
- [veraPDF list of validation rules with their meaning](https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules)
- [PDF to PDF/A online free converter](https://pdf.online/pdf-to-pdfa): Use this as a last resource if you fail to generate a proper PDF/A from Latex.
- [PDF online metadata viewer](https://www.metadata2go.com/): alternatively you can export the PDF metadata directly from VeraPDF native executable.
- [PDF online metadata viewer](https://www.metadata2go.com/): alternatively you can export the PDF metadata directly from the native veraPDF GUI.

### 📑 Documentation

- [Memoir documentclass documentation (PDF)](http://mirrors.ctan.org/macros/latex/contrib/memoir/memman.pdf).
- [PDFX Latex package documentation (PDF)](http://mirrors.ctan.org/macros/latex/contrib/pdfx/pdfx.pdf): The pdfx latex package is used to produce native PDF/A-1 conformant documents directly from Latex.
- [Biblatex Latex package documentation (PDF)](http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf).


## :sparkling_heart: Funding

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J47WJB2)

0 comments on commit 0cd857c

Please sign in to comment.