From 86c0725f24c969d88a79444cb638cef72cb2f44d Mon Sep 17 00:00:00 2001 From: Barry Steyn Date: Thu, 9 May 2013 21:20:21 -0400 Subject: [PATCH 1/2] Ability to add latex to pages --- latex/Readme.md | 3 +++ latex/latex.py | 1 + 2 files changed, 4 insertions(+) diff --git a/latex/Readme.md b/latex/Readme.md index 9a18cf5..dc4c1cd 100644 --- a/latex/Readme.md +++ b/latex/Readme.md @@ -30,6 +30,9 @@ between the `` parameters (for the NotMyIdea template, this file is base.h {% if article and article.latex %} {{ article.latex }} {% endif %} + {% if page and page.latex %} + {{ article.latex }} + {% endif %} Usage ----- diff --git a/latex/latex.py b/latex/latex.py index 2ebd1c7..ce16044 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -45,3 +45,4 @@ def register(): Plugin registration """ signals.article_generate_context.connect(addLatex) + signals.pages_generate_context.connect(addLatex) From 457604623f52a4c4c89a1b8ee569cb0e3a7b991d Mon Sep 17 00:00:00 2001 From: Barry Steyn Date: Thu, 9 May 2013 21:24:54 -0400 Subject: [PATCH 2/2] Correct error in documentation --- latex/Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/Readme.md b/latex/Readme.md index dc4c1cd..51424ce 100644 --- a/latex/Readme.md +++ b/latex/Readme.md @@ -31,7 +31,7 @@ between the `` parameters (for the NotMyIdea template, this file is base.h {{ article.latex }} {% endif %} {% if page and page.latex %} - {{ article.latex }} + {{ page.latex }} {% endif %} Usage