From: Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re:
Date: Tue, 13 Feb 2018 12:07:19 +0100 [thread overview]
Message-ID: <873725jggo.fsf@mat.ucm.es> (raw)
In-Reply-To: <20180212060258.GE5841@Johns-MacBook-Pro.local>
>>> "John" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes:
> The filter has to be compiled againts the same version of
> pandoc-types as the binary you're using. I'm guessing
> this hasn't happened in this case, but I'd need to
> know more about your package versions.
> One solution would be to remove your pandoc 2.1.1
> (assuming you installed from our binary package)
> and use cabal to install pandoc itself.
I desinstalled all the deb binary pandoc packages deleted .cabal and
.ghc
and run
cabal update
cabal install pandoc --enable-tests
I compile the filter,
ghc --make stripmath.hs
This is the filter which worked fine in pandoc 1.17
,----
|
| import Text.Pandoc.JSON
|
| main = toJSONFilter stripmath
| where stripmath (Math _ _) = Str "FORMULA"
| stripmath x = x
|
`----
I run it
pandoc test.tex -t json | /home/oub/ALLES/HGs/scripts/stripmath | pandoc -f json -t plain -o test.txt'
and again the error message pops up
Error at "source" (line 96, column 46):
unexpected %
\cite{oliynyk16:_futur_flrw,oliynyk15:_newton%
^
stripmath64bit: Error in $: not enough input
JSON parse error
Again everything was fine in 1.17
Uwe Brauer
next prev parent reply other threads:[~2018-02-13 11:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 11:34 Ubuntu 16.04 pandoc installation via cabal fails Uwe Brauer
[not found] ` <87inb767g7.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-08 21:15 ` John MACFARLANE
2018-02-10 10:58 ` [compiled filter does not work anymore] (was: Ubuntu 16.04 pandoc installation via cabal fails) Uwe Brauer
[not found] ` <87eflt1574.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-12 6:02 ` John MacFarlane
2018-02-13 11:07 ` Uwe Brauer [this message]
[not found] ` <873725jggo.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-13 17:12 ` John MacFarlane
2018-02-13 17:46 ` Re: Uwe Brauer
2018-02-15 8:53 ` [Bug/Error in latex reader, but syntax ok] (was: ) Uwe Brauer
[not found] ` <87inay7hx0.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-15 18:02 ` John MacFarlane
2018-02-17 17:59 ` Uwe Brauer
2018-02-13 18:32 ` Re: Jesse Rosenthal
[not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921@mat.ucm.es>
[not found] ` <c5aa96f9-40a0-6ebc-c376-6d1d7b695921-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2018-02-13 19:00 ` Re: Jesse Rosenthal
2018-02-13 21:48 ` Re: Uwe Brauer
2018-02-13 21:43 ` Re: Uwe Brauer
-- strict thread matches above, loose matches on Subject: below --
2021-06-08 20:31 (unknown) T. Kurt Bond
[not found] ` <CAN1EhV_aNcHtsaajksgMqk3+nu0spmWMkvkCSh78PyBGLng=vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-09 15:24 ` John MacFarlane
2019-04-25 1:09 (unknown) lcy1980.ly
[not found] ` <5cc108ce.1c69fb81.7cd5a.f1b5-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org>
2019-04-25 1:27 ` Xing GUO
2019-04-25 7:02 ` Re: Joost Kremers
2018-01-31 13:43 pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON' Uwe Brauer
2018-01-31 16:30 ` [installed from source] (was: pandoc 2.1.1 64 bit Ubuntu: Could not find module `Text.Pandoc.JSON') Uwe Brauer
2018-01-31 17:54 ` John MacFarlane
2018-01-31 19:03 ` Uwe Brauer
2017-08-21 14:26 latex to html or plain text without any latex construct Uwe Brauer
2017-08-21 21:00 ` John MACFARLANE
2017-08-22 12:20 ` Uwe Brauer
2017-08-22 17:50 ` John MACFARLANE
2017-08-22 20:16 ` Uwe Brauer
2017-08-23 0:09 ` John MacFarlane
2017-08-23 12:22 ` [SOLVED, almost] (was: latex to html or plain text without any latex construct) Uwe Brauer
2017-08-23 14:15 ` John MacFarlane
2017-08-23 16:13 ` Uwe Brauer
[not found] ` <8760dew9da.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2017-08-23 20:54 ` Re: John MACFARLANE
2017-08-24 16:26 ` Re: Uwe Brauer
[not found] ` <87378h53vq.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2017-08-24 16:43 ` Re: John MACFARLANE
2017-08-24 17:30 ` Re: Uwe Brauer
[not found] ` <87y3q850vx.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2017-08-24 17:56 ` Re: John MACFARLANE
2017-08-24 16:44 ` Re: John MACFARLANE
2017-08-24 17:32 ` Re: Uwe Brauer
2017-08-23 14:15 ` (was: latex to html or plain text without any latex construct) John MacFarlane
2017-08-23 16:13 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873725jggo.fsf@mat.ucm.es \
--to=oub-yb6e1s5wf/he5aofshch1g@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).