Install XeLaTeX | Generated by AI
To install XeLaTeX on Ubuntu 24.04 or 22.04, follow these steps:
- Update the package list:
sudo apt update - Install TeX Live (which includes XeLaTeX):
- For a full installation (recommended for most users, includes XeLaTeX and many packages):
sudo apt install texlive-xetex - If you want a minimal installation, you can install
texliveinstead, buttexlive-xetexis preferred for XeLaTeX support.
- For a full installation (recommended for most users, includes XeLaTeX and many packages):
- Verify installation:
Run the following command to check if XeLaTeX is installed:
xelatex --versionYou should see output like
XeTeX 3.14159265-2.6-0.999991(version numbers may vary). - Optional: Install additional fonts (if you need specific fonts for XeLaTeX):
sudo apt install texlive-fonts-extra - Test XeLaTeX:
Create a simple
.texfile, e.g.,test.tex:\documentclass{article} \usepackage{fontspec} \setmainfont{Liberation Serif} \begin{document} Hello, XeLaTeX! \end{document}Compile it with:
xelatex test.texThis should generate a
test.pdffile.
Notes:
- The
texlive-xetexpackage is available in Ubuntu 22.04 and 24.04 repositories. - If you need the latest TeX Live version, you can install it manually from the TeX Live website, but the Ubuntu package is usually sufficient.
- Ensure you have enough disk space (~1-2 GB for
texlive-xetex, more fortexlive-full). - If you encounter issues, check for missing dependencies with
sudo apt install -f.
Let me know if you need further assistance!