大家好,今天小编为大家分享关于不用root用gg修改器_gg修改器可以不用root吗的内容,赶快来一起来看看吧。
1.LaTeX官网:
https://www.latex-project.org/
图1
LaTeX is available as free software.
下载界面,提供Windows,macro,linux版本
https://www.tug.org/texlive/acquire-netinstall.html
提供三个版本:
install-tl-windows.exe for Windows (18mb)
install-tl-unx.tar.gz (4mb)
install-tl.zip (22mb)
2.我下载Linux的tar.gz版本,
图2
3.安装:
放在opt目录下
解压
sudo ./install-tl
先按V,再按I
图
第一次,竟然失败,估计网速问题
出现:
TLPDB::_install_package: downloading did not succeed (download_file failed)
Installation failed.
Rerunning the installer will try to restart the installation.
Or you can restart by running the installer with:
install-tl –profile installation.profile [EXTRA-ARGS]
./install-tl: Writing log in current directory: /opt/install-tl-20191218/install-tl.log
第二次,重新安装,成功。
出现这个界面:
e to TeX Live!
See /usr/local/texlive/2019/index.html for links to documentation.
The TeX Live web site (https://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 https://tug.org/usergroups.html.
Add /usr/local/texlive/2019/texmf-dist/doc/man to MANPATH.
Add /usr/local/texlive/2019/texmf-dist/doc/info to INFOPATH.
Most importantly, add /usr/local/texlive/2019/bin/x86_64-linux
to your PATH for current and future sessions.
Logfile: /usr/local/texlive/2019/install-tl.log
root@xgj-PC:/opt/install-tl-20191218#
4.添加路径
cd ~
vi .bashrc #进入vi编辑器,按i进入编辑
#添加
#texlive
PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info:$INFOPATH; export INFOPATH
#按esc,加:,在输入小写的wq,保存退出
可能失败
换一种,继续
vim /etc/bash.bashrc
PATH=$PATH:/usr/local/texlive/2019/bin/x86_64-linux/tex
保存退出
esc,:,wq
source /etc/bash.bashrc #前一次失败,估计这个操作没有执行,成功。
5.测试一下
xgj@xgj-PC:~$ tex
bash: tex: 未找到命令
xgj@xgj-PC:~$ latex
bash: latex: 未找到命令
xgj@xgj-PC:~$ pdftex
bash: pdftex: 未找到命令
6.因为没有建立软连接
格式:ln -s 源文件 目标文件
格式:ln -s /usr/bin/less /usr/local/bin/less
方法:tex
ln -s /usr/local/texlive/2019/bin/x86_64-linux/tex /usr/bin/tex
成功
方法:latex
ln -s /usr/local/texlive/2019/bin/x86_64-linux/latex /usr/bin/latex
成功
方法:pdftex
ln -s /usr/local/texlive/2019/bin/x86_64-linux/pdftex /usr/bin/pdftex
成功
7.验证安装成功与否?
$ 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 #更新所有已安装的宏包,这不没成功,估计网速慢
图
8.方法二:这种方法也可以,我还是觉得第一种方法靠谱些
安裝 texlive 以及中文編輯環境:
sudo apt-get install texlive dvipdfmx cjk-latex
sudo apt-get install texmaker
sudo apt-get install texlive-latex-extra
安裝中文字型
文泉驛點陣字型
sudo apt-get install xfonts-wqy
sudo apt-get install ttf-arphic-gbsn00lp ttf-arphic-ukai # 文鼎字体,已经安装
sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei # 文泉驿字体
9.安装kile软件
方法一:
https://kile.sourceforge.io/download.php/
root@xgj-PC:/opt/kile-2.9.92#
这种方法弄不好,还是下面的好
简单,方法二:
sudo apt-get install kile #下载安装有点久,可能因为依赖关系比较多
sudo apt-get update
进入Kile的Settings->Configure Kill…->tools->build中修改相应的路径即可
注意如果想察看生产的pdf或者dvi文件则可先安装一个okular
sudo apt-get install okular
10.总结:
TeX格式是科技学术界的通用格式,许多论文都是这种格式的。
如果你要投稿到某学术杂志通常都要求用此格式投稿,因为这种格式是科技文献桌面出版印刷的标准。
如果是 Linux, 可以用 Kile 等软件来编辑, Alt-2 是生成 DVI 文件。
以上就是关于不用root用gg修改器_gg修改器可以不用root吗的全部内容,希望对大家有帮助。