Installing LaTeX and How To use LaTeX
After the Introduction we are ready to go through LaTeX. Install any linux distribution you want.. (I am hereby using Ubuntu 10.04 Lucid Lynx).Follow the Following steps to get the desired document in various formats without much effort done.
1) Go to terminal and type
$ sudo apt-get install texlive-latex-base
2) your Latex will be installed on your system and you can check for manual page by typing man latex in terminal.
3) To do very next step now we should stick this to our mind that the document we are going to produce is written in any type of editor whether it may be your most common usable editor Gedit or you can use emac by installing first emac into your system using command
$ sudo apt-get install emac
4) After you have written your document it is to be embedded with some set of commands that Latex uses so as to give a structure to your Piece written.
Note that whenever you wish your document to be looked into some other style just change these set of commands.
5) When you have done all these things save your piece of code with .tex format say test.tex
6) Go to terminal type latex path of the file test.tex
Or pdflatex path of the file test.tex
for producing pdf file simultaneously.
7) If you see something like this then 3 more files will be created namely test.dvi, test.aux and test.log
8) test.dvi is viewable and is device independent(dvi) from dvi means whether you open this file for screen viewing or for printing doesn't matter...
9)After that we can have pdf image format or postscript format .ps from this .dvi file, you just need to type in terminal
$ dvipdf hello.dvi hello.pdf for .dvi to pdf conversion.
$ dvips hello.dvi -o hello.psfor .dvi to .ps file.
$ ps2pdf hello.ps hello.pdf for .ps to pdf conversion
No comments:
Post a Comment