How To Install texlive-lang-cjk on Ubuntu 18.04

In this tutorial we learn how to install texlive-lang-cjk on Ubuntu 18.04. texlive-lang-cjk is TeX Live

Introduction

In this tutorial we learn how to install texlive-lang-cjk on Ubuntu 18.04.

What is texlive-lang-cjk

texlive-lang-cjk is:

Packages supporting a combination of Chinese, Japanese, Korean, including macros, fonts, documentation. Also Thai in the c90 encoding, since there is some overlap in those fonts; standard Thai support is in collection-langother. Additional packages for CJK are in their individual language collections.

This package includes the following CTAN packages:

c90 – c90 font encoding for Thai

cjk-gs-integrate – Tools to integrate CJK fonts into Ghostscript

cjkpunct – Adjust locations and kerning of CJK punctuation marks

garuda-c90 – TeX support (from CJK) for the garuda font

fixjfm – Fix JFM (for *pTeX)

jfmutil – Utility to process pTeX-extended TFM and VF

norasi-c90 – TeX support (from CJK) for the norasi font

pxtatescale – Patch to graphics driver for scaling in vertical direction of pTeX

xcjk2uni – Convert CJK characters to Unicode, in pdfTeX

zxjafont – Set up Japanese font families for XeLaTeX

There are three methods to install texlive-lang-cjk on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install texlive-lang-cjk Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install texlive-lang-cjk using apt-get by running the following command:

sudo apt-get -y install texlive-lang-cjk

Install texlive-lang-cjk Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install texlive-lang-cjk using apt by running the following command:

sudo apt -y install texlive-lang-cjk

Install texlive-lang-cjk Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install texlive-lang-cjk using aptitude by running the following command:

sudo aptitude -y install texlive-lang-cjk

How To Uninstall texlive-lang-cjk on Ubuntu 18.04

To uninstall only the texlive-lang-cjk package we can use the following command:

sudo apt-get remove texlive-lang-cjk

Uninstall texlive-lang-cjk And Its Dependencies

To uninstall texlive-lang-cjk and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove texlive-lang-cjk

Remove texlive-lang-cjk Configurations and Data

To remove texlive-lang-cjk configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge texlive-lang-cjk

Remove texlive-lang-cjk configuration, data, and all of its dependencies

We can use the following command to remove texlive-lang-cjk configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge texlive-lang-cjk

References

Summary

In this tutorial we learn how to install texlive-lang-cjk package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.