Learn LaTeX by Examples
LaTeX2eLaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents.
These examples cover the fundamentals of LaTeX, from setting up the document structure and formatting text to creating complex mathematical equations, tables, and bibliographies.
Document Class
The `\documentclass` command is the foundation of any LaTeX document. This sample explains how to choose the right class and set global options.
Page Layout
Controlling margins and page orientation is essential. This example demonstrates how to use the `geometry` package to customize the page layout.
Text Formatting
LaTeX separates content from presentation. This sample shows commands for bold, italic, and typewriter fonts, as well as font sizing.
Math Mode
LaTeX is famous for its mathematical typesetting. This example introduces inline math and display math modes.
Equations
The `equation` environment creates numbered equations that can be referenced. This sample shows how to label and align multi-line equations.
Lists
LaTeX supports unordered (bulleted) and ordered (numbered) lists. This example demonstrates `itemize`, `enumerate`, and nested lists.
Tables
Tables organize data in rows and columns. This sample shows the `tabular` environment, column alignment, and horizontal lines.
Images
Including graphics requires the `graphicx` package. This example demonstrates how to include, scale, and caption images.
Footnotes
Footnotes provide additional context without cluttering the main text. This sample shows how to add footnotes.
References
Managing citations and bibliographies is a core strength of LaTeX. This example shows the basic `thebibliography` environment.

