From ef4998ab91f06802a0844f95603dc4341e911743 Mon Sep 17 00:00:00 2001 From: Odin Kroeger Date: Mon, 12 Oct 2020 19:36:41 +0200 Subject: [PATCH] Updated manual to make usage for Pandoc before v2.11 clearer. --- man/pandoc-zotxt.lua.1 | 5 ++++- man/pandoc-zotxt.lua.md | 4 +++- pandoc-zotxt.lua | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/man/pandoc-zotxt.lua.1 b/man/pandoc-zotxt.lua.1 index 33df3fe..2caa37c 100644 --- a/man/pandoc-zotxt.lua.1 +++ b/man/pandoc-zotxt.lua.1 @@ -9,6 +9,9 @@ pandoc-zotxt.lua - Looks up sources in Zotero .PP \f[B]pandoc\f[R] \f[B]--citeproc\f[R] \f[B]--lua-filter\f[R] \f[I]pandoc-zotxt.lua\f[R] +.PP +\f[B]pandoc\f[R] \f[B]--lua-filter\f[R] \f[I]pandoc-zotxt.lua\f[R] +\f[B]--filter\f[R] \f[I]pandoc-citeproc\f[R] .SH DESCRIPTION .PP \f[B]pandoc-zotxt.lua\f[R] looks up sources of citations in Zotero and @@ -23,7 +26,7 @@ That\[aq]s all there is to it. (See the documentations of \f[I]zotxt\f[R] and \f[I]Better BibTeX for Zotero\f[R] respectively for details.) .PP -If your version of Pandoc is older than v2.11, you have to pass +If you use a version of Pandoc prior to v2.11, you have to pass \f[B]--filter\f[R] \f[I]pandoc-citeproc\f[R] instead of \f[B]--citeproc\f[R], and you have to do so \f[I]before\f[R] passing \f[B]--lua-filter\f[R] \f[I]pandoc-zotxt.lua\f[R]. diff --git a/man/pandoc-zotxt.lua.md b/man/pandoc-zotxt.lua.md index 003c8d6..3df7be7 100644 --- a/man/pandoc-zotxt.lua.md +++ b/man/pandoc-zotxt.lua.md @@ -13,6 +13,8 @@ pandoc-zotxt.lua - Looks up sources in Zotero **pandoc** **--citeproc** **--lua-filter** *pandoc-zotxt.lua* +**pandoc** **--lua-filter** *pandoc-zotxt.lua* **--filter** *pandoc-citeproc* + # DESCRIPTION @@ -26,7 +28,7 @@ pass the **--citeproc** flag to **pandoc**, and tell it to run **pandoc-zotxt.lua**. That's all there is to it. (See the documentations of *zotxt* and *Better BibTeX for Zotero* respectively for details.) -If your version of Pandoc is older than v2.11, you have to pass +If you use a version of Pandoc prior to v2.11, you have to pass **--filter** *pandoc-citeproc* instead of **--citeproc**, and you have to do so *before* passing **--lua-filter** *pandoc-zotxt.lua*. diff --git a/pandoc-zotxt.lua b/pandoc-zotxt.lua index c7ec2b7..af7ad08 100644 --- a/pandoc-zotxt.lua +++ b/pandoc-zotxt.lua @@ -4,6 +4,8 @@ -- -- pandoc --citeproc --lua-filter pandoc-zotxt.lua -- +-- pandoc --lua-filter pandoc-zotxt.lua --filter pandoc-citeproc +-- -- DESCRIPTION -- -- pandoc-zotxt.lua looks up sources of citations in Zotero and adds them @@ -16,7 +18,7 @@ -- pandoc-zotxt.lua. That's all there is to it. (See the documentations of -- zotxt and Better BibTeX for Zotero respectively for details.) -- --- If your version of Pandoc is older than v2.11, you have to pass --filter +-- If you use a version of Pandoc prior to v2.11, you have to pass --filter -- pandoc-citeproc instead of --citeproc, and you have to do so before -- passing --lua-filter pandoc-zotxt.lua. -- @@ -69,6 +71,7 @@ -- -- pandoc(1), pandoc-citeproc(1) -- +-- -- @script pandoc-zotxt.lua -- @release 0.3.18b -- @author Odin Kroeger