Skip to content

Commit

Permalink
Adjust syntax highlighting colors
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Oct 15, 2020
1 parent 0d37a7d commit f9740b9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@
\setcounter{secnumdepth}{5}
% Note: Toc changed for appendex
\setcounter{tocdepth}{1}
\definecolor{keywordcolor1}{rgb}{0, 0, .4}
\definecolor{keywordcolor2}{rgb}{0.48, 0.26, 0.04} % Red color used in the past: {.90, 0, 0}
\definecolor{keywordcolor1} {rgb}{0.00, 0.20, 0.47}
\definecolor{keywordcolor3} {rgb}{0.33, 0.24, 0.03} % Red color used in the past: {0.90, 0.00, 0.00}
\definecolor{commentcolor} {rgb}{0.42, 0.60, 0.24}

% When producing PDF, the ttfamily looks better in size \small, but with LaTeXML this becomes too small,
% and the size is applied deep down on the HTML elements, making it hard to adjust using CSS.
Expand Down Expand Up @@ -245,17 +246,17 @@
morekeywords=[1]{|}
}[keywords,comments,strings]

\lstset{ %
\lstset{%
backgroundcolor=\color{white}, % choose the background color
mathescape=true,
breaklines=true, % automatic line breaking only at whitespace
keepspaces, % don't remove space such as those after closing parenthesis
captionpos=b, % sets the caption-position to bottom
commentstyle=\color[rgb]{0,0.4,0}\sffamily, % comment style
commentstyle=\color{commentcolor}\sffamily, % comment style
keywordstyle=\color{blue}\ttfamily\bfseries, % keyword style
keywordstyle=[1]\color{keywordcolor1},
keywordstyle=[2]\color{keywordcolor1}\bfseries,
keywordstyle=[3]\color{keywordcolor2},
keywordstyle=[3]\color{keywordcolor3},
stringstyle=\color{black}, % string literal style
language=[short]modelica, % Language that will be used by default, in particluar by plain \lstinline.
showstringspaces=false,
Expand Down

0 comments on commit f9740b9

Please sign in to comment.