fix brackets, check floats and widows in chp 1-3
[phd-thesis.git] / preamble / listings.tex
index 006b342..e975b3d 100644 (file)
@@ -25,7 +25,7 @@
        showtabs=false,
        stringstyle=\it,
        tabsize=4,
-%      upquote=true,
+       upquote=true,
        numberstyle=\tiny,
 }
 \usepackage{preamble/lstlangclean}
 % Fix the algorithm font
 \renewcommand\AlCapFnt{\normalfont}
 
+\makeatletter
+\patchcmd{\lsthk@SelectCharTable}{%
+         \lst@ifbreaklines\lst@Def{`)}{\lst@breakProcessOther)}\fi
+  }{%
+  }{
+  }{
+  }
+\makeatother