How to install CJHebrew in Linux

Install LaTeX

We assume you have a working LaTeX-installation before installing the Coptic-package. If this is not the case, read how to install LaTeX on the page about installing HieroTeX.

Install CJHebrew

Download and unpack the CJHebrew-file:

wget ftp://cam.ctan.org/tex-archive/language/hebrew/cjhebrew.zip
unzip cjhebrew.zip; rm cjhebrew.zip


You have to copy all files to a directory where LaTeX can find these files. On Ubuntu and most other distributions, it would be this directory:

export TEXPATH="/usr/share/texmf"

On Arch Linux, it is:

export TEXPATH="/opt/texlive/texmf"


Note: you will need root privileges to install CJHebrew. You can switch to the root user in a terminal window by using the command "su". In Ubuntu and other distribution who use "sudo" instead of the root user, you have to add "sudo" before every command below. But it's easier if you switch to the root user, by using the command "sudo su" or "sudo bash".

Create the destination directories and copy all files to the right directory:

cd cjhebrew/
mkdir -p ${TEXPATH}/fonts/type1/public/cjhebrew ${TEXPATH}/fonts/afm/public/cjhebrew
mkdir -p ${TEXPATH}/fonts/tfm/public/cjhebrew ${TEXPATH}/fonts/vf/public/cjhebrew
mkdir -p ${TEXPATH}/fonts/map/dvips/cjhebrew ${TEXPATH}/fonts/enc/dvips/cjhebrew
mkdir -p ${TEXPATH}/tex/latex/cjhebrew ${TEXPATH}/doc/latex/cjhebrew
cp *.pfb ${TEXPATH}/fonts/type1/public/cjhebrew/
cp *.afm ${TEXPATH}/fonts/afm/public/cjhebrew/
cp *.tfm ${TEXPATH}/fonts/tfm/public/cjhebrew/
cp *.vf ${TEXPATH}/fonts/vf/public/cjhebrew/
cp cjhebrew.map ${TEXPATH}/fonts/map/dvips/cjhebrew/
cp cjhebltx.enc ${TEXPATH}/fonts/enc/dvips/cjhebrew/
cp cjhebrew.sty ${TEXPATH}/tex/latex/cjhebrew/
cp manual.pdf cjhebtst.tex ${TEXPATH}/doc/latex/cjhebrew/


On Debian-based distros, add the font-mapping files to updmap:

echo "Map cjhebrew.map" > 30local-cjhebrew.cfg
sudo cp 30local-cjhebrew.cfg /etc/texmf/updmap.d/


On other distros, you just need to add:

Map cjhebrew.map

to the file updmap.cfg, which can be found in:
- Slackware(-based distros): /usr/share/texmf/web2c/
- SUSE Linux: /etc/texmf/web2c/
- Arch Linux: /opt/texlive/texmf/web2c/

On Debian-based distros, run:

update-updmap; texhash; updmap-sys


On other distros, run:

updmap; texhash; updmap-sys

Remove temporary files

If the installation was succesful, you can delete the files you downloaded:

cd ../; rm -r cjhebrew/

CJHebrew documentation

If you've never used CJHebrew before, be sure to read the documentation and check out how you have to enter all Hebrew characters. In Ubuntu, the documentation is located at:

/usr/share/texmf/doc/latex/cjhebrew/manual.pdf

Troubleshooting

If LaTeX gives you an error with "Permission denied" when you're using CJHebrew for the first time, enter the following command in a terminal window and rerun LaTeX: sudo chmod -R 755 $TEXPATH



Tested in:

  • Arch Linux (2007.08-2)
  • Ubuntu (6.10)
  • Xubuntu (7.04)