using latex on medium code example

Example 1: latex include pdf

\usepackage{pdfpages}

%To include all the pages in the PDF file:
%[pages=-] includes the whole file, range can be defined by [pages= 2-6]
\includepdf[pages=-]{myfile.pdf}

%To include just the first page of a PDF:
\includepdf[pages={1}]{myfile.pdf}

Example 2: basic latex document

\documentclass{article}

\title{My first document}
\date{2013-09-01}
\author{John Doe}

\begin{document}
  \maketitle
  \newpage

  Hello World!
\end{document}

Tags:

Misc Example