How To Install latex-cjk-thai on Ubuntu 18.04

In this tutorial we learn how to install latex-cjk-thai on Ubuntu 18.04. latex-cjk-thai is Thai module of LaTeX CJK

Introduction

In this tutorial we learn how to install latex-cjk-thai on Ubuntu 18.04.

What is latex-cjk-thai

latex-cjk-thai is:

CJK is a macro package for LaTeX. This package gives you the possibility to include Thai text in your (La)TeX documents. It uses the same Type1 fonts (Norasi and Garuda) from the ThaiLaTeX package.

Have a look at latex-cjk-common for a more detailed description.

There are three methods to install latex-cjk-thai 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 latex-cjk-thai Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install latex-cjk-thai

Install latex-cjk-thai Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install latex-cjk-thai

Install latex-cjk-thai 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 latex-cjk-thai using aptitude by running the following command:

sudo aptitude -y install latex-cjk-thai

How To Uninstall latex-cjk-thai on Ubuntu 18.04

To uninstall only the latex-cjk-thai package we can use the following command:

sudo apt-get remove latex-cjk-thai

Uninstall latex-cjk-thai And Its Dependencies

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

sudo apt-get -y autoremove latex-cjk-thai

Remove latex-cjk-thai Configurations and Data

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

sudo apt-get -y purge latex-cjk-thai

Remove latex-cjk-thai configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge latex-cjk-thai

References

Summary

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