Am 18.10.2016 um 17:43 schrieb edu Gpl:
"What is your error message?"
the error msg:
\AtBeginEnvironment
{ }{\selectlanguage{}}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it
This error is because you have these 2 lines in your document preamble:
\AtBeginEnvironment{ }{\selectlanguage{english}}
\AtBeginEnvironment{ }{\selectlanguage{}}
This is wrong LaTeX. \AtBeginEnvironment only makes sense if you specify
the environment you are referring to. For example
\AtBeginEnvironment{appendices}
if you want to change the appendices environment.
\selectlanguage{} is also incorrect because you need to specify a valid
babel language name. For example
\selectlanguage{english}
as you have done it above.
regards Uwe
p.s. please always CC the mailing list in replies so that everybody
could follow the discussion and help you