Commit 958b85f49ea9bef32573be80179c9e1b66933b65
authorgreflm13 <greflm13@htl-kaindorf.ac.at>
Wed, 7 Mar 2018 13:31:18 +0000 (14:31 +0100)
committergreflm13 <greflm13@htl-kaindorf.ac.at>
Wed, 7 Mar 2018 13:31:18 +0000 (14:31 +0100)
listings.tex

index ebba65d488b48b1cdcda6cbf687cb5441eee3e75..4343cf92de87bfb2c9b9e5e36782d550aa5ffda8 100644 (file)
@@ -6,7 +6,7 @@
 \definecolor{java_net_preprocessor}{rgb}{0,0.597,0}
 \definecolor{codeBackGray}{gray}{0.98}
 
-\lstdefinestyle{java}{                                                                                                                                                                         %define java style
+\lstdefinestyle{java}{                                                                                                                                                                         % define java style
   language=Java,                                                                                                                                                               % the language of the code
   backgroundcolor=\color{codeBackGray},                                                                                                                                % choose the background color
   basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize,                      % the size of the fonts that are used for the code
@@ -17,7 +17,7 @@
   escapeinside={(}{)},                                                                                                                                                         % if you want to add LaTeX within your code
   extendedchars=true,                                                                                                                                                          % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
   frame=none,%single,                                                                                                                                                  % adds a frame around the code
-  framexleftmargin=8mm,                                                                                                                                                                        %include numbers into the frame
+  framexleftmargin=8mm,                                                                                                                                                                        % include numbers into the frame
   keepspaces=true,                                                                                                                                                             % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
   keywordstyle=\color{java_net_keyword},                                                                                                                               % keyword style
   deletekeywords=                                                                                                                                                                      % if you want to delete keywords from the given language
@@ -34,6 +34,7 @@
   stringstyle=\color{java_net_string},                                                                                                                                 % string literal style
   tabsize=2,                                                                                                                                                                   % sets default tabsize to 2 spaces
   title=\lstname,                                                                                                                                                              % show the filename of files included with
+  literate={ä}{{\"a}}1 {ö}{{\"o}}1 {ü}{{\"u}}1 {ß}{{\ss}}1,                                                                                        % escape äöüß
 }
 
 \newcommand{\inlinecode}[2]{\colorbox{editorGray}{\lstinline[language=#1]$#2$}}
\ No newline at end of file