Abstract out article configuration
This commit is contained in:
parent
214c2052de
commit
5b8cc0de65
@ -1,46 +1,6 @@
|
|||||||
\documentclass[12pt,a4paper,fleqn,oneside]{article}
|
\documentclass[12pt,a4paper,fleqn,oneside]{article}
|
||||||
|
|
||||||
% packages
|
\input{../common/article_configuration.tex}
|
||||||
\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}
|
\begin{document}
|
||||||
|
|
||||||
|
40
common/article_configuration.tex
Normal file
40
common/article_configuration.tex
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
% 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}
|
Loading…
Reference in New Issue
Block a user