File: sphinxlatexcontainers.sty

package info (click to toggle)
s3ql 5.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,416 kB
  • sloc: python: 19,027; cpp: 408; makefile: 147; sh: 133
file content (22 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%% CONTAINER DIRECTIVES
%
% change this info string if making any custom modification
\ProvidesFile{sphinxlatexcontainers.sty}[2021/05/03 containers]

% The purpose of this file is to provide a dummy environment sphinxclass which
% will be inserted for each class in each container directive. The class name
% will be passed as the argument to the environment. 
%
% For a class foo, the user can define customised handling of that class by
% defining the sphinxclassfoo LaTeX environment.

\newenvironment{sphinxuseclass}[1]{%
    \def\sphinxClassFunctionName{sphinxclass#1}%
    \ltx@ifundefined{\sphinxClassFunctionName}%
        {}% undefined so do nothing
        {\expandafter\begin\expandafter{\sphinxClassFunctionName}}%
}{%
    \ltx@ifundefined{\sphinxClassFunctionName}%
        {}% we did nothing so we keep doing nothing
        {\expandafter\end\expandafter{\sphinxClassFunctionName}}%
}%