-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpplst.tex
46 lines (40 loc) · 889 Bytes
/
cpplst.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\usepackage{listings}
\lstset{
language=[ISO]C++,
columns=flexible,
identifierstyle=\itshape,
%
belowcaptionskip=1\baselineskip,
breaklines=true,
xleftmargin=\parindent,
language=C++,
showstringspaces=false,
basicstyle=\small,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{brown},
columns=flexible,
% inputenconding=utf8,
extendedchars=true,
%
morekeywords=[1]{constexpr,nullptr,alignof,alignas,decltype,noexcept,override,final,concept,expects,ensures,assert,axiom,audit},
literate={%
{¿}{{?`}}1
{¡}{{!`}}1
{á}{{\'a}}1
{é}{{\'e}}1
{í}{{\'i}}1
{ó}{{\'o}}1
{ú}{{\'u}}1
{ñ}{{\~n}}1
}
}
\lstset{
}
\newcommand{\cppkey}[1]{%
{\color{green!40!black}\textbf{#1}}%
}
\newcommand{\cppid}[1]{%
{\color{blue}\textbf{#1}}%
}