Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9166 from dham/container-latex
Support containers in LaTeX output.
- Loading branch information
Showing
6 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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}}% | ||
}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. container:: classname | ||
|
||
text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters