on master help sign in
Various 'beneath the hood' improvements made to the tutorial project.

+ Moved content to sub- directory. + Updated Makefile + Updated latex packages + Modern versions of font packages + nagging support for outdated LaTeX commands and packages. + Better font spacing and language support. + Added support for latexmk artifacts within .gitignore. + Added support for git and auto-fetching version info from tags. + Currently version info is hard coded. + If the correct hook is added the fetching can be automated.

commit87f17dea9228e2a2c004a590b2e9dc56b2ba416b authorJan de Muijnck-Hughes <jfdm@st-andrews.ac.uk> dateTue 12 Nov 2013, 10:22 (13 years ago) parentcc48d31
16 files changed+35−22
.gitignore+2 tutorial/Makefile+1−4 tutorial/classes.tex → tutorial/content/classes.tex tutorial/conclusions.tex → tutorial/content/conclusions.tex tutorial/dsl.tex → tutorial/content/dsl.tex tutorial/interp.tex → tutorial/content/interp.tex tutorial/intro.tex → tutorial/content/intro.tex tutorial/miscellany.tex → tutorial/content/miscellany.tex tutorial/modules.tex → tutorial/content/modules.tex tutorial/provisional.tex → tutorial/content/provisional.tex tutorial/starting.tex → tutorial/content/starting.tex tutorial/syntax.tex → tutorial/content/syntax.tex+1−1 tutorial/theorems.tex → tutorial/content/theorems.tex tutorial/typesfuns.tex → tutorial/content/typesfuns.tex tutorial/views.tex → tutorial/content/views.tex tutorial/idris-tutorial.tex+31−17
.gitignore+2
@@ -21,3 +21,5 @@ tutorial/*.blg
2121tutorial/*.log
2222tutorial/*.out
2323tutorial/*.toc
24+tutorial/*.fdb_latexmk
25+tutorial/*.fls
tutorial/Makefile+1−4
@@ -2,9 +2,7 @@ PAPER = idris-tutorial
22
33all: ${PAPER}.pdf
44
5−TEXFILES = ${PAPER}.tex intro.tex starting.tex miscellany.tex typesfuns.tex \
6− classes.tex modules.tex interp.tex views.tex theorems.tex \
7− provisional.tex syntax.tex conclusions.tex miscellany.tex dsl.tex
5+TEXFILES = ${PAPER}.tex content/*.tex
86
97DIAGS =
108
@@ -13,7 +11,6 @@ SOURCES = ${TEXFILES} ${DIAGS} macros.ltx library.ltx literature.bib
1311DITAA = java -jar ~/Downloads/ditaa.jar
1412
1513${PAPER}.pdf: ${SOURCES}
16−# dvipdf ${PAPER}.dvi
1714 pdflatex ${PAPER}
1815 -bibtex ${PAPER}
1916 -pdflatex ${PAPER}
tutorial/classes.tex → tutorial/content/classes.texrenamed

The content is the same.

tutorial/conclusions.tex → tutorial/content/conclusions.texrenamed

The content is the same.

tutorial/dsl.tex → tutorial/content/dsl.texrenamed

The content is the same.

tutorial/interp.tex → tutorial/content/interp.texrenamed

The content is the same.

tutorial/intro.tex → tutorial/content/intro.texrenamed

The content is the same.

tutorial/miscellany.tex → tutorial/content/miscellany.texrenamed

The content is the same.

tutorial/modules.tex → tutorial/content/modules.texrenamed

The content is the same.

tutorial/provisional.tex → tutorial/content/provisional.texrenamed

The content is the same.

tutorial/starting.tex → tutorial/content/starting.texrenamed

The content is the same.

tutorial/syntax.tex → tutorial/content/syntax.texrenamed+1−1
@@ -118,5 +118,5 @@ Note that we have used the \texttt{\{x\}} form to state that \texttt{x} represen
118118a bound variable, substituted on the right hand side. We have also put \texttt{"in"} in
119119quotation marks since it is already a reserved word.
120120
121−\input{dsl}
121+\input{./content/dsl}
122122
tutorial/theorems.tex → tutorial/content/theorems.texrenamed

The content is the same.

tutorial/typesfuns.tex → tutorial/content/typesfuns.texrenamed

The content is the same.

tutorial/views.tex → tutorial/content/views.texrenamed

The content is the same.

tutorial/idris-tutorial.tex+31−17
@@ -1,20 +1,34 @@
1−\documentclass{article}
1+\documentclass[british, final]{article}
2+
3+\usepackage[l2tabu,orthodox]{nag}
4+\usepackage{fixltx2e}
5+\usepackage{babel}
6+\usepackage[iso]{isodate}
7+\usepackage[utf8]{inputenc}
8+\usepackage[T1]{fontenc}
9+\usepackage[protrusion=true, expansion=true]{microtype}
10+\usepackage[strict=true]{csquotes}
11+\usepackage{xspace}
12+
13+\usepackage{mathpazo}
14+\usepackage[scaled=0.95]{helvet}
15+\usepackage{courier}
216
317\usepackage{fullpage}
4−\usepackage{palatino}
5−\usepackage{url}
618\usepackage{fancyvrb}
719\usepackage{hyperref}
20+\usepackage[missing=0.9.10]{gitinfo}
821
922\input{conf.ltx}
1023\input{macros.ltx}
1124\input{library.ltx}
1225
1326\newcommand{\Idris}{\textsc{Idris}}
14−\newcommand{\version}{0.9.10}
27+\newcommand{\version}{\gitVtagn}
28+\newcommand{\email}[1]{\texttt{\href{mailto:#1}{#1}}}
1529
1630\title{Programming in \Idris{}: a tutorial}
17−\author{Edwin Brady \\ \url{eb@cs.st-andrews.ac.uk}}
31+\author{Edwin Brady \\ \email{eb@cs.st-andrews.ac.uk}}
1832
1933\begin{document}
2034
@@ -22,18 +36,18 @@
2236
2337\tableofcontents
2438
25−\input{intro}
26−\input{starting}
27−\input{typesfuns}
28−\input{classes}
29−\input{modules}
30−\input{interp}
31−\input{views}
32−\input{theorems}
33−\input{provisional}
34−\input{syntax}
35−\input{miscellany}
36−\input{conclusions}
39+\input{./content/intro}
40+\input{./content/starting}
41+\input{./content/typesfuns}
42+\input{./content/classes}
43+\input{./content/modules}
44+\input{./content/interp}
45+\input{./content/views}
46+\input{./content/theorems}
47+\input{./content/provisional}
48+\input{./content/syntax}
49+\input{./content/miscellany}
50+\input{./content/conclusions}
3751
3852\bibliographystyle{abbrv}
3953\bibliography{literature.bib}