Commit a54dfc9a authored by Louis Paternault's avatar Louis Paternault

Merge branch 'master' into numfig_format

parents 56ac0a88 90acbd27
Pipeline #84722 failed with stage
in 1 minute and 12 seconds
⚠️ This is a read-only mirror for `sphinx-contrib/proof`. Please submit your issue to http://framagit.org/spalax/sphinxcontrib-proof/issues.
Thanks!
......@@ -230,7 +230,7 @@ proof_latex_notheorem = ["proof"]
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, "Proof.tex", "Proof Documentation", "Louis Paternault", "manual")
(master_doc, "Proof.tex", "Proof Documentation", "Louis Paternault", "howto")
]
# The name of an image file (relative to this directory) to place at the top of
......@@ -242,10 +242,10 @@ latex_logo = "_static/logo.pdf"
# latex_use_parts = False
# If true, show page references after internal links.
# latex_show_pagerefs = False
latex_show_pagerefs = True
# If true, show URL addresses after external links.
# latex_show_urls = False
latex_show_urls = "footnote"
# Documents to append as an appendix to all manuals.
# latex_appendices = []
......
......@@ -71,8 +71,6 @@ class _StatementNode(nodes.General, nodes.Element):
class NumberedStatementNode(_StatementNode):
"""Statement with a number."""
numbered = True
def numfig_format(self, builder, figtype, ref):
"""Give each theorem type its own name."""
# pylint: disable=unused-argument
......@@ -85,7 +83,7 @@ class UnnumberedStatementNode(_StatementNode):
Some builders ignore this.
"""
numbered = False
pass
class ContentNode(nodes.General, nodes.Element):
......@@ -243,13 +241,11 @@ def latex_preamble(config):
# Setup
def generate_latex_preamble(app):
def generate_latex_preamble(app, config):
"""Hook called when builder has been inited."""
config = app.builder.config
if app.builder.name == "latex":
if "preamble" not in config.latex_elements:
config.latex_elements["preamble"] = ""
config.latex_elements["preamble"] += latex_preamble(config)
if "preamble" not in config.latex_elements:
config.latex_elements["preamble"] = ""
config.latex_elements["preamble"] += latex_preamble(config)
def setup(app):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment