Ubuntu Texlive 2019 安装与环境配置

本文详细介绍在Ubuntu系统中下载并安装TeXLive2019的过程,包括图形化界面安装、镜像文件加载、环境变量配置及字体设置,确保LaTeX环境顺利搭建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 从清华源下载 texlive .iso 镜像
  2. 安装图形化用户界面
    sudo apt-get install perl-tk
    
  3. 加载 .iso 镜像文件
    sudo mount -o loop texlive2019.iso /mnt
    
  4. 启动图形化安装配置
    cd /mnt/
    sudo ./install-tl -gui 
    

安装完成后,

  1. 卸载镜像文件

    cd /; sudo umount /mnt
    
  2. 字体配置

    sudo cp /usr/local/texlive/2019/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
    sudo fc-cache -fsv
    
  3. 添加环境变量
    在 ~/.bashrc 和 ~/.profile 中均添加如下变量:

    export MANPATH=${MANPATH}:/usr/local/texlive/2019/texmf-dist/doc/man
    export INFOPATH=${INFOPATH}:/usr/local/texlive/2019/texmf-dist/doc/info
    export PATH=${PATH}:/usr/local/texlive/2019/bin/x86_64-linux
    
  4. 使添加变量立即生效

    source ~/.bashrc
    source ~/.profile
    
  5. 全局变量配置 /etc/manpath.config 下添加:

    MANPATH_MAP /usr/local/texlive/2019/bin/x86_64-linux /usr/local/texlive/2019/texmf-dist/doc/man
    
  6. 安装成功测试:

    tex --version
    

结果如下:

TeX 3.14159265 (TeX Live 2019)
kpathsea version 6.3.1
Copyright 2019 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.

若没有上述结果可以首先检查步骤完备性之后进行 restart / reopen 操作。

Done.

参考资料:

  1. 在Ubuntu下安装和编译LaTex
  2. Ubuntu下 TeX Live 2018 的安装与配置
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值