LaTeX – minimum working example

Sometimes you just want a simple latex document without all the other frills and whistles.

Here’s the most basic, simplest latex document

A Hello World example for latex if you will:

% Specifies the type of document you have.
\documentclass{article}
 
% Start of the document.
\begin{document}
 
% Your content.
Hello World! 
 
% End of the document.
\end{document}

Save this as your latex document, compile it, and you will have a small PDF that says Hello World.

A simple page, ready for you to start typing!

Leave a Reply