The following code leads to an error

! LaTeX Error: File `scrlayer-scrpage.sty' not found.

Here is my code:



\cfoot{Le pied de page}
\lehead{En haut à gauche pair}
\lohead{En haut à gauche impair}
\cehead{centre pair}
\cohead{centre impair}

My first latex document

Hello world !

I don't understand why since KOMA-script is installed (if I remove the scrlayer-scrpage line, it works). I run pdftex under Mac OSX 10.9.1 (pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)).

What should I do to use scrlayer-scrpage package ?


As indicated in comments, the problem came from an incomplete update of the packages. So contacting the responsible for scrlayer-scrpage package was the solution, and then update your installation.

  • You should update to the latest KOMA-Script version 3.12.
    – Speravir
    Commented Feb 12, 2014 at 23:58
  • 1
    Welcome to TeX SE. You can update KOMA-Script, as @Speravir, suggests by updating your installation of TeX using tlmgr (or a GUI wrapper if MacTeX provides one - I'm assuming you're using MacTeX). In Terminal, you would write sudo tlmgr update --all and give your password.
    – cfr
    Commented Feb 12, 2014 at 23:59
  • I forgot it totally, cfr forgot the link, so: Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.
    – Speravir
    Commented Feb 13, 2014 at 0:02
  • And since scrlayer-scrpage is the successor of scrpage2 you do not need at all to load the latter.
    – Speravir
    Commented Feb 13, 2014 at 0:34
  • 4
    This question appears to be off-topic because the underlying issue is caused by an outdated version of KOMA-Script.
    – Speravir
    Commented Feb 13, 2014 at 4:51


Browse other questions tagged .