-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
83 lines (68 loc) · 2.14 KB
/
preamble.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
\documentclass[11pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=3cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rhead{OpenSHMEM Analyzer Guide}
\lhead{}
\cfoot{\thepage}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{fancybox}
\usepackage{hyperref}
\usepackage[parfill]{parskip}
\usepackage[usenames,dvipsnames,svgnames,x11names]{xcolor}
\definecolor{ListingBG}{rgb}{0.91,0.91,0.91}
\usepackage{listings}
\lstset {
basicstyle=\scriptsize\ttfamily,
backgroundcolor=\color{ListingBG},
keywordstyle=\color{blue}\textbf,
frame=tlBR,
language=C,
}
\lstdefinelanguage{OSH+C}[]{C}{
classoffset=1,
morekeywords={
_SHMEM_BCAST_SYNC_SIZE, _SHMEM_SYNC_VALUE,
start_pes,
my_pe, _my_pe, shmem_my_pe,
num_pes, _num_pes, shmem_n_pes,
shmem_int_p, shmem_short_p, shmem_long_p,
shmem_int_put, shmem_short_put, shmem_long_put,
shmem_float_put, shmem_double_put, shmem_longdouble_put,
shmem_int_g, shmem_short_g, shmem_long_g,
shmem_int_get, shmem_short_get, shmem_long_get,
shmem_float_get, shmem_double_get, shmem_longdouble_get,
shmem_put32, shmem_put64,
shmem_get32, shmem_get64,
shmem_iput32, shmem_iput64,
shmem_iget32, shmem_iget64,
shmem_barrier_all, shmem_barrier,
shmalloc, shfree, shrealloc,
shmem_broadcast32, shmem_broadcast64,
shmem_short_inc, shmem_int_inc, shmem_long_inc,
shmem_short_add, shmem_int_add, shmem_long_add,
shmem_short_finc, shmem_int_finc, shmem_long_finc,
shmem_short_fadd, shmem_int_fadd, shmem_long_fadd,
shmem_set_lock, shmem_test_lock, shmem_clear_lock,
shmem_long_sum_to_all,
shmem_complexd_sum_to_all,
shmem_ptr,
},
keywordstyle=\color{DarkOrange}\textbf,
classoffset=0,
sensitive=true
}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\usepackage{xspace}
\newcommand{\openshmem}{\mbox{OpenSHMEM}\xspace}
\usepackage{alltt}
\usepackage[nottoc]{tocbibind}
% TOC had section names splat against numbers, this adds space
% \usepackage{tocstyle}
% \setcounter{secnumdepth}{3}
% \setcounter{tocdepth}{2}
\usepackage[toc,page]{appendix}