Minimal-Compiling-But-Not-Working Example:
\begin{filecontents}{\jobname.cls}
\ProvidesClass{\jobname}
\RequirePackage{l3keys2e}
\ExplSyntaxOn
\keys_define:nn { job / doc }
{
doc~name .tl_set:N = \l_job_doc_name,
}
\ProcessKeysOptions { job / doc }
\ExplSyntaxOff
\PassOptionsToClass{10pt}{article}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}
}
\ProcessOptions
\LoadClass{article}
\ExplSyntaxOn
\AtBeginDocument{
This ~ document's ~ name ~ is ~ \l_job_doc_name .\par
}
\ExplSyntaxOff
\endinput
\end{filecontents}
\documentclass[doc name=ben]{\jobname}
\begin{document}
hello
\end{document}
I would expect this to give me 'This document's name is ben.' then a new line, then 'hello'. However, that doesn't happen any longer, although (a much more complex version of) this code used to work.
doc name
being an unknown option – user31729 Jan 26 '18 at 19:12\documentclass[10pt,{doc name=ben}]{\jobname}
– user31729 Jan 26 '18 at 19:29