Commit 867818b6 authored by Luc Grosheintz's avatar Luc Grosheintz

Sort LST options, always breaklines also in C++.

Sort the LST options and remove duplicated options.
parent 7814d292
......@@ -34,82 +34,60 @@
% Define appearance of Python code
\lstdefinestyle{PY}{
language=python,
basicstyle={\ttfamily \small},
mathescape=true,
basewidth=0.58em,
basicstyle={\ttfamily \small},
breakindent=0pt,
breaklines=true,
columns=fixed,
tabsize=2,
commentstyle=\color{gray},
fontadjust=true,
frame=lb,
xleftmargin=4.2pt,
numbers=left,
stepnumber=1,
breaklines=true,
breakindent=0pt,
prebreak=\mbox{\tiny$\searrow$},
postbreak=\mbox{{\color{gray}$\cdots$}},
keywords={and, as, assert, break, class, continue, def, del, elif, else,
except, exec, finally, for, from, global, if, import, in, is, lambda, not,
or, pass, print, raise, return, try, while, with, yield, True, False, None},
keywordstyle=\bfseries,
keywords={and, as, assert, break, class, continue, def, del,
elif, else, except, exec, finally, for, from, global,
if, import, in, is, lambda, not, or, pass, print, raise,
return, try, while, with, yield, True, False, None},
language=python,
mathescape=true,
numbers=left,
numberstyle=\color{gray},
commentstyle=\color{gray},
stringstyle=\textit,
postbreak=\mbox{{\color{gray}$\cdots$}},
prebreak=\mbox{\tiny$\searrow$},
showstringspaces=false,
stepnumber=1,
stringstyle=\textit,
tabsize=2,
xleftmargin=4.2pt,
}
% Define appearance of C++ code
\lstdefinestyle{CPP}{
basicstyle={\ttfamily \small},
numberstyle=\color{gray},
commentstyle=\color{gray},
stringstyle=\textit,
showstringspaces=false,
mathescape=true,
alsoletter={\\,/,*},
basewidth=0.58em,
basicstyle={\ttfamily \small },
breakindent=0pt,
breaklines=true,
columns=fixed,
tabsize=2,
commentstyle=\color{gray},
fontadjust=true,
frame=lb,
xleftmargin=4.2pt,
numbers=left,
stepnumber=1,
breaklines=false,
breakindent=0pt,
prebreak=\mbox{\tiny$\searrow$},
postbreak=\mbox{{\color{gray}$\cdots$}},
keywordstyle=\bfseries,
stepnumber=1,
language=C++,
mathescape=false,
alsoletter={\\,/,*},
morekeywords={\\brief,\\return,\\param, Dune, Eigen, MatrixXd, VectorXd, assert, Zero},
literate={\\f}{}0,
basicstyle={\ttfamily \small },
breaklines=true,
stepnumber=1,
keywordstyle=\bfseries,
mathescape=true,
morekeywords={\\brief,\\return,\\param, Dune, Eigen, MatrixXd, VectorXd, assert, Zero},
numbers=left,
numberstyle=\color{gray},
postbreak=\mbox{{\color{gray}$\cdots$}},
postbreak=\mbox{{\color{gray}$\cdots$}},
prebreak=\mbox{\tiny$\searrow$},
prebreak=\mbox{\tiny$\searrow$},
showstringspaces=false,
stringstyle=\color{gray},
stepnumber=1,
stepnumber=1,
stringstyle=\color{gray},
stringstyle=\textit,
tabsize=2,
xleftmargin=4.2pt,
stepnumber=1,
frame=lb,
}
\lstdefinestyle{MATLAB}{
language=Matlab,
mathescape=false,
basewidth=0.58em,
basicstyle={\ttfamily \small},
breakindent=0pt,
......@@ -120,15 +98,14 @@
frame=lb,
keywords={function, while, for, break, end, properties, events},
keywordstyle=\bfseries,
language=Matlab,
mathescape=false,
numbers=left,
numberstyle=\color{gray},
postbreak=\mbox{{\color{gray}$\cdots$}},
postbreak=\mbox{{\color{gray}$\cdots$}},
prebreak=\mbox{\tiny$\searrow$},
prebreak=\mbox{\tiny$\searrow$},
showstringspaces=false,
stepnumber=2,
stepnumber=2,
stringstyle=\color{gray},
tabsize=2,
xleftmargin=4.2pt,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment