I didn't move the texmf folder from its wrong location to the right place because I assumed may be some error would come. I simply removed it and created agin according to: in35:ayalew >> ~ $mkdir -p texmf/fonts/tfm in35:ayalew >> ~ $mkdir -p texmf/fonts/truetype in35:ayalew >> ~ $cd texmf/fonts/truetype/ in35:ayalew >> ~ $/texmf/fonts/truetype$ ln -s /usr/X11R6/lib/X11/fonts/truetype/CODE2000.TTF ./CODE2000.ttf in35:ayalew >> ~ $/texmf/fonts/truetype$ ls CODE2000.ttf in35:ayalew >> ~ $ find texmf/ -type d texmf/ texmf/fonts texmf/fonts/tfm texmf/fonts/truetype in35:ayalew >> ~ $ texhash texhash: Updating /iuehome/ayalew/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Updating /var/lib/texmf/db/ls-R... texhash: Updating /var/cache/fonts/ls-R... texhash: Done. Now I run the tex file n35:ayalew >> ~ $ latex UTF8-amharic-german.tex This is TeX, Version 3.14159 (Web2C 7.3.7) LaTeX2e <2001/06/01> bla bla....... Output written on UTF8-amharic-german.dvi (1 page, 316 bytes). Transcript written on UTF8-amharic-german.log. now dvips in35:ayalew >> ~ $ dvips UTF8-amharic-german.tex This is dvips(k) 5.86f Copyright 2001 Radical Eye Software (www.radicaleye.com) dvips: ! Bad DVI file: first byte not preamble in35:ayalew >> ~ $ dvips UTF8-amharic-german.dvi This is dvips(k) 5.86f Copyright 2001 Radical Eye Software (www.radicaleye.com) ' TeX output 2003.11.20:1431' -> UTF8-amharic-german.ps dvips: ! Bad PK file /iuehome/ayalew/texmf/fonts/pk/modeless/code2k12.720pk: unexpected eof At this point when I run dvips the folder pk with its subs is created in35:ayalew >> ~ $ find texmf/fonts/pk -type d texmf/fonts/pk texmf/fonts/pk/modeless in35:ayalew >> ~ $ cd texmf/fonts/pk/modeless/ in35:ayalew >> ~/texmf/fonts/pk/modeless $ ll total 12 drwxr-x--T 2 ayalew iueusers 4096 Nov 20 14:17 . drwxr-x--T 3 ayalew iueusers 4096 Nov 20 14:17 .. -rw-r----- 1 ayalew iueusers 27 Nov 20 14:17 code2k12.720pk The errors are: dvips: ! Bad DVI file: first byte not preamble and dvips: ! Bad PK file /iuehome/ayalew/texmf/fonts/pk/modeless/code2k12.720pk: unexpected eof I don't know how to proceed then! -tesfaye Mike FABIAN wrote:
Tesfaye Ayalew
さんは書きました: I moved texmf to my home in35:ayalew I run the tex file and it seems now the dvi file has been created, but with dvips some sort of error:
in35:ayalew >> ~ $ dvips UTF8-amharic-german.dvi This is dvips(k) 5.86f Copyright 2001 Radical Eye Software (www.radicaleye.com) ' TeX output 2003.11.20:1255' -> UTF8-amharic-german.ps dvips: ! Bad PK file /iuehome/ayalew/texmf/fonts/pk/modeless/code2k12.720pk: unexpected eof
Delete all the files in /iuehome/ayalew/texmf/fonts/pk/modeless/ and try again. Probably these have been incorrectly created while the directory structure was still wrong.
The directory structure looks like:
in35:ayalew >> ~ $ find texmf/ -type d texmf/ texmf/fonts texmf/fonts/tfm texmf/fonts/truetype texmf/fonts/pk texmf/fonts/pk/modeless
it seems different, but the texhash is identical with you.
in35:ayalew >> ~ $ texhash texhash: Updating /iuehome/ayalew/texmf/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Updating /var/lib/texmf/db/ls-R... texhash: Updating /var/cache/fonts/ls-R... texhash: Done.
One step more (^_^)
-tesfaye