1%% CONTAINER DIRECTIVES 2% 3% change this info string if making any custom modification 4\ProvidesFile{sphinxlatexcontainers.sty}[2021/05/03 containers] 5 6% The purpose of this file is to provide a dummy environment sphinxclass which 7% will be inserted for each class in each container directive. The class name 8% will be passed as the argument to the environment. 9% 10% For a class foo, the user can define customised handling of that class by 11% defining the sphinxclassfoo LaTeX environment. 12 13\newenvironment{sphinxuseclass}[1]{% 14 \def\sphinxClassFunctionName{sphinxclass#1}% 15 \ltx@ifundefined{\sphinxClassFunctionName}% 16 {}% undefined so do nothing 17 {\expandafter\begin\expandafter{\sphinxClassFunctionName}}% 18}{% 19 \ltx@ifundefined{\sphinxClassFunctionName}% 20 {}% we did nothing so we keep doing nothing 21 {\expandafter\end\expandafter{\sphinxClassFunctionName}}% 22}% 23