This is a tutorial on how to install the greektex package (http://www.research.dryllerakis.gr/greektex.html) on Ubuntu. It should work on other LinuX distributions as well. There are other alternatives for typing in Greek in LateX, see for example http://ubuntuforums.org/showthread.php?t=697569. However, most of the other packages require to insert a command before typing in Greek or English (based on Babel).
I presume you are using texlive and not tetex. Besides, texlive is more recent and I think that the development on tetex has stopped.
The greektex package can be found in the ubuntu repositories. However, it does not work "out of the box". You will need to copy some files to the appropriate directories in your TeX path.
There are instructions for these (found on the greektex link posted earlier) but IMHO they are out of date. That's why I decided to write this simple guide based on the original instructions. Ok, let's start!
The STEPS:
1) Install unzip and gzip, if you do not have it already, with:
sudo apt-get install unzip gzip;
2) Install the greektex package:
sudo apt-get install texlive-lang-greek;
3) Issue in a terminal the following commands:
sudo unzip /usr/share/doc/texlive-lang-greek/latex/greektex/ywcl.zip -d /usr/share/texmf-texlive/fonts/source/public/ywcl;
sudo gzip -d /usr/share/doc/texlive-lang-greek/latex/greektex/gehyphw.gr.gz;
sudo mv /usr/share/doc/texlive-lang-greek/latex/greektex/gehyphw.gr /usr/share/texmf-texlive/tex/generic/hyphen/;
4) Open with your favourite editor the file /etc/texmf/language.d/09texlive-base.cnf (you will need root access, use sudo). NOTE: If you are using recent distros (10.04) you will have to edit /usr/share/texmf-texlive/tex/generic/config/language.us instead.
Find the line that reads:
english hyphen.tex % do not change!
and change it to
english hyphen.tex gehyphw.gr % do not change!
5) In a terminal type:
sudo update-language;
sudo texhash;
sudo fmtutil-sys --all;
The very last step is essential for the hyphenation to work correctly. Full credit and many thanks go to user eumataxas for spotting this, correcting it and making this guide complete.
That's it. Make sure that when you type Greek in your LateX editor (I use Kile) you have the encoding "Greek iso-8859-7", otherwise you will get weird fonts in the DVI, PDF etc. I attach a TeX document using the greektex package. Rename it to "greek.tex" and use it to check whether greektex works properly.
Good luck!
Keywords: greektex, latex, linux, ubuntu, greek
Bookmarks