Latex first document

At a minimum, a LaTeX document consists of:

    \documentstyle{article} 
    preamble 
    \begin{document} 
    body 
    \end{document} 

Example

\documentclass{article}
\begin{document}
The square root of two: $\sqrt{2}$. 
\end{document}

Output

When press Latex run button your output .pdf file is automatically stored in the folder or location where you have saved your .tex file.

latex

Share

You may also like...