LaTeX Tutorial
LaTeX (pronounced "Lay-tech" or "Lah-tech") is a system for document typesetting, especially good at producing high-quality text and mathematical formulas.
LaTeX is based on the TeX typesetting system, developed by Leslie Lamport, with the aim of providing an easy way to use TeX for complex document typesetting, and is widely used especially in academia.
Who should read this tutorial?
Whether you are a student, researcher, engineer, or publishing professional, learning LaTeX can bring you significant efficiency gains and professional typesetting results.
LaTeX can meet the following needs:
-
Users who need to handle complex formulas, figures, and code.
-
Users with high requirements for document typesetting quality.
-
Users who need to write long or technical documents.
-
Users who want to improve document-writing efficiency and professionalism.
LaTeX Examples
For example, here is a simple LaTeX document example:
Example
\
documentclass
{
article
}
% document class
\
title
{
My First LaTeX Document
}
% title
\
author
{
Author
}
% author
\
date
{
\today
}
% date
\begin
{
document
}
\
maketitle
% generate title
\
section
{
Introduction
}
% section
This is my first LaTeX document!
\
% line break
This is a simple paragraph.
\
section
{
Math Formulas
}
This is an inline formula:
$E = mc^2$
.
\
% inline formula
This is a display formula:
[
\int_a^b f(x) \, dx
\
]
\end
{
document
}
Here is a simple LaTeX math formula document example:
Example
Inline formula:
\
( E = mc^2
\
)
Display formula:
[
\int_a^b f(x) , dx \
]
Matrix:
[
\begin{pmatrix}
1 & 2 \
3 & 4
\end{pmatrix}
]
System of equations: \[ \begin{cases} x + y = 5 \\ 2x - y = 1 \end{cases } \
]
Try it »