LaTeX 是一种基于 TeX 的排版系统,广泛用于生成科学和数学文档。以下是一些 LaTeX 的基本教程:

基础用法

  1. 安装 LaTeX

    • Windows 用户可以使用 MiKTeX 或 TeX Live。
    • macOS 用户可以使用 MacTeX。
    • Linux 用户可以使用 TeX Live。
  2. 基本文档结构

    \documentclass{article}
    \begin{document}
    Hello, world!
    \end{document}
    
  3. 插入公式 使用 $ 符号可以插入行内公式,使用 $$ 可以插入独立公式。

高级功能

  1. 表格 LaTeX 提供了强大的表格排版功能。

    \begin{table}[h]
    \centering
    \begin{tabular}{|c|c|c|}
    \hline
    Column 1 & Column 2 & Column 3 \\
    \hline
    A & B & C \\
    \hline
    \end{tabular}
    \caption{Sample Table}
    \end{table}
    
  2. 图片 使用 \includegraphics 命令可以插入图片。

    \usepackage{graphicx}
    \includegraphics[width=0.5\textwidth]{example-image}
    
  3. 交叉引用 使用 \label\ref 命令可以实现交叉引用。

    Section \ref{sec:example} provides an example.
    \section{Example}
    This is an example section.
    \label{sec:example}
    

学习资源

希望这些教程能帮助你更好地学习 LaTeX!📚

LaTeX