* Pandoc filter tikz.py returns "not a valid json value"
@ 2016-11-11 9:21 Rick Nouwen
[not found] ` <e9f83509-7032-4412-b773-7a81090d6941-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rick Nouwen @ 2016-11-11 9:21 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1912 bytes --]
I'm using the tikz.py pandocfilter to turn latex tikz code in a markdown
file into images in the output html file. I'm running pandoc version
1.17.0.2, python 2.7.10 and ImageMagick 6.9.6-4. My pandoc command is:
pandoc -s -c --mathjax -i- t slidy tik.md --filter tikz.py -o tik.html
(but I've tried simpler commands without slidy or mathjax and they give the
same issue)
Where tik.md contains a simple tikz environment:
\begin{tikzpicture}
\draw (0,0) -- (4,0) -- (4,4) -- (0,4) -- (0,0);
\end{tikzpicture}
tikz.py runs well and it seems to successfully generate the image:
$ pandoc -s -c --mathjax -i -t slidy tik.md --filter tikz.py -o tik.html
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded
format=pdflatex) restricted \write18 enabled.
entering extended mode
(./tikz.tex
LaTeX2e <2015/01/01>
Babel ...
.....
[1] (./tikz.aux) )
Output written on tikz.pdf (1 page, 1077 bytes).
Transcript written on tikz.log.
Created image tikz-images/53200b26dfa2c05d2b92647ef74211f7a2ce0c0e.png
pandoc: Error in $: Failed reading: not a valid json value
I am using an unaltered tikz.py so it is not clear to me where the source
of the problem could be. Any thoughts?
[duplicate at stackoverflow:
http://stackoverflow.com/questions/40543436/pandoc-filter-tikz-py-returns-not-a-valid-json-value]
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e9f83509-7032-4412-b773-7a81090d6941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 8775 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc filter tikz.py returns "not a valid json value"
[not found] ` <e9f83509-7032-4412-b773-7a81090d6941-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-12 0:25 ` John MacFarlane
[not found] ` <20161112002549.GE77829-jF64zX8BO0/xZR0Txf6TOv112/MQ1Lpv@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2016-11-12 0:25 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Try updating your pandocfilters library using pip.
+++ Rick Nouwen [Nov 11 16 01:21 ]:
> I'm using the tikz.py pandocfilter to turn latex tikz code in a
> markdown file into images in the output html file. I'm running pandoc
> version 1.17.0.2, python 2.7.10 and ImageMagick 6.9.6-4. My pandoc
> command is:
>pandoc -s -c --mathjax -i- t slidy tik.md --filter tikz.py -o tik.html
>
> (but I've tried simpler commands without slidy or mathjax and they give
> the same issue)
>
> Where tik.md contains a simple tikz environment:
>\begin{tikzpicture}
>\draw (0,0) -- (4,0) -- (4,4) -- (0,4) -- (0,0);
>\end{tikzpicture}
>
> tikz.py runs well and it seems to successfully generate the image:
>
> $ pandoc -s -c --mathjax -i -t slidy tik.md --filter tikz.py -o
> tik.html
>
> This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015)
> (preloaded format=pdflatex) restricted \write18 enabled.
>
> entering extended mode
>
> (./tikz.tex
>
> LaTeX2e <2015/01/01>
>
> Babel ...
>
> .....
>
> [1] (./tikz.aux) )
>
> Output written on tikz.pdf (1 page, 1077 bytes).
>
> Transcript written on tikz.log.
>
> Created image
> tikz-images/53200b26dfa2c05d2b92647ef74211f7a2ce0c0e.png
>
> pandoc: Error in $: Failed reading: not a valid json value
>
> I am using an unaltered tikz.py so it is not clear to me where the
> source of the problem could be. Any thoughts?
> [duplicate at stackoverflow:
> http://stackoverflow.com/questions/40543436/pandoc-filter-tikz-py-retur
> ns-not-a-valid-json-value]
>
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/e9f83509-7032-4412-
> b773-7a81090d6941%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. https://groups.google.com/d/msgid/pandoc-discuss/e9f83509-7032-4412-b773-7a81090d6941-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc filter tikz.py returns "not a valid json value"
[not found] ` <20161112002549.GE77829-jF64zX8BO0/xZR0Txf6TOv112/MQ1Lpv@public.gmane.org>
@ 2016-11-14 9:59 ` Rick Nouwen
[not found] ` <b43d466d-8f2f-47a4-9edf-151f24585a6c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rick Nouwen @ 2016-11-14 9:59 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 647 bytes --]
I tried this, but was already running pandocfilters 1.4.1, so no luck.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b43d466d-8f2f-47a4-9edf-151f24585a6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1196 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc filter tikz.py returns "not a valid json value"
[not found] ` <b43d466d-8f2f-47a4-9edf-151f24585a6c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-15 13:46 ` John MacFarlane
0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2016-11-15 13:46 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
It's possible that the filter itself needs updating in light
of the JSON format changes. (And if so, maybe the example
in the repository needs updating.)
+++ Rick Nouwen [Nov 14 16 01:59 ]:
> I tried this, but was already running pandocfilters 1.4.1, so no luck.
>
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/b43d466d-8f2f-47a4-
> 9edf-151f24585a6c%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. https://groups.google.com/d/msgid/pandoc-discuss/b43d466d-8f2f-47a4-9edf-151f24585a6c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-15 13:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-11 9:21 Pandoc filter tikz.py returns "not a valid json value" Rick Nouwen
[not found] ` <e9f83509-7032-4412-b773-7a81090d6941-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-12 0:25 ` John MacFarlane
[not found] ` <20161112002549.GE77829-jF64zX8BO0/xZR0Txf6TOv112/MQ1Lpv@public.gmane.org>
2016-11-14 9:59 ` Rick Nouwen
[not found] ` <b43d466d-8f2f-47a4-9edf-151f24585a6c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-15 13:46 ` John MacFarlane
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).