[Tex/LaTex] LaTeX Error: File “XCharter.sty” not found

errorspackages

I'm using TexMaker on Xubuntu.

When I try to compile my file .tex, TexMaker says LaTeX Error: File XCharter.sty not found.

This error is in line 23, which says \usepackage[spanish]{babel}.

Could someone help me?

Thanks!

Best Answer

Open a Terminal. Then:

tlmgr Install xcharter

In some cases, you may need this, instead:

sudo tlmgr Install xcharter
(then provide password)

You may also need to intall this package: ly1

In the preamble:

\usepackage{XCharter} % capital X capital C

Tested and works for me, with article class, either pdfLaTeX or LuaLaTeX.