Skip to content

Instantly share code, notes, and snippets.

@soonhokong
Created December 11, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soonhokong/3f9ac432ee6673682c2e to your computer and use it in GitHub Desktop.
Save soonhokong/3f9ac432ee6673682c2e to your computer and use it in GitHub Desktop.
test.tex
\documentclass{article}
\usepackage{unixode} % Need to download from https://raw.githubusercontent.com/leanprover/tutorial/master/unixode.sty
\usepackage{minted} % Need to download from https://raw.githubusercontent.com/leanprover/tutorial/master/minted.sty
% Specify local pygments directory. Do the following in your working directory (where test.tex is located)
% hg clone https://bitbucket.org/leanprover/pygments-main && cd pygments-main && python setup.py build & cd ..
\renewcommand{\MintedPygmentize}{./pygments-main/pygmentize}
\setminted{encoding=utf-8}
\usepackage{fontspec}
\setmainfont{FreeSerif}
\setmonofont{FreeMono}
\usepackage{fullpage}
\usepackage{listings}
\begin{document}
\title{Syntax Highlighter Test}
\maketitle
\begin{minted}[mathescape, linenos, numbersep=5pt, frame=lines, framesep=2mm]{Lean}
definition test1 := Σ n, n = 0
definition test2 := bool ≃ bool
definition test3 := Π P, P → ∥ P ∥
\end{minted}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment