Skip to content
forked from XinzeZhang/Latex

This is a Latex-WorkSpace being used by xinze.zh includes tutorial, CV and templates.

Notifications You must be signed in to change notification settings

mikebayth/Latex

 
 

Repository files navigation

Introduction

This is a [Latex Respository] of Xinze Zhang

The respository is made up with tutorial of texlive2017-install in ubuntu17.10, and templates modified by xinze zhang.

Most of the works were finished in the CIDM&JHL in HUST.

texlive2017-install

准备

首先从mirror.hust.edu.cn中下载texlive 2017的iso文件。

因为texlive安装脚本为Perl语言,下载完成之后,安装Perl。

sudo apt-get install perl-tk

安装

安装ubuntu下的iso挂载软件,如:Furius ISO Mount 挂载之后的iso文件会自动被解压到/mnt/

建议采用GUI方式安装

cd /mnt
# 以 GUI 方式安装
sudo ./install-tl -gui=perltk

默认是安装在/usr/local/texlive目录,可更改为/home,否则下一步即可。

结束后在furius ios mount中卸载ios文件。

修改环境变量

对于bash shell,在~/.bashrc中添加tex环境变量。

# TeX Live 2017
export PATH=${PATH}:/usr/local/texlive/2017/bin/x86_64-linux
# 如果是32位最后改为'i386-linux'
export MANPATH=${MANPATH}:/usr/local/texlive/2017/texmf-dist/doc/man
export INFOPATH=${INFOPATH}:/usr/local/texlive/2017/texmf-dist/doc/info

因为tex的宏包管理软件必须要在sudo或root下运行,所以需要修改sudo环境下的环境变量

sudo visudo

ubuntu默认采用nano编辑器打开,在Defaults secure_path中加入Tex Live的bin目录。 添加完成后ctrl+x推出,选择Y确认保存,不修改文件名,Enter确认退出。

测试

运行tex --version,进行测试,若显示tex版本,则已安装成功。

tex --version

更新

在ubuntu上 tive live的宏包管理工具tlmgr较windows稳定。可采用GUI界面更新。

# 指定图形界面语言为中文
tlmgr -gui -gui-lang zh_CN

About

This is a Latex-WorkSpace being used by xinze.zh includes tutorial, CV and templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 97.4%
  • Other 2.6%