TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed Tex Live 2010 on a mac, and when trying to use xelatex, I get the error:

!Latex Error: File `expl3.sty' not found

What is this package, and how can I get it installed on tex live? There are no updates available, according to the Tex Live utility.

Update: I've found the 'tlmgr' utility, and done: sudo tlmgr install expl3

So far, so good. Unfortunately, I am now told I need xparse.sty. xparse.sty is not available through tlmgr ("package xparse not present in package repository").

Needless to say, I am not using xparse directly, nor am I directly using calc.sty, which is the file that was mentioned just before this error.

Further update: xparse is obtained by installing 'xpackages'.

share|improve this question
up vote 8 down vote accepted

It's a wrapper package used by various packages which rely on some experimental pieces of the LaTeX3 project. See here

To install it, open a terminal and type:

sudo tlmgr install expl3

Oops, now seen your edit. Try:

sudo tlmgr install xpackages

It might be necessary to do an update your system:

sudo tlmgr update -self -all

share|improve this answer
Thanks for these, and sorry to edit so rapidly, creating the conversation problem above! – Marcin Feb 2 '11 at 16:24
For the newer versions, one might need l3kernel and l3packages. – zeroth Sep 5 '12 at 11:34

When the name of the TeX Live package containing a given file isn't obvious, you can ask tlmgr about it:

$ tlmgr search --global --file xparse.sty
tlmgr: package repository /home/mpg/tl/trunk/Master

Then use tlmgr install to install the required package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.