Create your first document!
Basic Latex Layout
Latex is a very useful and creative tool for creating documents, and it is not as complicated as you may think.
First of all, in order to make the document exist and make
its preview work when you activate it (on-key "command" + "T"), there is a specific, basic format
that you must follow. When I say activate the document, I mean to let the PDF file pop up, of the corresponding code you have written, using the command written before. Below, there is the code
and the corresponding PDF file:
CODE
\documentclass{article}
\begin{document}
Hello World! This is a very simple, Latex document.
\end{document}
The preamble
As shown above, the text you write is written after the
\begindocument\
section,
but before it, there is the preamble, which is the section where
you define the document type, load packages and insert parameters.On this section, it is even possible to put the
\title{First Latex Document}
,
\author{Name}
and \date{November 2nd}
. When you want to insert
this information on the actual page, the code that you should insert, after the \begin{document}
section, is
\maketitle.
CODE
\documentclass{article}
\title{My First Latex Document!}
\author{Bob Malcom}
\date{November 2, 2018}
\begin{document}
\maketitle
Hello World! This is a very simple, Latex document.
\end{document}