summaryrefslogtreecommitdiff
path: root/sphinx/writers
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2023-01-03 17:11:58 +0100
committerJean-François B <2589111+jfbu@users.noreply.github.com>2023-01-03 18:58:39 +0100
commitbfd95dadf21645d3c9863431c83fc0b22c6fc172 (patch)
treed43cedfbe7bb2b38f8f10b082f16ecb9c4ab78c7 /sphinx/writers
parent08ca934fffbf8e118a2e8aa58e98ba460c50c422 (diff)
downloadsphinx-git-bfd95dadf21645d3c9863431c83fc0b22c6fc172.tar.gz
Fix #6744: support for seealso directive should be via an environment
Diffstat (limited to 'sphinx/writers')
-rw-r--r--sphinx/writers/latex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 7e78ea2ed..70dec716d 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -821,11 +821,12 @@ class LaTeXTranslator(SphinxTranslator):
def visit_seealso(self, node: Element) -> None:
self.body.append(BLANKLINE)
- self.body.append(r'\sphinxstrong{%s:}' % admonitionlabels['seealso'] + CR)
- self.body.append(r'\nopagebreak' + BLANKLINE)
+ self.body.append(r'\begin{sphinxseealso}{%s}' % admonitionlabels['seealso'] + CR)
def depart_seealso(self, node: Element) -> None:
self.body.append(BLANKLINE)
+ self.body.append(r'\end{sphinxseealso}')
+ self.body.append(BLANKLINE)
def visit_rubric(self, node: Element) -> None:
if len(node) == 1 and node.astext() in ('Footnotes', _('Footnotes')):