Fix #4648: latex: Now "rubric" elements are rendered as unnumbered section title

This commit is contained in:
Takeshi KOMIYA 2018-05-22 23:47:21 +09:00
parent 94cd25f885
commit b6ba8cad10
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ Incompatible changes
:confval:`viewcode_follow_imported_members` (refs: #4035)
* #1857: latex: :confval:`latex_show_pagerefs` does not add pagerefs for
citations
* #4648: latex: Now "rubric" elements are rendered as unnumbered section title
Deprecated
----------

View File

@ -1252,7 +1252,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
if len(node.children) == 1 and node.children[0].astext() in \
('Footnotes', _('Footnotes')):
raise nodes.SkipNode
self.body.append('\\paragraph{')
self.body.append('\\subsubsection*{')
self.context.append('}\n')
self.in_title = 1

View File

@ -617,7 +617,7 @@ def test_reference_in_caption_and_codeblock_in_footnote(app, status, warning):
assert '\\chapter{The section with a reference to {[}AuthorYear{]}}' in result
assert ('\\sphinxcaption{The table title with a reference'
' to {[}AuthorYear{]}}' in result)
assert '\\paragraph{The rubric title with a reference to {[}AuthorYear{]}}' in result
assert '\\subsubsection*{The rubric title with a reference to {[}AuthorYear{]}}' in result
assert ('\\chapter{The section with a reference to \\sphinxfootnotemark[5]}\n'
'\\label{\\detokenize{index:the-section-with-a-reference-to}}'
'%\n\\begin{footnotetext}[5]\\sphinxAtStartFootnote\n'