[LaTeX]LaTeX安装及LaTeX基础语法

LaTeX编辑安装

texmaker安装

sudo apt install texmaker

LaTeX宏包安装

  1. LaTeX安装宏包(未完成)
    下载宏包,中科大latex宏包镜像站地址
    安装宏包
# 先解压下载的宏包,以ctex.tds.zip示例
unzip ctex.tds.zip
  1. LaTeXLinux安装支持中文宏包
sudo apt install texlive-lang-chinese

LaTeX基础语法

  1. LaTeX设置标题
    LaTeX标题的设定在\begin{document} 之前,标题不能使用中文,怎么解决我也不知道
\tilde{标题}
\begin{document}
正文
\end{document}
  1. LaTeX引入宏包
\usepackage{包名}
  1. LaTeX支持中文
    定义字符编码,\documentclass[UTF8]{ctexart}
\documentclass[UTF8]{ctexart}
\begin{document}
第一章 概述
\end{document}
  1. LaTeX标题居中
    引入让标题剧中的包\usepackage[justification=centering]{caption},示例
\documentclass[UTF8]{ctexart}
\usepackage[justification=centering]{caption} 
\begin{document}
\begin{center}
第一章 概述
\end{center}
\end{document}
  1. 修改字体字号大小,见Latex修改字体字号的大小
  2. LaTeX的加粗命令是\textbf{文字}
  3. LaTeX输入空格,见latex空格怎么打
  4. LaTeX输入各种箭头,见MathJax 支持的 Latex 符号总结(各种箭头符号)
  5. LaTeX在箭头上输入文字,见LaTex 箭头上添加文字
  6. LaTeX使用\\表示换行
  7. LaTeX在数学符号中使用中文,见LaTex | LaTex的数学公式中插入中文
  8. LaTeX添加方框,见latex如何添加文本框

猜你喜欢

转载自blog.csdn.net/macaiyun0629/article/details/108542535