Skip to content

Instantly share code, notes, and snippets.

@felixjung
Created August 14, 2012 19:56
Show Gist options
  • Save felixjung/3352272 to your computer and use it in GitHub Desktop.
Save felixjung/3352272 to your computer and use it in GitHub Desktop.
LaTeX Typeset & View Command (hide log window preference)
#
# Decide what to do with the Latex & View log window
#
if not tmPrefs['latexKeepLogWin']:
if numErrs == 0 and viewer != 'TextMate':
eCode = 200
else:
eCode = 0
else:
eCode = 0
print '</div></div>' # closes <pre> and <div id="commandOutput">
#
# Some more code
#
sys.exit(eCode)
#
# End of File
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment