summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2023-03-20 10:18:32 +0100
committerJean-François B <2589111+jfbu@users.noreply.github.com>2023-03-20 10:34:35 +0100
commita07e1ffb277759c24363cdc45607016fa6413873 (patch)
tree9d880630bb40cd78b6625d52c5f6154c3d8d633a
parentec25892dd9246d5ccaac7999c748a93918abbef4 (diff)
downloadsphinx-git-a07e1ffb277759c24363cdc45607016fa6413873.tar.gz
LaTeX: comment applied workaround to pict2e 0.4b breaking ellipse.sty
-rw-r--r--sphinx/texinputs/sphinxpackageboxes.sty11
1 files changed, 4 insertions, 7 deletions
diff --git a/sphinx/texinputs/sphinxpackageboxes.sty b/sphinx/texinputs/sphinxpackageboxes.sty
index 71aae3039..ae2db223e 100644
--- a/sphinx/texinputs/sphinxpackageboxes.sty
+++ b/sphinx/texinputs/sphinxpackageboxes.sty
@@ -65,13 +65,10 @@
all non-straight corners have used circle arcs.}}%
}%
-% Surprisingly it seems ellipse.sty uses a \@tempdimd which does not exist in
-% LaTeX. Was it removed at some point? Perhaps ellipse.sty was always tested
-% with some other package? I don't see it being defined in packages longfbox,
-% longbox, or options either. Or pict2e stopped defining it at some point? I
-% was very surprised that my first very test after completing the coding would
-% fail with an error about \@tempdimd, but simply defining it, everything
-% does seem to work fine! Not thoroughly tested, though.
+% The pict2e release v0.4b of 2020/09/30 does not allocate scratch dimen
+% register \@tempdimd which ellipse package uses. Thus ellipse package is
+% broken since (written on March 20, 2023). Simply allocate the register
+% ourself to fix that, pending some upstream fix.
\@ifpackageloaded{ellipse}{\ifdefined\@tempdimd\else\newdimen\@tempdimd\fi}{}
% Provides box registers \spx@tempboxa, \spx@tempboxb usable in other places