How To Install texlive-lang-chinese on Ubuntu 22.04
Introduction
In this tutorial we learn how to install texlive-lang-chinese
on Ubuntu 22.04.
What is texlive-lang-chinese
texlive-lang-chinese is:
Support for Chinese; additional packages in collection-langcjk.
This package includes the following CTAN packages:
arphic-ttf – TrueType version of Chinese Arphic fonts
asymptote-by-example-zh-cn – Asymptote by example
asymptote-faq-zh-cn – Asymptote FAQ (Chinese translation)
asymptote-manual-zh-cn – A Chinese translation of the asymptote manual
cns – Chinese/Japanese/Korean bitmap fonts
ctex – LaTeX classes and packages for Chinese typesetting
ctex-faq – LaTeX FAQ by the Chinese TeX Society (ctex.org)
fandol – Four basic fonts for Chinese typesetting
fduthesis – LaTeX thesis template for Fudan University
hanzibox – Boxed Chinese characters with Pinyin above and translation below
hyphen-chinese – Chinese pinyin hyphenation patterns.
impatient-cn – Free edition of the book “TeX for the Impatient”
install-latex-guide-zh-cn – A short introduction to LaTeX installation written in Chinese
latex-notes-zh-cn – Chinese Introduction to TeX and LaTeX
lshort-chinese – Introduction to LaTeX, in Chinese
nanicolle – Typesetting herbarium specimen labels
njurepo – Reports for Nanjing University
pgfornament-han – pgfornament library for Chinese traditional motifs and patterns
qyxf-book – Book Template for Qian Yuan Xue Fu
texlive-zh-cn – TeX Live manual (Chinese)
texproposal – A proposal prototype for LaTeX promotion in Chinese universities
tlmgr-intro-zh-cn – A short tutorial on using tlmgr in Chinese
upzhkinsoku – Supplementary Chinese kinsoku for Unicode *pTeX
xpinyin – Automatically add pinyin to Chinese characters
xtuthesis – XTU thesis template
zhlineskip – Line spacing for CJK documents
zhlipsum – Chinese dummy text
zhmetrics – TFM subfont files for using Chinese fonts in 8-bit TeX
zhmetrics-uptex – Chinese font metrics for upTeX
zhnumber – Typeset Chinese representations of numbers
zhspacing – Spacing for mixed CJK-English documents in XeTeX
There are three methods to install texlive-lang-chinese
on Ubuntu 22.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-chinese 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-chinese
using apt-get
by running the following command:
sudo apt-get -y install texlive-lang-chinese
Install texlive-lang-chinese Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install texlive-lang-chinese
using apt
by running the following command:
sudo apt -y install texlive-lang-chinese
Install texlive-lang-chinese 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-chinese
using aptitude
by running the following command:
sudo aptitude -y install texlive-lang-chinese
How To Uninstall texlive-lang-chinese on Ubuntu 22.04
To uninstall only the texlive-lang-chinese
package we can use the following command:
sudo apt-get remove texlive-lang-chinese
Uninstall texlive-lang-chinese And Its Dependencies
To uninstall texlive-lang-chinese
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove texlive-lang-chinese
Remove texlive-lang-chinese Configurations and Data
To remove texlive-lang-chinese
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge texlive-lang-chinese
Remove texlive-lang-chinese configuration, data, and all of its dependencies
We can use the following command to remove texlive-lang-chinese
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge texlive-lang-chinese
References
Summary
In this tutorial we learn how to install texlive-lang-chinese
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.