mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Trim unneeded TeX macros
This commit is contained in:
parent
634d76faf1
commit
6f8d762747
@ -708,12 +708,9 @@
|
|||||||
% #2 = for material below frame, such as a caption or "continues on next page"
|
% #2 = for material below frame, such as a caption or "continues on next page"
|
||||||
% #3 = actual contents, which will be typeset with a background color
|
% #3 = actual contents, which will be typeset with a background color
|
||||||
\long\def\spx@CustomFBox#1#2#3{%
|
\long\def\spx@CustomFBox#1#2#3{%
|
||||||
\leavevmode
|
|
||||||
\begingroup
|
\begingroup
|
||||||
\setbox\@tempboxa\hbox{{#3}}% inner braces to avoid color leaks
|
\setbox\@tempboxa\hbox{{#3}}% inner braces to avoid color leaks
|
||||||
\hbox
|
\vbox{#1% above frame
|
||||||
{\lower\dimexpr\fboxrule+\dp\@tempboxa\hbox{%
|
|
||||||
\vbox{#1% above frame
|
|
||||||
% draw frame border _latest_ to avoid pdf viewer issue
|
% draw frame border _latest_ to avoid pdf viewer issue
|
||||||
\kern\fboxrule
|
\kern\fboxrule
|
||||||
\hbox{\kern\fboxrule
|
\hbox{\kern\fboxrule
|
||||||
@ -726,10 +723,8 @@
|
|||||||
\hrule\@height\fboxrule
|
\hrule\@height\fboxrule
|
||||||
\kern\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax
|
\kern\dimexpr\ht\@tempboxa+\dp\@tempboxa\relax
|
||||||
\hrule\@height\fboxrule
|
\hrule\@height\fboxrule
|
||||||
#2% below frame
|
#2% below frame
|
||||||
}%
|
}%
|
||||||
}%
|
|
||||||
}%
|
|
||||||
\endgroup
|
\endgroup
|
||||||
}%
|
}%
|
||||||
\def\spx@fcolorbox@put@c#1{% hide width from framed.sty measuring
|
\def\spx@fcolorbox@put@c#1{% hide width from framed.sty measuring
|
||||||
|
Loading…
Reference in New Issue
Block a user