## DEV Community is a community of 639,856 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

# Setting Up LaTex

YJDoc2 ・3 min read

## What is LaTex

LaTex is a typesetting program, which has some predefined rules for setting up and formatting margin, header, sections,titles etc. and allows writers to focus on content, rather than worrying about design of the document.
To quote from their website :

LaTeX is not a word processor! Instead, LaTeX encourages >authors not to worry too much about the appearance of their >documents but to concentrate on getting the right content.
[...]
To produce [...] in most typesetting or word-processing systems, the author would have to decide what layout to use, so would select (say) 18pt Times Roman for the title, 12pt Times Italic for the name, and so on. This has two results: authors wasting their time with designs; and a lot of badly designed documents!

As someone who is not much good in designing, I completely agree with this 😄 I started looking in LaTex for the same reason, I had to write some reports for my projects, and I am not much good in designing, resulting in a rather badly designed report document.
LaTex Allows us to define various parts of the document by use of 'macros', and according to those, it typesets the document, which can then be rendered to pdf, html, and others.

## What is Tex , then?

Tex is the original, core program, based on which LaTex defines its macros. Tex provides the tools to typeset the document, and LaTex gives writer various macros to work with, and itself is written using Tex :

# answer re: What is the difference between TeX and LaTeX?

125

In short TeX is all about formatting, for document/template designers, while LaTeX is all about content, for document writers.

TeX is a typesetting system. It provides many commands which allow you to specify the format of your document with great detail (e.g. font styles, spacing, kerning, ligatures, etc.)…

## How to Say that again?

LaTex is pronounced as

LaTeX, which is pronounced «Lah-tech» or «Lay-tech» (to rhyme with «blech» or «Bertolt Brecht»)

As taken from its website.
It is pronuced as a -kh and not -ks as in text, becuase the X is not a X, but the greek later chi :

# answer re: What is the correct pronunciation of TeX and LaTeX?

121

Let the creators of TeX and LaTeX answer:

Donald Knuth wrote in the first chapter of his TeXbook:

English words like ‘technology’ stem from a Greek root beginning with the letters τεχ...; and this same Greek word means art as well as technology. Hence the name TeX, which is…

## What can one do with LaTex

As said, LaTex is a typesetting system, which means it can be used to write documents in a good design. One can write articles, papers, make slides and slideshows, CV and also write books using LaTex.

## Setting up LaTex

### For Windows and MacOS, as well as using online

please check the official guide here : https://www.latex-project.org/get/ , as I do not use these OS 😅

### For Linux

I am using Ubuntu, and the process shown will be based on that, but similar process should work on other distributions as well.

Many of the search answers tell to install texlive-full package, which contains all packages related to Tex. This has downside that the download bundle is of ~ 2 GB, and it occupies ~ 5 GB after installing, and it also contains all extra packages that one may not use, such as support for Japanese,Arabic,Cyrillic languages and other extra things.

Refer to this answer, for a better analysis of what different packages actually contain :

# answer re: Differences between texlive packages in Linux

17

Note: I have referred to a fresh new Debian GNU/Linux 10.0 (buster) installation while writing this answer. Since Ubuntu is a Debian-based distribution, I would expect these details to be similar in Ubuntu as well.

The table below shows the size of archives that would be downloaded and the additional…

I am installing texlive-latex-extra, with texlive-science and texlive-pictures. For a complete list of available packages, you can run

sudo apt search latex


which will give complete list of available packages.
To check size of installation and which extra packages will be install, run

sudo apt-get install packagename


This should display names of packages to be installed and size of download, and size on disk after installation, type n and enter to cancel actual installation.

To install above mentioned packages, I used

sudo apt-get install texlive-latex-extra texlive-science texlive-pictures


As I use vs code as my editor, I'll also install the LaTex Workshop extension : https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop

For this to work, One also needs to install texlive-extra-utils and latexmk:

sudo apt-get install texlive-extra-utils latexmk


If you are using a different editor, you may not need to install this.
This extension auto compiles documents to pdf on save (One can change this), as well as display the generated pdf in teh vs code itself.

For a very basic document:

\documentclass{article}
\begin{document}
\title{Introduction To \LaTeX}
\author{YJDoc2}
\date{}
\maketitle
Hello \LaTeX World!
\end{document}


It shows as this :

This is the basic setup for the LaTex use.

Thank You!

Notes :