summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
Diffstat (limited to 'filters')
-rw-r--r--filters/appendixes.lua11
-rw-r--r--filters/date-metadata.lua4
2 files changed, 15 insertions, 0 deletions
diff --git a/filters/appendixes.lua b/filters/appendixes.lua
new file mode 100644
index 0000000..a06736f
--- /dev/null
+++ b/filters/appendixes.lua
@@ -0,0 +1,11 @@
+function Str(elem)
+ appendix = '\\appendix\\footnotesize'
+ if elem.text == '{{appendixes}}' then
+ if FORMAT:match 'tex$' then
+ return pandoc.RawInline('latex', appendix, 'RawInline')
+ end
+ return pandoc.Null('Null')
+ else
+ return elem
+ end
+end
diff --git a/filters/date-metadata.lua b/filters/date-metadata.lua
new file mode 100644
index 0000000..52eec90
--- /dev/null
+++ b/filters/date-metadata.lua
@@ -0,0 +1,4 @@
+function Meta(m)
+ m.date = os.date("%B %e, %Y")
+ return m
+end