1% ============================================================================
2% hello.tex - Minimal LaTeX Document
3% ============================================================================
4% This is the simplest possible LaTeX document, demonstrating the basic
5% structure required for any LaTeX file.
6%
7% Compilation:
8% pdflatex hello.tex
9%
10% This will produce hello.pdf
11% ============================================================================
12
13% Document class declaration - required for every LaTeX document
14% 'article' is the most common class for short documents
15% Optional parameter [12pt] sets the base font size
16\documentclass[12pt]{article}
17
18% Preamble section - this is where you load packages and define settings
19% For this minimal example, we don't need any additional packages
20
21% The document environment - all content must be inside this
22\begin{document}
23
24% This is the actual content of your document
25Hello World!
26
27% A blank line creates a new paragraph
28This is my first \LaTeX{} document. The \texttt{\textbackslash LaTeX\{\}}
29command produces the special LaTeX logo.
30
31% Some basic formatting examples
32\textbf{Bold text} and \textit{italic text} are easy to create.
33
34% Lists are straightforward
35Here are some reasons to learn LaTeX:
36\begin{itemize}
37 \item Beautiful mathematical typesetting
38 \item Automatic bibliography management
39 \item Professional document formatting
40 \item Platform independent
41\end{itemize}
42
43% End of document
44\end{document}
45
46% ============================================================================
47% Notes:
48% - Lines starting with % are comments and are ignored by LaTeX
49% - Every \begin{...} must have a matching \end{...}
50% - LaTeX handles paragraph spacing, line breaking, and hyphenation automatically
51% - Special characters like %, $, &, #, _, {, } need to be escaped with \
52% ============================================================================