Add --ignore-errors flag to run.py + W10 exe#103
Open
VadeveSi wants to merge 5 commits intowannesm:masterfrom
Open
Add --ignore-errors flag to run.py + W10 exe#103VadeveSi wants to merge 5 commits intowannesm:masterfrom
VadeveSi wants to merge 5 commits intowannesm:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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-errorsoption to therun.pyscript, which avoid thesys.exitwhenever a command fails due to errors.glossary.sty, as I'm fairly sure this is no longer used (instead, the standardglossariesis 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
makeindexout of the box.I settled on the following solution: introduce the
--ignore-errorsflag (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.)