|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01] |
|
\ProvidesPackage{sphinx}[2024/10/11 v8.1.1 Sphinx LaTeX package (sphinx-doc)] |
|
|
|
|
|
|
|
|
|
|
|
\RequirePackage{ltxcmds} |
|
|
|
|
|
\newcommand\sphinxdeprecationwarning[4]{ |
|
|
|
{ |
|
\edef\spx@tempa{\detokenize{#1}} |
|
\ltx@ifundefined{sphinx_depr_\spx@tempa}{ |
|
\global\expandafter\let\csname sphinx_depr_\spx@tempa\endcsname\spx@tempa |
|
\expandafter\AtEndDocument\expandafter{\expandafter\let\expandafter |
|
\sphinxdeprecatedmacro\csname sphinx_depr_\spx@tempa\endcsname |
|
\PackageWarningNoLine{sphinx}{^^J**** SPHINX DEPRECATION WARNING:^^J |
|
\sphinxdeprecatedmacro^^J |
|
\@spaces- is deprecated at Sphinx #2^^J |
|
\@spaces- and removed at Sphinx #3.^^J |
|
#4^^J****}} |
|
}{ |
|
} |
|
} |
|
} |
|
|
|
|
|
\newcommand\sphinxbuildwarning[2][]{ |
|
\ifcsname sphinx_emitted_#2\endcsname |
|
\else |
|
\global\expandafter\let\csname sphinx_emitted_#2\endcsname\@empty |
|
\AtEndDocument{\hbox{ |
|
|
|
|
|
|
|
\if\relax\detokenize{#1}\relax |
|
|
|
\bfseries\color{red} |
|
\@nameuse{sphinx_buildwarning_#2} |
|
\fi |
|
|
|
\let\nfss@text\@gobble |
|
\ref{!!\@nameuse{sphinx_buildwarning_#2}} |
|
} |
|
} |
|
\fi |
|
} |
|
\@namedef{sphinx_buildwarning_badtitlesec}{ |
|
Your system has titlesec version 2.10.1 which causes disappearance |
|
of section numbers; check the latex log warning for details} |
|
\@namedef{sphinx_buildwarning_booktabs}{ |
|
Some tables with booktabs class (check latex log) but booktabs |
|
package not loaded; add its loading to the latex preamble} |
|
\@namedef{sphinx_buildwarning_badfootnotes}{ |
|
Footnote rendering may have had problems, due to extra package or |
|
document class; check latex log for instructions} |
|
\@namedef{sphinx_buildwarning_badiconpackage}{ |
|
You have set iconpackage=\spx@opt@iconpackage, but this LaTeX package |
|
is not found} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\RequirePackage{xcolor} |
|
|
|
|
|
\newcommand{\sphinxcolorlet}[2] |
|
{\expandafter\let\csname\@backslashchar color@#1\expandafter\endcsname |
|
\csname\@backslashchar color@#2\endcsname } |
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spx@defineorletcolor#1{ |
|
\def\spx@definedcolor{{#1}} |
|
\futurelet\spx@token\spx@defineorlet} |
|
\def\spx@defineorlet{ |
|
\ifx\spx@token\bgroup |
|
\expandafter\spx@definecolor\else\expandafter\spx@colorlet\fi} |
|
\def\spx@colorlet#1\relax{\expandafter\colorlet\spx@definedcolor{#1}} |
|
\def\spx@definecolor{\expandafter\definecolor\spx@definedcolor} |
|
|
|
\newcommand*{\spx@DeclareColorOption}[3][]{ |
|
|
|
|
|
|
|
|
|
\spx@defineorletcolor{#1#2}#3\relax |
|
|
|
|
|
\define@key{sphinx}{#2}{\spx@defineorletcolor{#1#2}##1\relax} |
|
} |
|
|
|
|
|
\RequirePackage{kvoptions} |
|
\SetupKeyvalOptions{prefix=spx@opt@} |
|
|
|
|
|
\DeclareBoolOption[false]{booktabs} |
|
\DeclareBoolOption[false]{borderless} |
|
\DeclareBoolOption[true]{booktabscolorgaps} |
|
\DeclareVoidOption{booktabsnogaps}{ |
|
\ifx\@nodocument\relax |
|
|
|
\expandafter\@firstofone |
|
\else |
|
|
|
\expandafter\AtBeginDocument |
|
\fi |
|
{\ifdefined\abovetopsep |
|
\abovetopsep\z@\belowrulesep\z@\aboverulesep\z@\belowbottomsep\z@ |
|
\fi |
|
} |
|
} |
|
|
|
\DeclareBoolOption[false]{colorrows} |
|
|
|
\ifx\@jsc@uplatextrue\@undefined |
|
\DeclareStringOption[1in]{hmargin} |
|
\DeclareStringOption[1in]{vmargin} |
|
\DeclareStringOption[.5in]{marginpar} |
|
\else |
|
|
|
\DeclareStringOption[\inv@mag in]{hmargin} |
|
\DeclareStringOption[\inv@mag in]{vmargin} |
|
\DeclareStringOption[.5\dimexpr\inv@mag in\relax]{marginpar} |
|
\fi |
|
|
|
\DeclareStringOption[0]{maxlistdepth} |
|
\DeclareStringOption[-1]{numfigreset} |
|
\DeclareBoolOption[false]{nonumfigreset} |
|
\DeclareBoolOption[false]{mathnumfig} |
|
\DeclareStringOption[.]{mathnumsep} |
|
\define@key{sphinx}{bookmarksdepth}{\AtBeginDocument{\hypersetup{bookmarksdepth=#1}}} |
|
\AtBeginDocument{\define@key{sphinx}{bookmarksdepth}{\hypersetup{bookmarksdepth=#1}}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\DeclareBoolOption[true]{verbatimwithframe} |
|
\DeclareBoolOption[true]{verbatimwrapslines} |
|
\DeclareBoolOption[false]{verbatimforcewraps} |
|
\DeclareStringOption[3]{verbatimmaxoverfull} |
|
\DeclareStringOption[100]{verbatimmaxunderfull} |
|
\DeclareBoolOption[true]{verbatimhintsturnover} |
|
\DeclareBoolOption[true]{inlineliteralwraps} |
|
\DeclareStringOption[t]{literalblockcappos} |
|
\DeclareStringOption[r]{verbatimcontinuedalign} |
|
\DeclareStringOption[r]{verbatimcontinuesalign} |
|
|
|
\DeclareBoolOption[true]{parsedliteralwraps} |
|
|
|
\DeclareStringOption[\textcolor{red}{\textvisiblespace}]{verbatimvisiblespace} |
|
\DeclareStringOption |
|
[{\makebox[2\fontcharwd\font`\x][r]{\textcolor{red}{\tiny$\m@th\hookrightarrow$}}}] |
|
{verbatimcontinued} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\DeclareStringOption[\mbox{ }]{AtStartFootnote} |
|
|
|
\newcommand*{\sphinxAtStartFootnote}{\spx@opt@AtStartFootnote} |
|
|
|
\DeclareStringOption[\leavevmode\unskip]{BeforeFootnote} |
|
|
|
|
|
|
|
|
|
|
|
|
|
\DeclareStringOption[\sffamily\bfseries]{HeaderFamily} |
|
|
|
|
|
|
|
|
|
\spx@DeclareColorOption{TitleColor}{{rgb}{0.126,0.263,0.361}} |
|
\spx@DeclareColorOption{InnerLinkColor}{{rgb}{0.208,0.374,0.486}} |
|
\spx@DeclareColorOption{OuterLinkColor}{{rgb}{0.216,0.439,0.388}} |
|
|
|
\spx@DeclareColorOption{VerbatimColor}{{RGB}{242,242,242}} |
|
\spx@DeclareColorOption{VerbatimBorderColor}{{RGB}{32,32,32}} |
|
|
|
|
|
|
|
|
|
\spx@DeclareColorOption[sphinx]{TableRowColorHeader}{{gray}{0.86}} |
|
\spx@DeclareColorOption[sphinx]{TableRowColorOdd}{{gray}{0.92}} |
|
\spx@DeclareColorOption[sphinx]{TableRowColorEven}{{gray}{0.98}} |
|
|
|
\def\sphinxTableMergeColorHeader{sphinxTableRowColorHeader} |
|
\define@key{sphinx}{TableMergeColorHeader}{ |
|
\spx@defineorletcolor{sphinxTableMergeColorHeader}#1\relax |
|
\def\sphinxTableMergeColorHeader{sphinxTableMergeColorHeader} |
|
} |
|
\def\sphinxTableMergeColorOdd{sphinxTableRowColorOdd} |
|
\define@key{sphinx}{TableMergeColorOdd}{ |
|
\spx@defineorletcolor{sphinxTableMergeColorOdd}#1\relax |
|
\def\sphinxTableMergeColorOdd{sphinxTableMergeColorOdd} |
|
} |
|
\def\sphinxTableMergeColorEven{sphinxTableRowColorEven} |
|
\define@key{sphinx}{TableMergeColorEven}{ |
|
\spx@defineorletcolor{sphinxTableMergeColorEven}#1\relax |
|
\def\sphinxTableMergeColorEven{sphinxTableMergeColorEven} |
|
} |
|
|
|
\spx@DeclareColorOption[sphinx]{VerbatimHighlightColor}{{rgb}{0.878,1,1}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\definecolor{sphinx-admonition-bgcolor} {RGB}{247, 247, 247} |
|
\definecolor{sphinx-admonition-bordercolor} {RGB}{134, 152, 155} |
|
\definecolor{sphinx-warning-bordercolor} {RGB}{148, 0, 0} |
|
\definecolor{sphinx-error-bordercolor} {RGB}{180, 0, 0} |
|
\spx@DeclareColorOption[sphinx]{noteBorderColor} {sphinx-admonition-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{hintBorderColor} {sphinx-admonition-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{importantBorderColor}{sphinx-admonition-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{tipBorderColor} {sphinx-admonition-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{seealsoBorderColor} {sphinx-admonition-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{todoBorderColor} {sphinx-admonition-bordercolor} |
|
|
|
\spx@DeclareColorOption[sphinx]{noteBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{hintBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{importantBgColor}{sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{tipBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{seealsoBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{todoBgColor} {sphinx-admonition-bgcolor} |
|
|
|
\spx@DeclareColorOption[sphinx]{warningBorderColor} {sphinx-warning-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{cautionBorderColor} {sphinx-warning-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{attentionBorderColor}{sphinx-warning-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{dangerBorderColor} {sphinx-warning-bordercolor} |
|
\spx@DeclareColorOption[sphinx]{errorBorderColor} {sphinx-error-bordercolor} |
|
|
|
\spx@DeclareColorOption[sphinx]{warningBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{cautionBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{attentionBgColor}{sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{dangerBgColor} {sphinx-admonition-bgcolor} |
|
\spx@DeclareColorOption[sphinx]{errorBgColor} {sphinx-admonition-bgcolor} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spxstring@none{none} |
|
\def\spxstring@clone{clone} |
|
|
|
|
|
|
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname #1border@top\expandafter\endcsname |
|
\csname #1border@right\expandafter\endcsname |
|
\csname #1border@bottom\expandafter\endcsname |
|
\csname #1border@left\expandafter\endcsname |
|
\csname if#1border@open\expandafter\endcsname |
|
\csname #1border@opentrue\expandafter\endcsname |
|
\csname #1border@openfalse\endcsname |
|
} |
|
\def\spx@tempb #1#2#3#4#5#6#7#8#9{ |
|
\define@key{sphinx}{#8border-top-width}{\def#1{##1}} |
|
\define@key{sphinx}{#8border-right-width}{\def#2{##1}} |
|
\define@key{sphinx}{#8border-bottom-width}{\def#3{##1}} |
|
\define@key{sphinx}{#8border-left-width}{\def#4{##1}} |
|
\define@key{sphinx}{#8border-width}{ |
|
|
|
\def#1{##1}\let#2#1\let#3#1\let#4#1 |
|
} |
|
\newif#5 |
|
|
|
|
|
\define@key{sphinx}{#8box-decoration-break} |
|
{\begingroup\edef\spx@tempa{##1}\expandafter\endgroup |
|
\ifx\spx@tempa\spxstring@clone#7\else#6\fi} |
|
|
|
|
|
#6 |
|
|
|
|
|
\expandafter\let\csname KV@sphinx@#9\expandafter\endcsname |
|
\csname KV@sphinx@#8border-width\endcsname |
|
|
|
\csname KV@sphinx@#8border-width\endcsname |
|
} |
|
|
|
|
|
|
|
|
|
\spx@tempa{spx@pre@} {pre_} {verbatimborder} {0.4pt} |
|
\spx@tempa{spx@topic@} {div.topic_} {shadowrule} {0.5pt} |
|
\spx@tempa{spx@contents@} {div.contents_} {shadowrule} {0.5pt} |
|
\spx@tempa{spx@sidebar@} {div.sidebar_} {shadowrule} {1pt} |
|
|
|
|
|
\def\KV@sphinx@shadowrule #1{ |
|
\@nameuse{KV@sphinx@div.topic_border-width}{#1} |
|
\@nameuse{KV@sphinx@div.contents_border-width}{#1} |
|
\@nameuse{KV@sphinx@div.sidebar_border-width}{#1} |
|
} |
|
\spx@tempa{spx@note@} {div.note_} {noteborder} {0.5pt} |
|
\spx@tempa{spx@hint@} {div.hint_} {hintborder} {0.5pt} |
|
\spx@tempa{spx@important@}{div.important_}{importantborder}{0.5pt} |
|
\spx@tempa{spx@tip@} {div.tip_} {tipborder} {0.5pt} |
|
\spx@tempa{spx@seealso@} {div.seealso_} {seealsoborder} {0.5pt} |
|
\spx@tempa{spx@todo@} {div.todo_} {todoborder} {0.5pt} |
|
\spx@tempa{spx@warning@} {div.warning_} {warningborder} {1pt} |
|
\spx@tempa{spx@caution@} {div.caution_} {cautionborder} {1pt} |
|
\spx@tempa{spx@attention@}{div.attention_}{attentionborder}{1pt} |
|
\spx@tempa{spx@danger@} {div.danger_} {dangerborder} {1pt} |
|
\spx@tempa{spx@error@} {div.error_} {errorborder} {1.25pt} |
|
|
|
\spx@tempa{spx@box@} {box_} {box_border-width}{0.4pt} |
|
|
|
|
|
\spx@box@border@openfalse |
|
|
|
|
|
|
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname #1padding@top\expandafter\endcsname |
|
\csname #1padding@right\expandafter\endcsname |
|
\csname #1padding@bottom\expandafter\endcsname |
|
\csname #1padding@left\endcsname |
|
} |
|
\def\spx@tempb #1#2#3#4#5#6#7#8#9{ |
|
\define@key{sphinx}{#5padding-top}{\def#1{##1}} |
|
\define@key{sphinx}{#5padding-right}{\def#2{##1}} |
|
\define@key{sphinx}{#5padding-bottom}{\def#3{##1}} |
|
\define@key{sphinx}{#5padding-left}{\def#4{##1}} |
|
\define@key{sphinx}{#5padding}{ |
|
\def#1{##1}\let#2#1\let#3#1\let#4#1 |
|
} |
|
|
|
\def#1{#6}\def#2{#7}\def#3{#8}\def#4{#9} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\spx@tempa{spx@pre@} {pre_} {3pt}{3pt}{3pt}{3pt} |
|
\spx@tempa{spx@topic@} {div.topic_} {6pt}{7pt}{6pt}{7pt} |
|
|
|
\spx@tempa{spx@contents@} {div.contents_} {10pt}{7pt}{12pt}{7pt} |
|
\spx@tempa{spx@sidebar@} {div.sidebar_} {6pt}{6.5pt}{6pt}{6.5pt} |
|
|
|
\spx@tempa{spx@note@} {div.note_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@hint@} {div.hint_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@important@}{div.important_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@tip@} {div.tip_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@seealso@} {div.seealso_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@todo@} {div.todo_} {6pt}{7pt}{6pt}{7pt} |
|
\spx@tempa{spx@warning@} {div.warning_} {6pt}{6.5pt}{6pt}{6.5pt} |
|
\spx@tempa{spx@caution@} {div.caution_} {6pt}{6.5pt}{6pt}{6.5pt} |
|
\spx@tempa{spx@attention@}{div.attention_} {6pt}{6.5pt}{6pt}{6.5pt} |
|
\spx@tempa{spx@danger@} {div.danger_} {6pt}{6.5pt}{6pt}{6.5pt} |
|
\spx@tempa{spx@error@} {div.error_} {6pt}{6.25pt}{6pt}{6.25pt} |
|
\spx@tempa{spx@box@} {box_} {3pt}{3pt}{3pt}{3pt} |
|
|
|
\expandafter\let\expandafter\KV@sphinx@verbatimsep\csname KV@sphinx@pre_padding\endcsname |
|
|
|
|
|
\def\KV@sphinx@shadowsep #1{ |
|
\@nameuse{KV@sphinx@div.topic_padding}{#1} |
|
\@nameuse{KV@sphinx@div.contents_padding}{#1} |
|
\@nameuse{KV@sphinx@div.sidebar_padding}{#1} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname #1radius@topleft\expandafter\endcsname |
|
\csname #1radius@topright\expandafter\endcsname |
|
\csname #1radius@bottomright\expandafter\endcsname |
|
\csname #1radius@bottomleft\endcsname |
|
} |
|
\def\spx@tempb #1#2#3#4#5#6#7#8#9{ |
|
\define@key{sphinx}{#5border-top-left-radius}{\def#1{##1}} |
|
\define@key{sphinx}{#5border-top-right-radius}{\def#2{##1}} |
|
\define@key{sphinx}{#5border-bottom-right-radius}{\def#3{##1}} |
|
\define@key{sphinx}{#5border-bottom-left-radius}{\def#4{##1}} |
|
\define@key{sphinx}{#5border-radius}{\def#1{##1}\let#2#1\let#3#1\let#4#1} |
|
\def#1{#6}\def#2{#7}\def#3{#8}\def#4{#9} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\spx@tempa{spx@pre@} {pre_} {3pt}{3pt}{3pt}{3pt} |
|
|
|
\spx@tempa{spx@topic@} {div.topic_} {8pt}{8pt}{8pt}{8pt} |
|
|
|
\spx@tempa{spx@contents@} {div.contents_} \z@ \z@ {12pt} \z@ |
|
|
|
|
|
\spx@tempa{spx@sidebar@} {div.sidebar_} {12pt}\z@ {12pt} \z@ |
|
\spx@tempa{spx@note@} {div.note_} {5pt}{5pt}{5pt}{5pt} |
|
\spx@tempa{spx@hint@} {div.hint_} {5pt}{5pt}{5pt}{5pt} |
|
\spx@tempa{spx@important@}{div.important_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@tip@} {div.tip_} {5pt}{5pt}{5pt}{5pt} |
|
\spx@tempa{spx@seealso@} {div.seealso_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@todo@} {div.todo_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@warning@} {div.warning_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@caution@} {div.caution_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@attention@}{div.attention_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@danger@} {div.danger_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@error@} {div.error_} \z@\z@\z@\z@ |
|
\spx@tempa{spx@box@} {box_} {3pt}{3pt}{3pt}{3pt} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname if#1withshadow\expandafter\endcsname |
|
\csname if#1insetshadow\endcsname |
|
} |
|
\def\spx@tempb#1#2{\newif#1\newif#2} |
|
|
|
\spx@tempa{spx@pre@} |
|
\spx@tempa{spx@topic@} |
|
\spx@tempa{spx@contents@} |
|
\spx@tempa{spx@sidebar@} |
|
\spx@tempa{spx@note@} |
|
\spx@tempa{spx@hint@} |
|
\spx@tempa{spx@important@} |
|
\spx@tempa{spx@tip@} |
|
\spx@tempa{spx@seealso@} |
|
\spx@tempa{spx@todo@} |
|
\spx@tempa{spx@warning@} |
|
\spx@tempa{spx@caution@} |
|
\spx@tempa{spx@attention@} |
|
\spx@tempa{spx@danger@} |
|
\spx@tempa{spx@error@} |
|
\spx@tempa{spx@box@} |
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname #1withshadowtrue\expandafter\endcsname |
|
\csname #1withshadowfalse\expandafter\endcsname |
|
\csname #1insetshadowtrue\expandafter\endcsname |
|
\csname #1insetshadowfalse\expandafter\endcsname |
|
\csname #1shadow@setter\expandafter\endcsname |
|
\csname #1shadow@xoffset\expandafter\endcsname |
|
\csname #1shadow@yoffset\endcsname |
|
} |
|
\def\spx@tempb#1#2#3#4#5#6#7#8{ |
|
\define@key{sphinx}{#8box-shadow}{#5##1 {} {} \@nnil} |
|
\def#5##1 ##2 ##3 ##4\@nnil{ |
|
\begingroup\edef\spx@tempa{##1}\expandafter\endgroup |
|
\ifx\spx@tempa\spxstring@none |
|
#2 |
|
|
|
|
|
|
|
|
|
|
|
\else #1 |
|
\def#6{##1} |
|
\if\relax\detokenize{##2}\relax\let#7#6\else\def#7{##2}\fi |
|
\if\relax\detokenize{##3}\relax#4\else#3\fi |
|
\fi |
|
} |
|
#5none {} {} \@nnil |
|
} |
|
\spx@tempa{spx@pre@} {pre_} |
|
\spx@tempa{spx@topic@} {div.topic_} |
|
\spx@tempa{spx@contents@} {div.contents_} |
|
\spx@tempa{spx@sidebar@} {div.sidebar_} |
|
|
|
|
|
\spx@contents@shadow@setter 4pt 4pt {} \@nnil |
|
|
|
\spx@tempa{spx@note@} {div.note_} |
|
\spx@tempa{spx@hint@} {div.hint_} |
|
\spx@tempa{spx@important@}{div.important_} |
|
\spx@tempa{spx@tip@} {div.tip_} |
|
\spx@tempa{spx@seealso@} {div.seealso_} |
|
\spx@tempa{spx@todo@} {div.todo_} |
|
\spx@tempa{spx@warning@} {div.warning_} |
|
\spx@tempa{spx@caution@} {div.caution_} |
|
\spx@tempa{spx@attention@}{div.attention_} |
|
\spx@tempa{spx@danger@} {div.danger_} |
|
\spx@tempa{spx@error@} {div.error_} |
|
\spx@tempa{spx@box@} {box_} |
|
|
|
|
|
|
|
|
|
|
|
\define@key{sphinx}{shadowsize}{ |
|
\def\spx@topic@shadow@xoffset{#1} |
|
\let\spx@contents@shadow@xoffset\spx@topic@shadow@xoffset |
|
\let\spx@sidebar@shadow@xoffset \spx@topic@shadow@xoffset |
|
\let\spx@topic@shadow@yoffset \spx@topic@shadow@xoffset |
|
\let\spx@contents@shadow@yoffset\spx@topic@shadow@xoffset |
|
\let\spx@sidebar@shadow@yoffset \spx@topic@shadow@xoffset |
|
\ifdim\dimexpr\spx@topic@shadow@xoffset=\z@ |
|
\spx@topic@withshadowfalse |
|
\spx@contents@withshadowfalse |
|
\spx@sidebar@withshadowfalse |
|
\else |
|
\spx@topic@withshadowtrue |
|
\spx@topic@insetshadowfalse |
|
\spx@contents@withshadowtrue |
|
\spx@contents@insetshadowfalse |
|
\spx@sidebar@withshadowtrue |
|
\spx@sidebar@insetshadowfalse |
|
\fi |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname if#1withshadowcolor\expandafter\endcsname |
|
\csname if#1withtextcolor\endcsname |
|
} |
|
\def\spx@tempb#1#2{\newif#1\newif#2} |
|
|
|
\spx@tempa{spx@pre@} |
|
\spx@tempa{spx@topic@} |
|
\spx@tempa{spx@contents@} |
|
\spx@tempa{spx@sidebar@} |
|
\spx@tempa{spx@note@} |
|
\spx@tempa{spx@hint@} |
|
\spx@tempa{spx@important@} |
|
\spx@tempa{spx@tip@} |
|
\spx@tempa{spx@seealso@} |
|
\spx@tempa{spx@todo@} |
|
\spx@tempa{spx@warning@} |
|
\spx@tempa{spx@caution@} |
|
\spx@tempa{spx@attention@} |
|
\spx@tempa{spx@danger@} |
|
\spx@tempa{spx@error@} |
|
\spx@tempa{spx@box@} |
|
|
|
\def\spx@tempa#1{ |
|
\expandafter\spx@tempb |
|
\csname #1withshadowcolortrue\expandafter\endcsname |
|
\csname #1withtextcolortrue\expandafter\endcsname |
|
\csname #1TeXextras\endcsname |
|
} |
|
|
|
|
|
\def\spx@tempb#1#2#3#4#5{ |
|
\define@key{sphinx}{#4border-TeXcolor} |
|
{\spx@defineorletcolor{#5BorderColor}##1\relax} |
|
\define@key{sphinx}{#4background-TeXcolor} |
|
{\spx@defineorletcolor{#5BgColor}##1\relax} |
|
\define@key{sphinx}{#4title-background-TeXcolor} |
|
{\spx@defineorletcolor{#5TtlBgColor}##1\relax} |
|
\define@key{sphinx}{#4title-foreground-TeXcolor} |
|
{\spx@defineorletcolor{#5TtlFgColor}##1\relax} |
|
\define@key{sphinx}{#4title-icon} |
|
{\@namedef{#5TtlIcon}{##1}} |
|
\define@key{sphinx}{#4box-shadow-TeXcolor} |
|
{#1\spx@defineorletcolor{#5ShadowColor}##1\relax} |
|
\define@key{sphinx}{#4TeXcolor} |
|
{#2\spx@defineorletcolor{#5TextColor}##1\relax} |
|
\define@key{sphinx}{#4TeXextras} |
|
{\def#3{##1}} |
|
} |
|
|
|
\spx@tempa{spx@pre@} {pre_} {Verbatim} |
|
|
|
|
|
\define@key{sphinx}{pre_background-TeXcolor} |
|
{\spx@defineorletcolor{VerbatimColor}#1\relax} |
|
|
|
\expandafter\let\expandafter\KV@sphinx@VerbatimBorderColor |
|
\csname KV@sphinx@pre_border-TeXcolor\endcsname |
|
\expandafter\let\expandafter\KV@sphinx@VerbatimColor |
|
\csname KV@sphinx@pre_background-TeXcolor\endcsname |
|
|
|
|
|
|
|
|
|
\spx@tempa{spx@topic@} {div.topic_} {sphinxtopic} |
|
\spx@tempa{spx@contents@} {div.contents_} {sphinxcontents} |
|
\spx@tempa{spx@sidebar@} {div.sidebar_} {sphinxsidebar} |
|
\spx@tempa{spx@note@} {div.note_} {sphinxnote} |
|
\spx@tempa{spx@hint@} {div.hint_} {sphinxhint} |
|
\spx@tempa{spx@important@}{div.important_} {sphinximportant} |
|
\spx@tempa{spx@tip@} {div.tip_} {sphinxtip} |
|
\spx@tempa{spx@seealso@} {div.seealso_} {sphinxseealso} |
|
\spx@tempa{spx@todo@} {div.todo_} {sphinxtodo} |
|
\spx@tempa{spx@warning@} {div.warning_} {sphinxwarning} |
|
\spx@tempa{spx@caution@} {div.caution_} {sphinxcaution} |
|
\spx@tempa{spx@attention@}{div.attention_} {sphinxattention} |
|
\spx@tempa{spx@danger@} {div.danger_} {sphinxdanger} |
|
\spx@tempa{spx@error@} {div.error_} {sphinxerror} |
|
\spx@tempa{spx@box@} {box_} {sphinxbox} |
|
|
|
\def\spx@tempa#1#2{ |
|
\expandafter\let\csname KV@sphinx@#2BorderColor\expandafter\endcsname |
|
\csname KV@sphinx@#1border-TeXcolor\endcsname |
|
\expandafter\let\csname KV@sphinx@#2BgColor\expandafter\endcsname |
|
\csname KV@sphinx@#1background-TeXcolor\endcsname |
|
} |
|
\spx@tempa{div.warning_} {warning} |
|
\spx@tempa{div.caution_} {caution} |
|
\spx@tempa{div.attention_} {attention} |
|
\spx@tempa{div.danger_} {danger} |
|
\spx@tempa{div.error_} {error} |
|
|
|
|
|
|
|
\def\spx@tempa#1#2{ |
|
\expandafter\let\csname KV@sphinx@#2BorderColor\expandafter\endcsname |
|
\csname KV@sphinx@#1border-TeXcolor\endcsname |
|
\expandafter\let\csname KV@sphinx@#2BgColor\expandafter\endcsname |
|
\csname KV@sphinx@#1background-TeXcolor\endcsname |
|
\expandafter\let\csname KV@sphinx@#2TextColor\expandafter\endcsname |
|
\csname KV@sphinx@#1TeXcolor\endcsname |
|
} |
|
\spx@tempa{div.note_} {note} |
|
\spx@tempa{div.hint_} {hint} |
|
\spx@tempa{div.important_} {important} |
|
\spx@tempa{div.tip_} {tip} |
|
|
|
|
|
\def\spx@tempa#1#2{ |
|
\expandafter\let\csname KV@sphinx@#2TeXextras\expandafter\endcsname |
|
\csname KV@sphinx@#1TeXextras\endcsname |
|
} |
|
\spx@tempa{div.note_} {note} |
|
\spx@tempa{div.hint_} {hint} |
|
\spx@tempa{div.important_} {important} |
|
\spx@tempa{div.tip_} {tip} |
|
|
|
|
|
|
|
|
|
|
|
\setkeys{sphinx}{ |
|
div.topic_border-TeXcolor=sphinx-admonition-bordercolor, |
|
div.topic_background-TeXcolor=sphinx-admonition-bgcolor, |
|
div.topic_box-shadow-TeXcolor={RGB}{108,108,108}, |
|
div.contents_border-TeXcolor=sphinx-admonition-bordercolor, |
|
div.contents_background-TeXcolor=sphinx-admonition-bgcolor, |
|
div.contents_box-shadow-TeXcolor={RGB}{108,108,108}, |
|
div.sidebar_border-TeXcolor=sphinx-admonition-bordercolor, |
|
div.sidebar_background-TeXcolor=sphinx-admonition-bgcolor, |
|
div.sidebar_box-shadow-TeXcolor=sphinx-admonition-bordercolor!80, |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\definecolor{sphinx-admonition-title-bgcolor}{RGB}{229,229,229} |
|
\definecolor{sphinx-admonition-title-fgcolor}{RGB}{127,127,127} |
|
\definecolor{sphinx-warning-title-bgcolor} {RGB}{248,228,210} |
|
\definecolor{sphinx-warning-title-fgcolor} {RGB}{221,122,33} |
|
\definecolor{sphinx-note-title-bgcolor} {RGB}{208,222,250} |
|
\definecolor{sphinx-note-title-fgcolor} {RGB}{20,93,234} |
|
\definecolor{sphinx-success-title-bgcolor} {RGB}{220,239,230} |
|
\definecolor{sphinx-success-title-fgcolor} {RGB}{81,174,128} |
|
\definecolor{sphinx-error-title-bgcolor} {RGB}{238,220,220} |
|
\definecolor{sphinx-error-title-fgcolor} {RGB}{174,80,80} |
|
\definecolor{sphinx-todo-title-bgcolor} {RGB}{226,204,254} |
|
\definecolor{sphinx-todo-title-fgcolor} {RGB}{113,0,255} |
|
|
|
|
|
|
|
\setkeys{sphinx}{ |
|
div.note_title-background-TeXcolor=sphinx-note-title-bgcolor, |
|
div.note_title-foreground-TeXcolor=sphinx-note-title-fgcolor, |
|
|
|
div.hint_title-background-TeXcolor=sphinx-success-title-bgcolor, |
|
div.hint_title-foreground-TeXcolor=sphinx-success-title-fgcolor, |
|
div.tip_title-background-TeXcolor=sphinx-success-title-bgcolor, |
|
div.tip_title-foreground-TeXcolor=sphinx-success-title-fgcolor, |
|
div.seealso_title-background-TeXcolor=sphinx-success-title-bgcolor, |
|
div.seealso_title-foreground-TeXcolor=sphinx-success-title-fgcolor, |
|
div.todo_title-background-TeXcolor=sphinx-todo-title-bgcolor, |
|
div.todo_title-foreground-TeXcolor=sphinx-todo-title-fgcolor, |
|
|
|
div.important_title-background-TeXcolor=sphinx-warning-title-bgcolor, |
|
div.important_title-foreground-TeXcolor=sphinx-warning-title-fgcolor, |
|
div.caution_title-background-TeXcolor=sphinx-warning-title-bgcolor, |
|
div.caution_title-foreground-TeXcolor=sphinx-warning-title-fgcolor, |
|
div.warning_title-background-TeXcolor=sphinx-warning-title-bgcolor, |
|
div.warning_title-foreground-TeXcolor=sphinx-warning-title-fgcolor, |
|
|
|
div.attention_title-background-TeXcolor=sphinx-error-title-bgcolor, |
|
div.attention_title-foreground-TeXcolor=sphinx-error-title-fgcolor, |
|
div.danger_title-background-TeXcolor=sphinx-error-title-bgcolor, |
|
div.danger_title-foreground-TeXcolor=sphinx-error-title-fgcolor, |
|
div.error_title-background-TeXcolor=sphinx-error-title-bgcolor, |
|
div.error_title-foreground-TeXcolor=sphinx-error-title-fgcolor, |
|
|
|
|
|
|
|
div.topic_title-background-TeXcolor=sphinx-admonition-title-bgcolor, |
|
div.topic_title-foreground-TeXcolor=sphinx-admonition-title-fgcolor, |
|
div.contents_title-background-TeXcolor=sphinx-admonition-title-bgcolor, |
|
div.contents_title-foreground-TeXcolor=sphinx-admonition-title-fgcolor, |
|
div.sidebar_title-background-TeXcolor=sphinx-note-title-bgcolor, |
|
div.sidebar_title-foreground-TeXcolor=sphinx-note-title-fgcolor, |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\IfFileExists{fontawesome5.sty}{ |
|
\DeclareStringOption[fontawesome5]{iconpackage} |
|
} |
|
{ |
|
\IfFileExists{fontawesome.sty} |
|
{\DeclareStringOption[fontawesome]{iconpackage}} |
|
{\DeclareStringOption[none]{iconpackage}} |
|
} |
|
\newcommand\spx@faIcon[2][]{} |
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\spxstring@fontawesome{fontawesome} |
|
\def\spxstring@fontawesomev{fontawesome5} |
|
\AtBeginDocument{ |
|
\ifx\spx@opt@iconpackage\spxstring@none |
|
\else |
|
\IfFileExists{\spx@opt@iconpackage.sty} |
|
{\RequirePackage{\spx@opt@iconpackage} |
|
\ifx\spx@opt@iconpackage\spxstring@fontawesomev |
|
\renewcommand\spx@faIcon{\faIcon} |
|
\else |
|
\ifx\spx@opt@iconpackage\spxstring@fontawesome |
|
\renewcommand\spx@faIcon[2][]{\faicon{##2}} |
|
|
|
|
|
|
|
\ifdefined\faicon@lightbulb\else |
|
\let\faicon@lightbulb\faLightbulbO |
|
\fi |
|
\ifdefined\faicon@radiation\else |
|
\let\faicon@radiation\faBolt |
|
\fi |
|
\ifdefined\faicon@pen\else |
|
\let\faicon@pen\faPencil |
|
\fi |
|
|
|
|
|
|
|
\fi\fi |
|
} |
|
{ |
|
\sphinxbuildwarning{badiconpackage} |
|
\PackageWarningNoLine{sphinx}{ |
|
You have set iconpackage=\spx@opt@iconpackage\MessageBreak |
|
But \spx@opt@iconpackage.sty is not found by LaTeX} |
|
} |
|
\fi |
|
} |
|
|
|
\setkeys{sphinx}{ |
|
|
|
div.note_title-icon = \spx@faIcon{info-circle}, |
|
div.hint_title-icon = \spx@faIcon[regular]{lightbulb}, |
|
div.tip_title-icon = \spx@faIcon[regular]{lightbulb}, |
|
div.seealso_title-icon = \spx@faIcon{share}, |
|
div.todo_title-icon = \spx@faIcon{pen}, |
|
div.important_title-icon = \spx@faIcon{pause-circle}, |
|
div.caution_title-icon = \spx@faIcon{radiation}, |
|
div.warning_title-icon = \spx@faIcon{exclamation-triangle}, |
|
div.attention_title-icon = \spx@faIcon{exclamation-triangle}, |
|
div.danger_title-icon = \spx@faIcon{radiation}, |
|
div.error_title-icon = \spx@faIcon{times-circle}, |
|
|
|
|
|
|
|
} |
|
|
|
\newif\ifspx@opt@box@addstrut |
|
\expandafter\def\csname KV@sphinx@box_addstrut\endcsname#1{ |
|
\csname spx@opt@box@addstrut#1\endcsname |
|
} |
|
\expandafter\def\csname KV@sphinx@box_addstrut@default\endcsname{ |
|
\spx@opt@box@addstruttrue |
|
} |
|
|
|
\DeclareDefaultOption{\@unknownoptionerror} |
|
\ProcessKeyvalOptions* |
|
|
|
\DisableKeyvalOption{sphinx}{maxlistdepth} |
|
\DisableKeyvalOption{sphinx}{numfigreset} |
|
\DisableKeyvalOption{sphinx}{nonumfigreset} |
|
\DisableKeyvalOption{sphinx}{mathnumfig} |
|
\DisableKeyvalOption{sphinx}{booktabs} |
|
\DisableKeyvalOption{sphinx}{borderless} |
|
\DisableKeyvalOption{sphinx}{rowcolors} |
|
|
|
|
|
|
|
\newcommand*\sphinxAtStartPar{\leavevmode\nobreak\hskip\z@skip} |
|
|
|
\ifdefined\directlua\let\sphinxAtStartPar\@empty\fi |
|
|
|
\newcommand\sphinxsetup{\setkeys{sphinx}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\newif\ifspx@inframed |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\AtBeginDocument{ |
|
\let\spx@originalcaption\caption |
|
\@ifpackageloaded{caption} |
|
{\let\spx@ifcaptionpackage\@firstoftwo |
|
\caption@AtBeginDocument*{\let\spx@originalcaption\caption} |
|
|
|
|
|
|
|
\def\sphinxcaption{\caption} |
|
} |
|
{\let\spx@ifcaptionpackage\@secondoftwo} |
|
} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxoptionshyperref} |
|
|
|
\RequirePackage{sphinxoptionsgeometry} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\def\py@NormalColor{\color{black}} |
|
|
|
|
|
\def\py@TitleColor{\color{TitleColor}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\RequirePackage{amstext} |
|
|
|
|
|
\RequirePackage{textcomp} |
|
|
|
|
|
\RequirePackage{float} |
|
|
|
\RequirePackage{wrapfig} |
|
|
|
\RequirePackage{capt-of} |
|
|
|
\RequirePackage{multicol} |
|
|
|
|
|
|
|
|
|
|
|
\RequirePackage{graphicx} |
|
\RequirePackage{sphinxlatexgraphics} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\@tfor\x:={border-width} |
|
{border-top-width}{border-right-width}{border-bottom-width}{border-left-width} |
|
{box-decoration-break} |
|
|
|
|
|
|
|
|
|
|
|
|
|
{padding} |
|
{padding-top}{padding-right}{padding-bottom}{padding-left} |
|
{border-radius} |
|
{border-top-left-radius}{border-top-right-radius} |
|
{border-bottom-right-radius}{border-bottom-left-radius} |
|
{box-shadow} |
|
{border-TeXcolor}{background-TeXcolor}{box-shadow-TeXcolor}{TeXcolor} |
|
{TeXextras}{addstrut}{addstrut@default} |
|
\do{\expandafter\let\csname KV@sphinxbox@\x\expandafter\endcsname |
|
\csname KV@sphinx@box_\x\endcsname} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\newcommand\sphinxboxsetup[1]{ |
|
\setkeys{sphinxbox}{#1} |
|
\expandafter\def\expandafter\spx@boxes@sphinxbox@defaults\expandafter |
|
{\spx@boxes@sphinxbox@defaults,#1} |
|
} |
|
\def\spx@boxes@sphinxbox@reset{ |
|
\begingroup\def\x{\endgroup\setkeys{sphinxbox}} |
|
\expandafter\x\expandafter{\spx@boxes@sphinxbox@defaults} |
|
} |
|
|
|
|
|
|
|
|
|
\let\spx@boxes@sphinxbox@defaults\@gobble |
|
\sphinxboxsetup{ |
|
border-width=0.4pt, |
|
padding=3pt, |
|
border-radius=0.4pt, |
|
box-shadow=none, |
|
|
|
|
|
border-TeXcolor=VerbatimBorderColor, |
|
background-TeXcolor=VerbatimColor, |
|
|
|
|
|
box-shadow-TeXcolor={RGB}{108,108,108}, |
|
TeXextras={}, |
|
addstrut=false, |
|
} |
|
\RequirePackage{sphinxpackageboxes} |
|
\RequirePackage{sphinxlatexadmonitions} |
|
\RequirePackage{sphinxlatexliterals} |
|
\RequirePackage{sphinxlatexshadowbox} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexcontainers} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxhighlight} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatextables} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexnumfig} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexlists} |
|
|
|
|
|
|
|
|
|
|
|
|
|
\newcounter{sphinxscope} |
|
\newcommand{\sphinxstepscope}{\stepcounter{sphinxscope}} |
|
|
|
\renewcommand{\thesphinxscope}{\number\value{sphinxscope}} |
|
\newcommand\sphinxthefootnotemark[2]{ |
|
|
|
|
|
\ifdefined\pagename |
|
\pagename\space#2, |
|
\else |
|
p. #2, |
|
\fi #1 |
|
} |
|
|
|
|
|
\def\thempfootnote{\arabic{mpfootnote}} |
|
|
|
|
|
\RequirePackage{sphinxpackagefootnote} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexindbibtoc} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexstylepage} |
|
\RequirePackage{sphinxlatexstyleheadings} |
|
\RequirePackage{sphinxlatexstyletext} |
|
|
|
|
|
|
|
|
|
\RequirePackage{sphinxlatexobjects} |
|
|
|
|
|
|
|
\ifdefined\pdfcompresslevel\pdfcompresslevel = 9 \fi |
|
|
|
|
|
\endinput |
|
|