added an example on usage

This commit is contained in:
Kjistóf 2017-12-11 23:13:18 +01:00
parent e2f9b70aa4
commit b3fb7b0864

46
example.tex Normal file
View File

@ -0,0 +1,46 @@
\documentclass{article}
\usepackage{latexplate}
\usepackage[english]{babel}
\usepackage{lipsum}
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\sectionfont{\color{cyan}}
\hypersetup
{
colorlinks,
linkcolor={cyan!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
\fancyhead{}
\fancyfoot{}
\pagestyle{fancy}
\fancyhead[L]{}
\fancyhead[R]{\thepage}
\title{\color{cyan}An example document}
\author{dzidza}
\date{\today}
\begin{document}
\maketitle
\thispagestyle{empty}
\cleardoublepage
\microtypesetup{protrusion=false}
\tableofcontents
\microtypesetup{protrusion=true}
\thispagestyle{empty}
\cleardoublepage
\section{Code highlighting}
This is just some \code{inline code}.
\section{Lorem Ipsum}
\lipsum[1-2]
\end{document}