From d58e8dc5f439ae85bcc1fbd7f745b63a689d8016 Mon Sep 17 00:00:00 2001 From: greflm13 Date: Wed, 14 Mar 2018 10:54:44 +0100 Subject: [PATCH] Font corrected --- listings.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/listings.tex b/listings.tex index 21dfdd8..ff27663 100644 --- a/listings.tex +++ b/listings.tex @@ -4,7 +4,7 @@ backgroundcolor=\color{codeBackGray}, showstringspaces=false, keepspaces=true, - basicstyle=\fontencoding{T1}\fontfamily{DejaVuSansMono-TLF}\fontseries{m}\selectfont\footnotesize, + basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize, keywordstyle=\color{blue}, commentstyle=\color[grey]{0.6}, stringstyle=\color[RGB]{255,150,75} @@ -21,7 +21,7 @@ \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 + basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize, % the size and the font that are used for the code breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace breaklines=true, % sets automatic line breaking captionpos=b, % sets the caption-position to bottom @@ -68,7 +68,7 @@ \lstdefinestyle{C}{ %define c style language=C, % the language of the code backgroundcolor=\color{codeBackGray}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor} - basicstyle=\fontencoding{T1}\fontfamily{DejaVuSansMono-TLF}\fontseries{m}\selectfont\footnotesize, % the size of the fonts that are used for the code + basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize, % the size of the fonts that are used for the code breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace breaklines=true, % sets automatic line breaking captionpos=b, % sets the caption-position to bottom @@ -84,7 +84,7 @@ otherkeywords={*,...}, % if you want to add more keywords to the set numbers=left, % where to put the line-numbers; possible values are (none, left, right) numbersep=8pt, % how far the line-numbers are from the code - numberstyle=\fontencoding{T1}\fontfamily{DejaVuSansMono-TLF}\fontseries{m}\selectfont\footnotesize, % the style that is used for the line-numbers + numberstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize, % the style that is used for the line-numbers rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' showstringspaces=false, % underline spaces within strings only @@ -106,4 +106,4 @@ {ö}{{\"o}}1 % escape ÖÄÜßüäö } -\newcommand{\inlinecode}[2]{\colorbox{editorGray}{\lstinline[language=#1]$#2$}} +\newcommand{\inlinecode}[2]{\colorbox{editorGray}{\lstinline[style=#1]$#2$}} -- 2.39.5