TeX Live is a comprehensive typesetting system for producing high-quality documents, especially for those who need to work with LaTeX. Installing TeX Live on Ubuntu 24.04 can be done easily through the package manager. This guide will walk you through the installation process step-by-step.
Step 1: Update Your Package List
Before installing any new software, it's a good practice to update your package list. Open a terminal and run the following command:
sudo apt update
Step 2: Install TeX Live
After updating the package list, you can install TeX Live by running the following command:
sudo apt install texlive
This command installs the basic TeX Live packages. If you need additional packages and features, you can install more specific collections.
Step 3: Installing Additional Packages (Optional)
If you require more comprehensive support for LaTeX documents, you may want to install additional packages. Here are some common options:
-
TeX Live Full: This includes everything TeX Live has to offer.
sudo apt install texlive-full
-
TeX Live Latex Extra: Useful for most LaTeX users.
sudo apt install texlive-latex-extra
-
TeX Live Fonts Extra: Provides a wide range of fonts.
sudo apt install texlive-fonts-extra
Step 4: Verify the Installation
Once the installation is complete, verify that TeX Live is installed correctly. You can check the version by running:
tex --version
You should see the version of TeX Live that you installed.
Step 5: Creating a Simple Document
Now that you have TeX Live installed, you can create a simple LaTeX document. Use any text editor to create a file called example.tex
:
\documentclass{article}
\begin{document}
\title{Hello, World!}
\author{Your Name}
\date{\today}
\maketitle
This is a simple LaTeX document.
\end{document}
To compile this document into a PDF, run the following command:
pdflatex example.tex
After running this command, you will see a PDF file named example.pdf
created in your directory.
Conclusion
You've successfully installed TeX Live on Ubuntu 24.04! Whether you are writing a research paper, a thesis, or any other document, TeX Live provides a powerful toolset for typesetting your text beautifully. Happy typesetting!