Wednesday, May 28, 2008

Installing LaTeX on Ubuntu 8.04

LaTeX is a very handy and commonly used for editing professional style documents. It is mainly used for writing scientific papers, reports, articles and any official documents.

In Windows, usually we use WinEdt as front end LaTeX editor and Texlive or Miktex as compiler. Texlive is available through Ubuntu repository. But Miktex is not so easily installable in Ubuntu. You have to compile it from scratch after downloading the source from SourceForge.net.

The replacement for WinEdt in Ubuntu might be Kile or Texmaker. Kile is a KDE native applicaton, though you can install it on Ubuntu using Synaptic. But you have to install some KDE libraries which you might not like!

So, I think Texmaker is the best choice. Though it is available through Synaptic, it does not install Texlive as its dependencies [ I was very surprised to learn that ].

Anyway, there are solutions to this problem :-)

Just select these packages manually after selecting Texmaker on Synaptic and confirming additional packages :

tex-common
texlive-base
texlive-base-bin
texlive-common
texlive-doc-base
texlive-latex-base

After Synaptic downloads and installs the packages, you can edit and compile LaTeX documents.

There is another problem involving Texmaker. It configures 'xpdf' as its default PDF viewer. As Ubuntu 8.04 does not have 'xpdf', you have to set 'evince' as the default PDF viewer. To do so :

1. Go to the OPTIONS menu in Texmaker
2. Select CONFIGURE TEXMAKER
3. On the COMMANDS tab, find 'Pdf viewer' text field
4. Replace 'xpdf' with 'evince' keeping other texts on this field intact.

Now, you are done. You can view PDF by selecting VIEW PDF from TOOLS menu after compiling the document usinf PDFLatex.

8 comments:

Jubair Sieed said...

Eita kajer post

Hafiz Imtiaz said...

hmmm..thanks

Fascinated_by_lightning said...

I want LaTex to produce dvi-file as part of the output, how do I do that?

I tried the LaTeX command button on the top og the texmaker, but no dvi file...

Regan said...

Thanks--this is most helpful.

Hafiz Imtiaz said...

@Fascinated_by_lightning

I am sorry, I don't know how to produce DVI files in texmaker. WinEdt automatically produces DVI files in windows. But in Linux, I don't know. If you get a way out, please let me know.


@Regan

Thank you very much.

Drifting East said...

Hi, I followed your suggestion to install texmaker on my ubuntu 804:

After compiling a LaTeX sample from an IEEE conference by texmaker, I got the following error information:

###################################
! I can't find file `nullfont'. <*> ...ljfour; mag:=1; nonstopmode; input nullfont Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input nullfont Transcript written on mfput.log.

grep: nullfont.log: No such file or directory

mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input nullfont' failed to make nullfont.tfm.
####################################

I guess such error was caused by some configuration problem or the miss of some packages. Do you have some idea on how to fix this? Thanks!

Sameer said...

Thanks brother...it was quite helpful...thanks :) May Allah Bless you..

Michelle said...

Thankyou! I really appreciate this - it helped. :)