summaryrefslogtreecommitdiff
path: root/paper/lua-filters/short-captions/Makefile
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-06-05 17:28:10 +0200
committerChristoph Helma <helma@in-silico.ch>2019-06-05 17:28:10 +0200
commit9a217185e791d6abbe46549cd4e87c1d1a643c05 (patch)
tree1968aebd8a38acd7784e58d478e0f6c3fb08ab76 /paper/lua-filters/short-captions/Makefile
parentfeb1f82356da50a1ebf63b1eda434c388ab009e1 (diff)
first manuscript version
Diffstat (limited to 'paper/lua-filters/short-captions/Makefile')
-rw-r--r--paper/lua-filters/short-captions/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/paper/lua-filters/short-captions/Makefile b/paper/lua-filters/short-captions/Makefile
new file mode 100644
index 0000000..756cf2b
--- /dev/null
+++ b/paper/lua-filters/short-captions/Makefile
@@ -0,0 +1,18 @@
+LF = --lua-filter=short-captions.lua
+F = -F pandoc-crossref
+
+test:
+ @pandoc $(LF) README.md -w latex | diff --strip-trailing-cr expected-1.tex -
+
+crossref:
+ @echo testing short-captions.lua after pandoc-crossref
+ @pandoc $(F) $(LF) README.md -w latex | diff --strip-trailing-cr expected-2.tex -
+ @echo testing short-captions.lua before pandoc-crossref
+ @pandoc $(LF) $(F) README.md -w latex | diff --strip-trailing-cr expected-2.tex -
+
+readme:
+ @pandoc -s $(F) $(LF) README.md -o README.pdf
+
+latex:
+ @pandoc -s $(F) $(LF) README.md -o README.tex
+