diff options
Diffstat (limited to 'macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty')
-rw-r--r-- | macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty b/macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty index cf4c5cd504..6c90fb6aae 100644 --- a/macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty +++ b/macros/latex/contrib/hagenberg-thesis/latex/hgblistings.sty @@ -4,7 +4,7 @@ %% GitHub: https://github.com/Digital-Media/HagenbergThesis %% File encoding: UTF-8 -\ProvidesPackage{hgblistings}[2019/05/11] +\ProvidesPackage{hgblistings}[2020/10/29]%%AUTO \RequirePackage{ifthen} \RequirePackage{textcomp} %% required for upquote option @@ -132,7 +132,7 @@ keepspaces=true,% % Language Definition and Code Environment for JavaScript \lstdefinelanguage{JavaScript}{ alsoletter={.}, - keywords={arguments, await, break, case, catch, class, const, continue, debugger,% + keywords={arguments, async, await, break, case, catch, class, const, continue, debugger,% default, delete, do, else, enum, eval, export, extends, false, finally, for,% function, if, implements, import, in, instanceof, interface, let, new, null,% package, private, protected, public, return, static, super, switch, this,% @@ -360,6 +360,15 @@ keepspaces=true,% {} +% Code Environment for Python +\lstnewenvironment{PythonCode}[1][] +{\lstset{% + language=Python, + escapeinside={/+}{+/}, % makes "/+" and "+/" available for Latex escapes (labels etc.) + #1}}% +{} + + % Language Definition and Code Environment for Swift \lstdefinelanguage{Swift} { keywords=[1]{typealias,true, false,catch,private,internal,public,func,protocol,% |