Installing Latex On Ubuntu: Sudo Apt-Get Install Texlive-Full

You might also like

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 3

Installing LaTeX on Ubuntu

LaTeX is a markup language for describing a document. It can also be defined as a document
preparation system. LaTeX is mainly used to create technical or scientific articles, papers, reports,
books or PhD thesis.

There are number of LaTeX distributions you can install on Ubuntu. One such distribution is TeX
Live.

1. To install Tex Live LaTeX distribution on ubuntu use the following command.
sudo apt-get install texlive-full

2. To edit LaTeX documents we need an editor. There are number of LaTeX editors you can
find. I recommend Texmaker, a cross platform LaTeX editor. To install Texmaker on Ubuntu
use following command.
sudo apt-get install texmaker

3. To open Texmaker on Ubuntu use following command.


texmaker

4. The TeX Live software distribution offers a complete TeX system. It encompasses programs
for typesetting, previewing and printing of TeX documents in many different languages, and
a large collection of TeX macros and font libraries. The texlive metapackage provides a
decent selection of the TeX Live packages which should suffice for the most common tasks.

To install TeXstudio in all currently supported versions of Ubuntu open the terminal and type:
sudo apt-get install texstudio

TeXstudio is a program based on Texmaker, which integrates many tools needed to develop
documents with LaTeX in just one application. Using its editor you can write your documents with
the help of interactive spell checking, syntax highlighting, code completion and more.
5.

6. Now Let's create a simple document using Texmaker. Click on File -> New and insert
following lines in the blank document.
\documentclass{article}

\begin{document}

Hello world!

\end{document}

7. Now save the document as a 'tex' file by clicking File -> Save. Compile the document
clicking the arrow Quick Build.
You can learn more about LaTeX by refferring this link.

Running scripts NS3

Running C++ scripts


Once the build is done and all tests pass, one generally wants to run a couple of examples as per the
tutorial. The easiest way to do this is to run:
./waf --run progname

To find out the list of available programs, you can do:


./waf --run non-existent-program-name.

Running python scripts


The method to run a python script is fairly similar to that of a C++ script except that you need to
specify a complete path to the script file, and you need to use the pyrun command instead of run.
For example:
./waf --pyrun examples/wireless/mixed-wireless.py

Running scripts in a shell


Another way to run ns-3 programs that does not require using the ./waf run command is to use the
ns-3 shell which takes care of setting up all the environment variables necessary to do so:
./waf shell
And, then:
./build/debug/examples/csma-broadcast

You might also like