summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2023-03-19 19:09:08 +0100
committerJean-François B <2589111+jfbu@users.noreply.github.com>2023-03-19 19:09:08 +0100
commitcf6273a6b1f3325c59992568ccbc241c1235696b (patch)
treebb609b133dad5512cc2adc4b12522165ada9f340
parentc951f5f6393e4e3b4d820eb7d2e243fdc17b2cc1 (diff)
downloadsphinx-git-cf6273a6b1f3325c59992568ccbc241c1235696b.tar.gz
LaTeX: fix nits with some mark-up in doc and code comment
-rw-r--r--doc/latex.rst4
-rw-r--r--sphinx/texinputs/sphinx.sty2
-rw-r--r--sphinx/texinputs/sphinxlatexshadowbox.sty2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/latex.rst b/doc/latex.rst
index a74c9e8b4..7d1339b63 100644
--- a/doc/latex.rst
+++ b/doc/latex.rst
@@ -1117,10 +1117,10 @@ Do not use quotes to enclose values, whether numerical or strings.
``importantBgColor``, ``tipBgColor``
.. |notetextcolors| replace:: ``noteTextColor``, ``hintTextColor``,
- ``importantTextColor``, ``tipTextColor``
+ ``importantTextColor``, ``tipTextColor``
.. |notetexextras| replace:: ``noteTeXextras``, ``hintTeXextras``,
- ``importantTeXextras``, ``tipTeXextras``
+ ``importantTeXextras``, ``tipTeXextras``
.. |warningbdcolors| replace:: ``warningBorderColor``, ``cautionBorderColor``,
``attentionBorderColor``, ``dangerBorderColor``,
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index 7346b29d1..6339e50a2 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -925,7 +925,7 @@ will be set to white}%
padding=\fboxsep,% but done here out of habit
border-radius=\fboxsep,%
box-shadow=none,%
-% As xcolor is perhaps not loaded we can not use border-TeXcolor=VerbatimColor
+% As xcolor is perhaps not loaded we can not use background-TeXcolor=VerbatimColor
% which would not be compatible with \definecolor syntax.
border-TeXcolor={RGB}{32,32,32},% the default VerbatimBorderColor
background-TeXcolor={gray}{0.95},% the default VerbatimColor
diff --git a/sphinx/texinputs/sphinxlatexshadowbox.sty b/sphinx/texinputs/sphinxlatexshadowbox.sty
index 1a2bdcc9e..bf3decba7 100644
--- a/sphinx/texinputs/sphinxlatexshadowbox.sty
+++ b/sphinx/texinputs/sphinxlatexshadowbox.sty
@@ -97,7 +97,7 @@
\@setminipage
}%
\color@begingroup % workaround upstream framed.sty bug
- \csname ifspx@topic@withtextcolor\endcsname
+ \ifspx@topic@withtextcolor
\color{sphinxtopicTextColor}%
\fi
\spx@topic@TeXextras