Linux 中 Latex的安装与使用

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}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值