## The simple and basic structure

Below you can view the simple latex document structure and template. This is a basic Latex template for writing a document.

\documentclass{class name}
\begin{document}
type the text here.........
\end{document}

The first command \documentclass{…..} defines the class for the document. In the braces put the class name as per your requirement. The commands in between the \docmunetclass{….} and \beging{document} is called the preamble. The text will be written in the middle of the \begin{document} and \end{document}.

## Document classes

The common Latex document classes are listed here.

• article: used for scientific articles such as journals and conferences
• proc: used for proceeding articles
• book: the purpose is book writing
• report: writing reports, articles, books, etc.
• letter: used for letter writing purpose
\documentclass[11pt, oneside]{article}
\begin{document}
type the text here.........
\end{document}

The text in the [11pt, oneside] is optional. This text is needed when to change the font or page size, single or two-column writing, etc.

## Preamble

The text before the beginning document is called the preamble. Preamble sometime maybe packages. For example, the package for color is needed so, the \usepackage{…} command will be written before the beginning document. Such as

\documentclass{article}
\usepackage{graphicx} % package use for inserting figures
\begin{document}
type the text here.........
\end{document}

The \usepackage{graphicx} is used for inserting images and figures. If this package is not used in the preamble then the file will not be executed. There are many packages for Latex. Read more detail about Latex package

Last Updated on