f36590c9f4
Also added a few more section to make beamer and article more compatible.
70 lines
1.2 KiB
TeX
70 lines
1.2 KiB
TeX
\documentclass[12pt,a4paper,fleqn,oneside]{article}
|
|
|
|
% packages
|
|
\usepackage{xcolor}
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage{amsmath}
|
|
\usepackage{amsfonts}
|
|
\usepackage{amssymb}
|
|
\usepackage{graphicx}
|
|
\usepackage{hyperref}
|
|
\usepackage{listings}
|
|
\usepackage{minted}
|
|
\usepackage{xparse}
|
|
|
|
% for \verb inside \item
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[Q=yes]{examplep}
|
|
|
|
% package configuration
|
|
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
|
|
\usemintedstyle{friendly}
|
|
\newminted{haskell}{frame=single,numbers=left,samepage=true}
|
|
\newminted{cpp}{frame=single,numbers=left}
|
|
\newminted{c}{frame=single,numbers=left}
|
|
\renewcommand{\theFancyVerbLine}{\ttfamily
|
|
\textcolor[rgb]{0.0,0.0,0.0}{\footnotesize
|
|
\oldstylenums{\arabic{FancyVerbLine}}}}
|
|
|
|
% macros and environments
|
|
\NewDocumentCommand {\slide} { m O{} O{} }
|
|
{\input{#1}}
|
|
\newcommand{\slidetoc}{}
|
|
\newcommand{\code}[1]{\texttt{#1}}
|
|
\newcommand{\pause}{}
|
|
\newcommand{\slidep}{}
|
|
\newenvironment{itemizep}
|
|
{\begin{itemize}}
|
|
{\end{itemize}}
|
|
|
|
% color definition
|
|
\definecolor{solarized}{HTML}{002B36}
|
|
\definecolor{mygreen}{rgb}{0,0.6,0}
|
|
|
|
|
|
\begin{document}
|
|
|
|
% title page information
|
|
\author{Julian Ospald}
|
|
\title{Haskell: introduction}
|
|
|
|
\maketitle
|
|
|
|
\tableofcontents
|
|
|
|
\input{./VL1_document_structure.tex}
|
|
|
|
\end{document}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|