Browse Source

Merge pull request #22 from barrysteyn/master

Ability for latex in page
Alexis Metaireau 11 years ago
parent
commit
21a1478d9c
2 changed files with 4 additions and 0 deletions
  1. 3 0
      latex/Readme.md
  2. 1 0
      latex/latex.py

+ 3 - 0
latex/Readme.md

@@ -30,6 +30,9 @@ between the `<head>` parameters (for the NotMyIdea template, this file is base.h
     {% if article and article.latex %}
     {% if article and article.latex %}
         {{ article.latex }}
         {{ article.latex }}
     {% endif %}
     {% endif %}
+    {% if page and page.latex %}
+        {{ page.latex }}
+    {% endif %}
 
 
 Usage
 Usage
 -----
 -----

+ 1 - 0
latex/latex.py

@@ -45,3 +45,4 @@ def register():
         Plugin registration
         Plugin registration
     """
     """
     signals.article_generate_context.connect(addLatex)
     signals.article_generate_context.connect(addLatex)
+    signals.pages_generate_context.connect(addLatex)