1、下载latex镜像文件(清华大学开源软件镜像站):
官 下载 install-tl-unx.tar.gz:http://www.tug.org/texlive/acquire-netinstall.html 解压后:sudo ./install-tl
直接从链接下载:https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2018-20180414.iso
或者终端:$ wget -c https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2018-20180414.iso
Texlive 安装指南:https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf
2、安装:
此时,会出现:
Can’t locate Digest/MD5.pm in @INC (you may need to install the Digest::MD5 module) (@INC contains: ./tlpkg /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at tlpkg/TeXLive/TLUtils.pm line 201.
BEGIN failed–compilation aborted at tlpkg/TeXLive/TLUtils.pm line 201.
Compilation failed in require at ./install-tl line 53.
BEGIN failed–compilation aborted at ./install-tl line 53.
安装成功:
Welcome to TeX Live!
See /usr/local/texlive/2018/index.html for links to documentation.
The TeX Live web site (http://tug.org/texlive/) contains any updates and
corrections. TeX Live is a joint project of the TeX user groups around the
world; please consider supporting it by joining the group best for you. The
list of groups is available on the web at http://tug.org/usergroups.html.
Add /usr/local/texlive/2018/texmf-dist/doc/man to MANPATH.
Add /usr/local/texlive/2018/texmf-dist/doc/info to INFOPATH.
Most importantly, add /usr/local/texlive/2018/bin/x86_64-linux
to your PATH for current and future sessions.
Logfile: /usr/local/texlive/2018/install-tl.log
3、配置环境变量
4、常用命令:
$ tex –version #查看版本
$ latex sample2e.tex #测试编译
$ pdftex sample2e.tex #在当前目录下生成测试文档的pdf文件
$ tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet #自动选择最近的仓库更新
$ tlmgr update -self #更新宏包管理器
$ tlmgr update -all #更新所有已安装的宏包
5、编译命令:
会产生xxx.dvi文件作为输出;
,调用dvi查看器查看dvi文件的内容;
,将dvi文件转换成pdf文件;
,将dvi文件转换成ps文件;
,调用PS_View查看器查看ps文件;
,将xxx.ps文件转换成xxx.pdf文件;
,将文件xxx.tex一步到位,直接编译成pdf文件;
epstopdf: converts Encapsulated PostScript (EPS) files to PDF;
pdfcrop: (crops a PDF file)
6、创建文档:
中文:
参考:
安装:https://www.jianshu.com/p/3b3a6f1f11bc
https://blog.csdn.net/lixiangyong123/article/details/59520244
使用:https://blog.csdn.net/robertchenguangzhi/article/details/50494697
https://blog.csdn.net/zb1165048017/article/details/52785177
文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门初识Linux24701 人正在系统学习中
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!