Saturday, February 27, 2016

Installing Latex in Linux

LaTeX is a high-quality typesetting system which is use to write scientific papers and techinical documents. In techinical domain, LaTeX is the de facto standard for the communication and publication of scientific documents. I often use Latex, when I need to write general papers, short ebooks and reports of my projects, some people even use latex to write software documentation as it gives the flexibility to produce the documents output in variety of formats from ps PDF to HTML. Ok too much gas-bagging, let us dive into the world Typesetting First open your comand prompt a.k.a terminal, just search terminal in your workstation. After opening your terminal, wait, have you update your system ? If you haven't it's time to update your system, to update just hit the command
sudo apt-get update
in your terminal. After completing your system update, it's time to install latex in your system. Just go ahead and issue the command below.
sudo apt-get install textlive-full
The above command will install all the necessary packages that you need, textlive-full package is a huge file, it will takes a decent amount of time,go get yourself a cup of coffe. After install textlive now its time to install the latex editor, there are variety of editors, but I prefer text-maker, wait, you can even write your document using a powerful vim editor if you are a vim pro. so, to install text-maker just open your terminal and issue the command given below
sudo apt-get install text-maker
This is a small packages, in few minutes you will have your latex editor. It would be wise if we check our installation, whether it works properly or not. Go ahead and create a latex document as shown below in your text-maker.
\documentclass{report}
\begin{document}
    Hey, this is latex document having .tex extension
\end{document}
Now save you document in .tex format and compile it. To compile just go to tools and hit PDFLATEX, this will create a PDF document for you in your working directory, the directory where you created .tex file. Hurray, You have write your document in Latex.

No comments:

Post a Comment