1
\DeclareRobustCommand{\dateforheader}{\formatdate{\StrBeh
ind{\currfiledir}{/}[\currfilesubdir]\StrBefore{\currlast
dir}{/}}{\StrBefore{\parentfiledir}{/}}{2015}}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LaTeX

Compile Error

1. Check the configured compile mode in settings

2. Check the LaTeX log file: