Skip to content

Commit

Permalink
Updated manual to make usage for Pandoc before v2.11 clearer.
Browse files Browse the repository at this point in the history
  • Loading branch information
odkr committed Oct 12, 2020
1 parent 656cb9c commit ef4998a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion man/pandoc-zotxt.lua.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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].
Expand Down
4 changes: 3 additions & 1 deletion man/pandoc-zotxt.lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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*.

Expand Down
5 changes: 4 additions & 1 deletion pandoc-zotxt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
--
Expand Down Expand Up @@ -69,6 +71,7 @@
--
-- pandoc(1), pandoc-citeproc(1)
--
--
-- @script pandoc-zotxt.lua
-- @release 0.3.18b
-- @author Odin Kroeger
Expand Down

0 comments on commit ef4998a

Please sign in to comment.