## Objective

Furthermore, this article will also explain the procedure on how to compile a basic Latex document from a command line. Lastly, the reader will be introduced to some of the best LaTeX editors available on the Ubuntu 18.04 system.

## Operating System and Software Versions

• Operating System: - Ubuntu 18.04 Bionic Beaver Linux

## Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

EASY

## Conventions

• # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command

That is all.

### Compile LaTeX "Hello World"

Now, that we have LaTeX installed let's just confirm the installation by compling a simple LaTeX code.

Open up any text editor like for example gedit, enter the following code and save as hello-world.tex:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
Hello world \LaTeX

\url{https://linuxconfig.org}
\end{document}

Once you have the above LaTeX code saved use the pdflatex command to compile it to PDF. If the pdflatex command is available on your system you will need to install texlive-extra-utils before you can use it:
$pdflatex hello-world.tex  The above command will compile your hello-world.tex to hello-world.pdf. Next, start Evince PDF viewer to see the result: $ evince hello-world.pdf

Compile LaTeX to PDF from command line on Ubuntu 18.04.

### List of LaTeX editors

The following section will provide you with a list of some of the best LaTeX editors on Ubuntu 18.04 system.
Gedit with LaTeX plugin enabled. Gedit is most likely already available on your system. However, to get LaTeX support you need to install the LaTeX plugin via gedit-latex-plugin package.
$sudo apt install gedit-latex-plugin  Once the package is installed navigate to Preferences-->Plugins and enable the LaTeX plugin. LyX is more sophisticated and dedicated LaTeX editor with a great documentation to get you started in no time. $ sudo apt install lyx

Kile is a robust LaTeX editor. It is based on Qt and hence the installation on non-plasma KDE desktop will require more disk space. However, it is surely worth every byte of your disk space.
$sudo apt install kile  TeXstudio LaTeX editor is also a solid choice. It is feature rich with great neat interface. $ sudo apt install texstudio


Yet another LaTeX editor and compiler is Texmaker.
$sudo apt install texmaker  Lastly, you may opt-in for Gummi LaTeX editor and compiler. The nice default feature on Gummi is auto-compilation of the LaTeX code to the right hand side document preview. $ sudo apt install gummi

FIND LATEST LINUX JOBS on LinuxCareers.com
Get extra help by visiting our LINUX FORUM or simply use comments below.

### You may also be interested in:

GDPR permission: I give my consent to be in touch with me via email using the information I have provided in this form for the purpose of news and updates.

### Write For Us

LinuxConfig is looking for a technical writer(s) geared towards GNU/Linux and FLOSS technologies. Your articles will feature various GNU/Linux configuration tutorials and FLOSS technologies used in combination with GNU/Linux operating system.

When writing your articles you will be expected to be able to keep up with a technological advancement regarding the above mentioned technical area of expertise. You will work independently and be able to produce at minimum 2 technical articles a month.

### Contact

web ( at ) linuxconfig ( dot ) org