LaTeX 之 texlive 的下载与安装全过程

1.下载 texlive

官方镜像网站
在这里插入图片描述
在这里插入图片描述
进入安装界面:
下图中N of collections是选择一些语言包和模块,默认全选
在这里插入图片描述
在这里插入图片描述
TeXworkers是一个比较老的编辑器,最好不要安装
在这里插入图片描述
在这里插入图片描述
然后这个安装过程是一个非常非常漫长的过程
在这里插入图片描述
检查是否安装成功:

C:\Users\ASUS>tex -v
TeX 3.14159265 (TeX Live 2020/W32TeX)
kpathsea version 6.3.2
Copyright 2020 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

C:\Users\ASUS>xelatex -v
XeTeX 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX)
kpathsea version 6.3.2
Copyright 2020 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 65.1; using 65.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.10.1; using 2.10.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.6.4; using 2.6.4
Compiled with libpng version 1.6.37; using 1.6.37
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.92; using 2.13.92

C:\Users\ASUS>pdflatex -v
pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX)
kpathsea version 6.3.2
Copyright 2020 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.02

C:\Users\ASUS>

使用该命令可以更新

tlmgr update --all

常用命令行命令

#编译
latex test.tex
#将dvi文件转化成pdf文件
dvipdfmx test.dvi
#xelatex支持中文,但tex文件要用utf-8编码和引入支持宏包 \usepackage{ctex}
xelatex test.tex
#直接生成pdf

但使用时报错
在这里插入图片描述
但不知道为什么重启电脑后使用就正常了
sublime使用texlive编译运行结果:
在这里插入图片描述

发布了588 篇原创文章 · 获赞 170 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/qq_41228218/article/details/105704817