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?


  • 2
    Welcome to TeX SX! Is xcharter installed? – Bernard Apr 1 '17 at 1:23
  • How can I know if is xcharter installed? – Gabina Luz Apr 1 '17 at 14:09
  • TeX Live Package Manager (tlmgr) tells you, normally. – Bernard Apr 1 '17 at 14:10
  • What if I don't have tlmgr? Then how do I tell if xcharter is installed? – Noah Sussman Jan 2 '18 at 17:07

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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