wannesm / adsphd

KU Leuven Arenberg Doctoral School PhD dissertation latex class
http://set.kuleuven.be/phd/
73 stars 46 forks source link

Add --ignore-errors flag to run.py + W10 exe #103

Open VadeveSi opened 3 years ago

VadeveSi commented 3 years ago

Hi,

I propose the following changes:

One of my Windows-loving colleagues (who shall remain unnamed) was having troubles with the glossary of the LaTeX template, so of course I was asked to fix them (I am not writing my thesis yet myself :slightly_smiling_face: ). Turns out the issue was with TexWorks not supporting the makeindex out of the box.

I settled on the following solution: introduce the --ignore-errors flag (so that the script doesn't stop when it hits one of their numerous errors which will be fixed later), generate a W10 exe and add a custom tool in TexWorks which runs the exe.

This way, the entire LaTeX "process" is always run in one single sweep, from inside TexWorks itself.

The W10 exe is built in a W10 VM using PyInstaller:

pyinstaller run.py --onefile

(Minor remark: I changed all tabs to 4 spaces in run.py, because my Python was complaining about mixed indentation. If requested, I can revert the file back to tabs of course.)