LaTex Installation

To install LaTex in ubuntu use the following commands –

  1. sudo apt-get update
  2. sudo apt-get install texlive-full

LaTex installation takes around 20 minutes. To test LaTex installation use the following steps –

  1. Create a file with .tex extension.

tex

2. Insert the following code in hello.tex file –

\documentclass{article}
\begin{document}
First Code! Happy Learning 🙂
\end{document}

Download the sample file here – [wpdm_package id=’1453′]

3. Compile file by typing –     latex  hello.tex    or  pdftex hello.textex1 tex2

 

 

 

 

 

 

 

4. This will create three files – hello.aux , hello.dvi, hello.log

To see the file content type – evince hello.dvi   or evince hello.pdftex3

 

 

You will get the output like below –tex4

 

 

 

 

 

 

 

To convert dvi to pdf type – dvipdf  hello.dvi  filename.pdftex5

Leave a Reply

Your email address will not be published. Required fields are marked *