forked from grame-cncm/faust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatexheader.tex
65 lines (59 loc) · 1.67 KB
/
latexheader.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[usenames]{color}
\usepackage{listings}
\usepackage{supertabular}
\usepackage{amsmath}
\usepackage{latexsym, amssymb}
\usepackage{breqn}
% No indent
\setlength{\parindent}{0pt}
% Make LaTeX output a dot when typing an asterisk
\DeclareMathSymbol{*}{\mathbin}{symbols}{"01}
% lstlistings setup
\definecolor{yobg}{rgb}{0.9,0.9,1}
\definecolor{yotxt}{rgb}{0.01,0.01,0.52} % a dark blue.
\definecolor{mylstbg}{rgb}{0.98,0.98,0.98} % a really pale grey.
\definecolor{mylstcmt}{rgb}{0.01,0.52,0.01} % a dark green.
\definecolor{mylstdoc}{rgb}{0.80,0.30,0.80} % a medium pink.
\lstset{%
language=C++,
numbers=left,%none,
tabsize=4,
frame=single,
breaklines=true,
numberstyle=\tiny\ttfamily,
backgroundcolor=\color{mylstbg},
basicstyle=\scriptsize\ttfamily,
commentstyle=\slshape\color{mylstcmt}, %\itshape,
frameround=tttt,
columns=flexible, %fixed,
showstringspaces=false,
emptylines=2,
inputencoding=utf8,
extendedchars=true,
literate= {á}{{\'a}}1
{à}{{\`a}}1
{ä}{{\"a}}1
{â}{{\^a}}1
{é}{{\'e}}1
{è}{{\`e}}1
{ë}{{\"e}}1
{ê}{{\^e}}1
{ï}{{\"i}}1
{î}{{\^i}}1
{ö}{{\"o}}1
{ô}{{\^o}}1
{è}{{\`e}}1
{ù}{{\`u}}1
{û}{{\^u}}1
{ç}{{\c{c}}}1
{Ç}{{\c{C}}}1,
emph={component, declare, environment, import, library, process},
emph={[2]ffunction, fconstant, fvariable},
emph={[3]button, checkbox, vslider, hslider, nentry, vgroup, hgroup, tgroup, vbargraph, hbargraph, attach},
emphstyle=\color{yotxt}, %\underline, %\bfseries,
morecomment=[s][\color{mylstdoc}]{<mdoc>}{</mdoc>},
rulecolor=\color{black}
}