快速安装tex
windows下载地址http://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe
其他操作系统http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
mac建议安装http://www.tug.org/mactex/
我用的ubuntu,所以下载了install-tl-unx.tar.gz。
先删除以前安装的texlive(如果有的话)
rm -rf /usr/local/texlive/2016
rm -rf ~/.texlive2017
下载好以后,先解压
tar -zxvf install-tl-unx.tar.gz
安装,刚开始会提示你选择命令,输入i即可。
./install-tl
流程如下:
cd /your/download/directory
./install-tl # install-tl-windows on Windows
[… messages omitted …]
Enter command: i
[… when done, see below for post-install …]
安装完成后,会提示你增加路径到path下。
vim ~/.bashrc
最后面增加如下path
PATH=/usr/local/texlive/2017/texmf-dist/doc/man:$PATH; export PATH
PATH=/usr/local/texlive/2017/texmf-dist/doc/info:$PATH; export PATH
PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH; export PATH
完成。tex --version查看下版本。
~$ tex --version
TeX 3.14159265 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 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.
引用
http://www.andy-roberts.net/writing/latex
http://www.tug.org/texlive/
http://www.tug.org/texlive/quickinstall.html
http://www.tug.org/texlive/acquire-netinstall.html
TeX 发行版及其安装
https://github.com/sjtug/SJTUThesis/wiki/TeX-%E5%8F%91%E8%A1%8C%E7%89%88%E5%8F%8A%E5%85%B6%E5%AE%89%E8%A3%85