Skip to content

Commit

Permalink
Initial import.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Nov 4, 2024
0 parents commit 429bf6b
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: dpp-notes.tex
latexmk_shell_escape: true

- name: upload PDF
uses: actions/upload-artifact@v4
with:
name: PDF
path: dpp-notes.pdf

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest PDF"
files: |
dpp-notes.pdf
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*.aux
/*.bbl
/*.blg
/*.log
/*.out
/*.pdf
/*.thm
/*.toc
/*.fdb_latexmk
/*.fls
/*.sty
/*.loe
/_region_.tex
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: dpp-notes.pdf
notes.pdf:
latexmk -pdf dpp-notes.tex
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Course Notes for Data Parallel Programming

[The most recent PDF.](https://github.com/diku-dk/dpp-notes/releases/download/latest/dpp-notes.pdf)

If you find any typos, errors, or incomprehensible explanations,
please open an issue above.
Empty file added bibliography.bib
Empty file.
39 changes: 39 additions & 0 deletions dpp-notes.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
\documentclass[oneside]{memoir}

\input{preample.tex}

\title{Course notes for Data Parallel Programming}
\author{Troels Henriksen} \date{\today}

\begin{document}

\maketitle

\section{Meta}

These notes are written to supplement the other reading material in
the course \textit{Data Parallel Programming}. Consider them
terminally in-progress. These notes are not a textbook, do not cover
the entire curriculum, and might not be comprehensible if isolated
from the course and its other teaching activities.

These notes are made available under the terms of the \textit{Creative
Commons Attribution-ShareAlike 4.0 International Public License}.

\newpage
\tableofcontents

\newpage
\listoftheorems[title=Definitions,ignoreall,show={definition}]

\newpage

\bibliographystyle{plain}
\bibliography{bibliography}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
33 changes: 33 additions & 0 deletions futhark-listings.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
% A listings language definition for Futhark.

\lstdefinelanguage{futhark}
{
% list of keywords
morekeywords={
do,
else,
for,
if,
in,
include,
let,
loop,
then,
type,
val,
while,
with,
module,
def,
entry,
local,
open,
import,
assert,
match,
case,
},
sensitive=true, % Keywords are case sensitive.
morecomment=[l]{--}, % l is for line comment.
morestring=[b]" % Strings are enclosed in double quotes.
}
2 changes: 2 additions & 0 deletions notation.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
% General notation macros that may also be useful when authoring
% slides or other material.
58 changes: 58 additions & 0 deletions preample.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
% General stuff. The idea is that this preample can also be used to
% compile each chapter separately.

\usepackage[utf8]{inputenc}

\usepackage{ntheorem}
\usepackage{amsmath}[ntheorem]
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{thmtools}

\input{notation.tex}

\usepackage[table]{xcolor}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{todonotes}
\usepackage{url}
\usepackage{hyperref}

\usepackage{cleveref}

\usepackage{couriers}
\usepackage{listings}
\lstset{basicstyle=\ttfamily}
\input{futhark-listings.tex}

% Teach cleveref about listings.
\crefname{lstlisting}{listing}{listings}
\Crefname{lstlisting}{Listing}{Listings}

\newtheorem{definition}{Definition}[chapter]
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{example}{Example}[chapter]

% Tikz stuff
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shapes.multipart}
\usetikzlibrary{shapes.arrows}
\usetikzlibrary{chains}
\usetikzlibrary{arrows}
\usetikzlibrary{matrix}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{intersections}
\usetikzlibrary{cd}
\usetikzlibrary{fit}
\usetikzlibrary{backgrounds}
\usetikzlibrary{decorations.pathreplacing}

\setsecnumdepth{subsubsection}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "notes"
%%% End:

0 comments on commit 429bf6b

Please sign in to comment.