forked from ICCP/coding-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoding_notes.tex
More file actions
151 lines (127 loc) · 4.38 KB
/
coding_notes.tex
File metadata and controls
151 lines (127 loc) · 4.38 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
\documentclass[nofonts, notoc, debug]{tufte-book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{cag}
\usepackage{float}
%\usepackage{geometry}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{listings}
\usepackage{makeidx}
\usepackage{marvosym}
\usepackage{microtype}
\usepackage{nag}
\usepackage[all]{nowidow}
%\usepackage{thumbs}
\usepackage{titlepic}
%\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
%\usepackage{arevmath}
\usepackage{lmodern}
\usepackage{bera}
\usepackage{hyperref}
\usepackage{cleveref} % Must come after hyperref
%\geometry{showframe}% for debugging purposes -- displays the margins
%\pagestyle{fancy}
%\geometry{a4paper} % May funkify floating listings
%\definecolor{TUBlue}{RGB}{61,152,222}
%\definecolor{SpartanGreen}{RGB}{24,69,59}
%\pretolerance=10000
\crefname{lstlisting}{listing}{listings}
\Crefname{lstlisting}{Listing}{Listings}
\hypersetup{
colorlinks=true,
citecolor=Blue,
linkcolor=Blue,
urlcolor=Green
}
\lstset{
language=fortran,
basicstyle=\ttfamily,
commentstyle=\itshape\color{Blue},
keywordstyle=\bfseries\color{DarkRed},
stringstyle=\color{Magenta},
columns=fixed,
numbers=left,
numberstyle=\footnotesize\color{lightgray},
numberblanklines=true,
showstringspaces=false,
caption=\lstname,
firstnumber=auto,
frame=single,
rulesepcolor=\color{black},
gobble=2 % Allow indentation in LaTeX source for readibility
}
\lstdefinestyle{prompt}{
language=bash,
caption=,
commentstyle=\itshape\color{gray},
keywordstyle=\ttfamily,
stringstyle=,
numbers=none,
frame=none,
breaklines=false,
}
\newcommand{\keyword}[1]{\texttt{\bfseries\color{DarkRed}#1}}
\newcommand{\str}[1]{\texttt{\color{Magenta}#1}}
\newcommand{\Chapter}[2]{\chapter[#1]{#1\\[-1.5ex]\Large\itshape#2}}
\renewenvironment{quote}{\list{}{\leftmargin=4\parindent}\item\relax}{\endlist}
\makeindex
%\titlespacing*{\chapter}{0pt}{50pt}{40pt} % defaults set by tufte-latex
\titlespacing*{\chapter}{0pt}{50pt}{10pt} % much less floaty whitespace
\title{ICCP Coding Manual}
\author{Connor Glosser, Jenni Portman, Jos Seldenthuis, \\
Chris Verzijl, Erin McGarrity, and Jos Thijssen}
\titlepic{
\begin{figure}[b]
\centering
\includegraphics[width=0.33\pdfpagewidth]{figures/MSU_logo.pdf} \hfill
\includegraphics[width=0.33\pdfpagewidth]{figures/TU_logo.pdf}
\end{figure}
}
\begin{document}
\maketitle
%\frontmatter
\pagestyle{empty}
\newpage\
\null\
\vfill
\begin{fullwidth}
\begin{center}
\includegraphics[width=0.15\textwidth]{figures/by-nc-sa.eps}
This work, including its figures and source code (where applicable), is
licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0
International License. To view a copy of this license, visit
\url{http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_US}.
\end{center}
\end{fullwidth}
\pagestyle{fancy}
\tableofcontents
%\lstlistoflistings
\include{chapters/Introduction}
\mainmatter
\part{The Basics}
\include{chapters/Getting_your_toes_wet}
\include{chapters/Structuring_your_code}
\include{chapters/The_magic_of_makefiles}
\include{chapters/Debugging}
\include{chapters/Coding_style}
\include{chapters/Revision_control}
\part{Advanced Numerics \& Visualization}
\include{chapters/Optimization}
\include{chapters/Random_numbers}
\include{chapters/Linear_algebra}
\include{chapters/Plotting_with_plplot}
\include{chapters/Parallel_computing}
\backmatter
\Chapter{Further reading}{a.k.a\ programmer humor}
\begin{itemize}
\item \href{http://www.pbm.com/~lindahl/real.programmers.html}{Real programmers don't use Pascal} (\textbf{Mandatory})
\item \href{https://gist.github.com/alanbriolat/3135713#file-fortran_hell-f95}{The many faces of function definition in Fortran 95} (\textbf{Mandatory})
\item \href{http://www.codinghorror.com/blog/2006/05/the-ten-commandments-of-egoless-programming.html}{The Ten Commandments of Egoless Programming}
\item \href{http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html}{A Brief, Incomplete, and Mostly Wrong History of Programming}
\item \href{https://www.gnu.org/fun/jokes/ed-msg.html}{\texttt{Ed, man! !man ed}}
\item \href{http://blog.sanctum.geek.nz/vim-koans/}{Vim k\={o}ans}
\end{itemize}
\printindex
\end{document}