Add --ignore-errors flag to run.py + W10 exe #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I propose the following changes:
--ignore-errors
option to therun.py
script, which avoid thesys.exit
whenever a command fails due to errors.glossary.sty
, as I'm fairly sure this is no longer used (instead, the standardglossaries
is used).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 🙂 ).
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:
(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.)