[LaTeX]LaTeX installation and LaTeX basic syntax

LaTeXEdit installation

texmakerinstallation

sudo apt install texmaker

LaTeXMacro package installation

  1. LaTeXInstall the macro package (unfinished)
    Download the macro package, the address of the mirror station of the Chinese University of Science and Technology latex macro package
    Install the macro package
# 先解压下载的宏包,以ctex.tds.zip示例
unzip ctex.tds.zip
  1. LaTeXLinuxSupport Chinese macro package during installation
sudo apt install texlive-lang-chinese

LaTeXBasic grammar

  1. LaTeXSet the title of the
    LaTeXtitle \begin{document}before, the title cannot use Chinese, I don’t know how to solve it
\tilde{标题}
\begin{document}
正文
\end{document}
  1. LaTeXImport macro package
\usepackage{包名}
  1. LaTeXSupport Chinese
    character encoding,\documentclass[UTF8]{ctexart}
\documentclass[UTF8]{ctexart}
\begin{document}
第一章 概述
\end{document}
  1. LaTeXTitle is centered.
    Introduce the package in the title play \usepackage[justification=centering]{caption}, example
\documentclass[UTF8]{ctexart}
\usepackage[justification=centering]{caption} 
\begin{document}
\begin{center}
第一章 概述
\end{center}
\end{document}
  1. Modify the font size, see Latex to modify the font size
  2. LaTeXThe bold command is \textbf{文字}
  3. LaTeXEnter a space, see how to type latex spaces
  4. LaTeXEnter various arrows, see Summary of Latex symbols supported by MathJax (various arrow symbols)
  5. LaTeXEnter text on the arrow, see LaTex Add text on the arrow
  6. LaTeXUse to \\indicate line break
  7. LaTeXUse Chinese in mathematical symbols, see LaTex | Insert Chinese in LaTex Mathematical Formula
  8. LaTeXAdd a box, see how latex adds a text box

Guess you like

Origin blog.csdn.net/macaiyun0629/article/details/108542535