Install XeLaTeX | Generated by AI

Home PDF

To install XeLaTeX on Ubuntu 24.04 or 22.04, follow these steps:

  1. Update the package list:
    sudo apt update
    
  2. 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 texlive instead, but texlive-xetex is preferred for XeLaTeX support.
  3. Verify installation: Run the following command to check if XeLaTeX is installed:
    xelatex --version
    

    You should see output like XeTeX 3.14159265-2.6-0.999991 (version numbers may vary).

  4. Optional: Install additional fonts (if you need specific fonts for XeLaTeX):
    sudo apt install texlive-fonts-extra
    
  5. Test XeLaTeX: Create a simple .tex file, e.g., test.tex:
    \documentclass{article}
    \usepackage{fontspec}
    \setmainfont{Liberation Serif}
    \begin{document}
    Hello, XeLaTeX!
    \end{document}
    

    Compile it with:

    xelatex test.tex
    

    This should generate a test.pdf file.

Notes:

Let me know if you need further assistance!


Back 2025.06.18 Donate