ptexjtexconfig command not found

In this troubleshooting guide we learn how to fix ptexjtexconfig command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ptexjtexconfig: command not found

or when using sudo you get the following error message

sudo: ptexjtexconfig: command not found

Solutions to ptexjtexconfig: command not found

How To Fix ptexjtexconfig: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ptexjtexconfig 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 ptexjtexconfig command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.