[Tex/LaTex] xfrac.sty not found

packagestexlivexfrac

I am using Tex Live 2011 on Windows, and when I compile (vim-latex) my file:

\documentclass{article}
\usepackage{amsmath}

% makes for prettier typography
\usepackage{microtype}
% For slanted fractions e.g. 4/4
\usepackage{xfrac}

\begin{document}
%\input{title.tex}

\include{main}
\end{document

I get the following error:

template.tex|| File `xfrac.sty' not found.
template.tex|8 error| Emergency stop.
template.tex|| ==> Fatal error occurred, no output PDF file produced

Any ideas?

Best Answer

The command tlmgr search --file xfrac.sty says that xfrac.sty is installed by the package l3packages. So installing this package from tlmgr interface (or updating it if you have an old version) will install this file.

Related Question