📜  texlive 2019 in ubuntu 18.4 - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:47:57.483000             🧑  作者: Mango

Texlive 2019 in Ubuntu 18.4 - Shell-Bash

If you are a programmer and need to work with LaTeX, then you should know about Texlive 2019. Texlive is a comprehensive TeX distribution that offers many tools and packages to make your work with LaTeX easier.

In this tutorial, we will show you how to install Texlive 2019 in Ubuntu 18.4 using Shell-Bash commands.

Step-by-Step Guide
Step 1: Update your system

Before installing Texlive 2019, make sure your Ubuntu 18.4 is up-to-date. Open the terminal and type the following command:

sudo apt update && sudo apt upgrade
Step 2: Install Texlive 2019

Now, let's install Texlive 2019! Type the following command in your terminal:

sudo apt install texlive-full
Step 3: Check your Texlive version

After installation, you can check your Texlive version by typing:

tex --version

If you see a message like this:

TeX 3.14159265 (TeX Live 2019/Debian)

Congratulations! You have successfully installed Texlive 2019.

Step 4: Use Texlive

Now, you can use Texlive to create and compile LaTeX documents. To compile a sample LaTeX file, create a file named sample.tex in your working directory, and paste the following content:

\documentclass{article}
\usepackage{lipsum}
\title{Sample Document}
\author{John Doe}
\begin{document}
\maketitle
\section{Introduction}
\lipsum[1-4]
\end{document}

Save the file and open your terminal. Navigate to your working directory and type the following command:

pdflatex sample.tex

This command will create a PDF file named sample.pdf. You can open it and see the output.

Conclusion

In this tutorial, we have shown you how to install Texlive 2019 in Ubuntu 18.4 using Shell-Bash commands. After installation, you can use Texlive to create and compile LaTeX documents easily.