1.从清华镜像站上下载texlive镜像
https://mirrors.tuna.tsinghua.edu.cn/#
wget -c https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2020-20200406.iso
2.安装per组件
sudo apt-get install perl-tk
3.装载镜像文件
sudo mount -o loop [镜像文件名] /mnt
4.启动图形化安装界面(2021)
cd /mnt
perl install-tl -gui
如果分区时将/home分区单独分了出来,且/分区较小的话,可以更改安装位置
5.安装texstudio编辑器
sudo apt-get install texstudio
至此texlive的安装就完成了,可以正常输出中文进行编译.
注意:
1.在快速构建中,出现找不到revtex4.cls
REVTeX 4.1是一套用于LaTeX2e的宏包,非常适合准备提交给 美国物理学会期刊(American Physical Society, APS )和 美国物理联合会(American Institute of Physics,AIP)这两个期刊。所以,revtex4-1是投Physical review 系列的首选模板。
安装方法:
sudo apt-get install texlive-publishers
2.AMS符号
有些“高级”的符号需要依赖amssymb宏包
在正文开头导入amssymb宏包
\usepackage{amssymb}
LaTeX report template
\documentclass[]{report} % list options between brackets
\usepackage{} % list packages between braces
% type user-defined commands here
\begin{document}
\title{\TeX\ and \LaTeX} % type title between braces
\author{Tom Scavo} % type author(s) between braces
\date{October 27, 1995} % type date between braces
\maketitle
\begin{abstract}
A brief introduction to \TeX\ and \LaTeX
\end{abstract}
\chapter{\TeX} % chapter 1
\section{Introduction} % section 1.1
\subsection{History} % subsection 1.1.1
\chapter{\LaTeX} % chapter 2
\section{Introduction} % section 2.1
\subsection{Usage} % subsection 2.1.1
\begin{thebibliography}{9}
% type bibliography here
\end{thebibliography}
\end{document}