...
 
Commits (5)
⚠️ 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"] ...@@ -230,7 +230,7 @@ proof_latex_notheorem = ["proof"]
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ 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 # 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" ...@@ -242,10 +242,10 @@ latex_logo = "_static/logo.pdf"
# latex_use_parts = False # latex_use_parts = False
# If true, show page references after internal links. # If true, show page references after internal links.
# latex_show_pagerefs = False latex_show_pagerefs = True
# If true, show URL addresses after external links. # 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. # Documents to append as an appendix to all manuals.
# latex_appendices = [] # latex_appendices = []
......
...@@ -71,8 +71,6 @@ class _StatementNode(nodes.General, nodes.Element): ...@@ -71,8 +71,6 @@ class _StatementNode(nodes.General, nodes.Element):
class NumberedStatementNode(_StatementNode): class NumberedStatementNode(_StatementNode):
"""Statement with a number.""" """Statement with a number."""
numbered = True
def numfig_format(self, builder, figtype, ref): def numfig_format(self, builder, figtype, ref):
"""Give each theorem type its own name.""" """Give each theorem type its own name."""
# pylint: disable=unused-argument # pylint: disable=unused-argument
...@@ -85,7 +83,7 @@ class UnnumberedStatementNode(_StatementNode): ...@@ -85,7 +83,7 @@ class UnnumberedStatementNode(_StatementNode):
Some builders ignore this. Some builders ignore this.
""" """
numbered = False pass
class ContentNode(nodes.General, nodes.Element): class ContentNode(nodes.General, nodes.Element):
...@@ -243,10 +241,8 @@ def latex_preamble(config): ...@@ -243,10 +241,8 @@ def latex_preamble(config):
# Setup # Setup
def generate_latex_preamble(app): def generate_latex_preamble(app, config):
"""Hook called when builder has been inited.""" """Hook called when builder has been inited."""
config = app.builder.config
if app.builder.name == "latex":
if "preamble" not in config.latex_elements: if "preamble" not in config.latex_elements:
config.latex_elements["preamble"] = "" config.latex_elements["preamble"] = ""
config.latex_elements["preamble"] += latex_preamble(config) config.latex_elements["preamble"] += latex_preamble(config)
......