LaTeX Tutorial

LaTeX (pronounced "Lay-tech" or "Lah-tech") is a system for document typesetting, particularly good at producing high-quality text and mathematical formulas.

LaTeX is based on the TeX typesetting system and was developed by Leslie Lamport, aiming to provide a convenient way to use TeX for typesetting complex documents, especially widely used in academia.

Who is this tutorial for?

Whether you are a student, researcher, engineer, or publishing professional, learning LaTeX can bring you significant efficiency improvements and professional typesetting results.

LaTeX can meet the following needs:

  • Users who need to handle complex formulas, charts, and code.

  • Users with high requirements for document typesetting quality.

  • Users who need to write long documents or technical documents.

  • Users who want to improve document writing efficiency and professionalism.

LaTeX Examples

For example, the following 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} % Chapter
This is my first LaTeX document!\\ % Line Break
This is a simple paragraph.

\section{Mathematical Formulas}
This is an inline formula:$E = mc^2$。\\ % Inline Formula
This is a display formula:
\[
\int_a^b f(x) \, dx
\
]
\end{document}

The following is a simple LaTeX math formula document example:

Example

<!-- Inline Formula -->
<p>Inline formula:\( E = mc^2 \)</p>

<!-- Display Formula -->
<p>Display formula:\[ \int_a^b f(x) \, dx \]</p>

<!-- Matrix -->
<p>Matrix:
    \[
    \begin{pmatrix}
        1 & 2 \\
        3 & 4
    \end{pmatrix}
    \
]
</p>

<!-- System of Equations -->
<p>Equations:
    \[
    \begin{cases}
        x + y = 5 \\
        2x - y = 1
    \end{cases
}
    \
]
</p>

Try it »
Other Extensions