Skip to content

Instantly share code, notes, and snippets.

@Balletie
Created April 26, 2016 08:29
Show Gist options
  • Save Balletie/954e7529382249b862fe49f2c9f1e40e to your computer and use it in GitHub Desktop.
Save Balletie/954e7529382249b862fe49f2c9f1e40e to your computer and use it in GitHub Desktop.
diff --git a/research/.latexmkrc b/research/.latexmkrc
index 41d7a69..ecf1299 100644
--- a/research/.latexmkrc
+++ b/research/.latexmkrc
@@ -1,2 +1,2 @@
$pdf_mode = 1;
-$pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode %O %S';
+$pdflatex = 'xelatex -synctex=1 -shell-escape -interaction=nonstopmode %O %S';
diff --git a/research/01-problem.tex b/research/01-problem.tex
index 361c39b..5f8f123 100644
--- a/research/01-problem.tex
+++ b/research/01-problem.tex
@@ -36,9 +36,9 @@ REPL comes from the Lisp functions that implement a REPL's functionality:
Assuming the individual functions listed previously exist, a REPL can be created
in a single line of code simply by combining the functions:
-\begin{lstlisting}
+\begin{pyglist}[language=lisp]
(loop (print (eval (read))))
-\end{lstlisting}
+\end{pyglist}
Part of the semantic differences between the different names for an interactive
programming environment is Lisp's homoiconicity. In Lisp, the structure of
@@ -120,11 +120,11 @@ enable a persistent history of input and output.
\paragraph{Multiline input editing} Constructs in a programming language are
not necessarily bound to one line; a method for example often has the following
structure:
-\begin{lstlisting}
+\begin{pyglist}
<Type> <ID> ([<ID> ","]*) {
[<Statement>]+
}
-\end{lstlisting}
+\end{pyglist}
One should be able to type these constructs in habitual way. Therefore, REPLs
provide multiline input editors that recognise incomplete code and promptly
switch to a multiline environment when required.
diff --git a/research/main.tex b/research/main.tex
index 52abd28..c332ba5 100644
--- a/research/main.tex
+++ b/research/main.tex
@@ -8,22 +8,11 @@
\usepackage{caption}
\usepackage{subcaption}
\usepackage{enumitem}
-\usepackage{listings}
\usepackage{graphicx}
\graphicspath{{img/}}
\PassOptionsToPackage{sectionbib}{natbib}
-\lstset{%
- basicstyle=\ttfamily,
- backgroundcolor=\color{white},
- breaklines=true,
- captionpos=b,
- commentstyle=\color{gray},
- frame=single,
- keepspaces=true,
- keywordstyle=\color{tudelft-cyan},
- rulecolor=\color{black},
-}
+\usepackage{verbments}
% Use “\cite{NEEDED}” to get Wikipedia-style “citation needed”.
\usepackage{ifthen}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment