Skip to content

Commit

Permalink
provide both possible CIACO-compatible formats and write a little doc…
Browse files Browse the repository at this point in the history
… about this
  • Loading branch information
qdeconinck committed Dec 18, 2020
1 parent 34ea38f commit 10870d7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build LaTeX document
on: [push, pull_request]
env:
FINAL_FILENAME: thesis_final.pdf
MAIN_LATEX: thesis.tex
MAIN_LATEX: thesis_elec.tex
DATE_TIMEZONE: Europe/Brussels

jobs:
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Template for EPL's UCLouvain Ph.D. Theses

This repository contains a template to write your thesis with the CIACO's requirements.
Just look at thesis.tex and start writing :-)
Just look at either thesis_a4.tex or thesis_elec.tex and start writing :-)

NB: For the bibliography, use Biber instead of BibTex.

## Thesis format

Two main files are proposed: either writing on A4 format (thesis_a4.tex) or on the CIACO specific one (thesis_elec.tex).
Both formats should work for the CIACO, but make sure you mention the format you use when sending your PDF for printing!

## Continuous Integration with GitHub

If you use GitHub to host your repository, you can leverage the GitHub Actions to auto-generate the thesis PDF.
For this, you have a few environment variables to configure this workflow:

| env variable | purpose |
|---|---|
| **MAIN_LATEX** | The entry point of your thesis (here it is thesis.tex) |
| **MAIN_LATEX** | The entry point of your thesis (here it is thesis_elec.tex) |
| **FINAL_FILENAME** | The final name of the file, which follows the naming conventions of the UCLouvain (for example : Yakoub_13861700_2020.pdf ) |
| **DATE_TIMEZONE** | The timezone for release (by default, Github uses GMT timezone) |

Expand Down
5 changes: 1 addition & 4 deletions thesis.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
\documentclass[11pt,twoside,a4paper,openright]{these-ucl}

% Margins required by the CIACO
\usepackage[left=4.5cm,right=4.5cm,top=4.8cm,bottom=4.8cm]{geometry}
% Do not compile this file directly, but instead the thesis_a4 or the thesis_elec one.

% For encoding
\usepackage[T1]{fontenc}
Expand Down
7 changes: 7 additions & 0 deletions thesis_a4.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass[11pt,twoside,a4paper,openright]{these-ucl}

% This is the master file to compile your thesis for the format expected by the CIACO.

% Margins required by the CIACO
\usepackage[left=4.5cm,right=4.5cm,top=4.8cm,bottom=4.8cm]{geometry}
\input{thesis.tex}
11 changes: 11 additions & 0 deletions thesis_elec.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\documentclass[11pt,twoside,onecolumn,openright]{these-ucl}

% This is the master file to compile your thesis in a more reader-friendly format.
% Note that the output is equivalent to the thesis_a4 one, and it should generate the same print format in the end if you warn them (/!\ untested).

\setlength\paperheight{240mm}
\setlength\paperwidth{160mm}

% Margins required by the CIACO
\usepackage[left=2cm,right=2cm,top=1.95cm,bottom=1.95cm]{geometry}
\input{thesis.tex}

0 comments on commit 10870d7

Please sign in to comment.