The following code leads to an error
! LaTeX Error: File `scrlayer-scrpage.sty' not found.
Here is my code:
\documentclass[fontsize=10,a4paper,twoside]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[automark,headsepline,footsepline]{scrlayer-scrpage}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}
\usepackage{a4}
\usepackage{scrpage2}
\KOMAoptions{BCOR=2mm,DIV=15}
\pagestyle{scrheadings}
\cfoot{Le pied de page}
\lehead{En haut à gauche pair}
\lohead{En haut à gauche impair}
\cehead{centre pair}
\cohead{centre impair}
\begin{document}
My first latex document
Hello world !
\end{document}
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 ?
EDIT: THE SOLUTION
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.
tlmgr
(or a GUI wrapper if MacTeX provides one - I'm assuming you're using MacTeX). In Terminal, you would writesudo tlmgr update --all
and give your password.scrlayer-scrpage
is the successor ofscrpage2
you do not need at all to load the latter.