From 10870d740c413dfb2b1942093b9558d094ab85b7 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Fri, 18 Dec 2020 11:07:04 +0100 Subject: [PATCH] provide both possible CIACO-compatible formats and write a little doc about this --- .github/workflows/build-pdf.yml | 2 +- README.md | 9 +++++++-- thesis.tex | 5 +---- thesis_a4.tex | 7 +++++++ thesis_elec.tex | 11 +++++++++++ 5 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 thesis_a4.tex create mode 100644 thesis_elec.tex diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml index 7fed830..601376f 100644 --- a/.github/workflows/build-pdf.yml +++ b/.github/workflows/build-pdf.yml @@ -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: diff --git a/README.md b/README.md index 206df91..bd3616a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ # 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. @@ -12,7 +17,7 @@ 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) | diff --git a/thesis.tex b/thesis.tex index af6ec59..d84fdbd 100644 --- a/thesis.tex +++ b/thesis.tex @@ -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} diff --git a/thesis_a4.tex b/thesis_a4.tex new file mode 100644 index 0000000..e22fc20 --- /dev/null +++ b/thesis_a4.tex @@ -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} \ No newline at end of file diff --git a/thesis_elec.tex b/thesis_elec.tex new file mode 100644 index 0000000..c7cf596 --- /dev/null +++ b/thesis_elec.tex @@ -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} \ No newline at end of file