ajtex command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ajtex: command not found
or when using sudo you get the following error message
sudo: ajtex: command not found
Solutions to ajtex: command not found
How To Fix ajtex: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ajtex is provided by ptex-jtex package.
ptex-jtex is:
ASCII jTeX is Japanese TeX, designed by ASCII corporation.
In this version, ‘jtex’ and ‘jlatex’ are renamed as ‘ajtex’ and ‘ajlatex’, respectively. And these programs are compiled with a recent ptex, which is included in texlive-binaries package. Note ajlatex is of latex209 version.
Note ptex in texlive-binaries needs to use option “–kanji=euc” for a file in EUC-JP encoding, so please add “–kanji=euc” for ajtex/ajlatex commands.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ptex-jtex
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ptex-jtex.
sudo apt -y install ptex-jtex
Or if you have aptitude installed you can use the following command.
sudo aptitude install ptex-jtex
Summary
In this tutorial we learn how to fix ajtex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.