Apr 19, 2026 1.9 KB x-latex
1\documentclass[12pt]{article}
2\usepackage[utf8]{inputenc}
3\usepackage{microtype}
4\usepackage{hyperref}
5
6\title{LaTeX Basics}
7\author{sublimated}
8\date{2026}
9
10\begin{document}
11\maketitle
12
13\section{Headings}
14
15Sections create the document hierarchy. LaTeX supports several levels.
16
17\subsection{Subsection}
18
19Use \verb|\subsection| for the second level.
20
21\subsubsection{Subsubsection}
22
23And \verb|\subsubsection| for the third.
24
25\paragraph{Paragraph heading.} The fourth level is inline.
26
27\section{Text Formatting}
28
29\textbf{Bold text} uses \verb|\textbf{}|.
30\textit{Italic text} uses \verb|\textit{}|.
31\texttt{Monospace text} uses \verb|\texttt{}|.
32\underline{Underlined text} uses \verb|\underline{}|.
33\textsc{Small Caps} uses \verb|\textsc{}|.
34
35Combine them: \textbf{\textit{bold italic}}, \textit{\texttt{italic mono}}.
36
37\section{Lists}
38
39\subsection{Unordered}
40
41\begin{itemize}
42 \item First item
43 \item Second item
44 \item Third item with nested list:
45 \begin{itemize}
46 \item Nested item one
47 \item Nested item two
48 \end{itemize}
49\end{itemize}
50
51\subsection{Ordered}
52
53\begin{enumerate}
54 \item First step
55 \item Second step
56 \item Third step
57\end{enumerate}
58
59\subsection{Description}
60
61\begin{description}
62 \item[LaTeX] A document preparation system
63 \item[Typst] A modern alternative to LaTeX
64 \item[Markdown] Lightweight markup language
65\end{description}
66
67\section{Quotations}
68
69\begin{quote}
70The purpose of computing is insight, not numbers.
71
72--- Richard Hamming
73\end{quote}
74
75\section{Links}
76
77Visit \href{https://sublimated.com}{sublimated.com} for more.
78
79See also \url{https://www.latex-project.org/}.
80
81\section{Footnotes}
82
83LaTeX handles footnotes automatically.\footnote{This appears at the bottom of the page.}
84
85Multiple footnotes are numbered sequentially.\footnote{Like this second one.}
86
87\section{Verbatim}
88
89\begin{verbatim}
90This is verbatim text.
91 Whitespace is preserved.
92 No commands are interpreted: \textbf{this stays literal}.
93\end{verbatim}
94
95\end{document}