From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15975 Path: news.gmane.org!.POSTED!not-for-mail From: Rick Nouwen Newsgroups: gmane.text.pandoc Subject: Pandoc filter tikz.py returns "not a valid json value" Date: Fri, 11 Nov 2016 01:21:38 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1229_863799974.1478856098939" X-Trace: blaine.gmane.org 1478856139 13397 195.159.176.226 (11 Nov 2016 09:22:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2016 09:22:19 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDR4DYUE5AFBBI43S3AQKGQEGU4DJJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 11 10:22:15 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f59.google.com ([209.85.220.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c581h-0006ug-6m for gtp-pandoc-discuss@m.gmane.org; Fri, 11 Nov 2016 10:21:37 +0100 Original-Received: by mail-pa0-f59.google.com with SMTP id yw6sf7089102pac.0 for ; Fri, 11 Nov 2016 01:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=8p/aJjSt48M4w9JMlGMYx/1Nn/JvOhl273oeTd9tJ6s=; b=CpgVuFCGt+x2fmg6U2CaqEGBqqULJD4ekolnz0Ar1ldPvIXIbmZND7/kWhmrp+kIrx 9nLw6J/Vu/bn3MgDROWMwIgAmjHb1cH4X85QYZFmBf8/OFGNMT2dKsSNRVa9VCcnQPd2 cT7uCgpID+ZxY7VAG40/GXgL8aGbsFezz0q9vGvWGR8lNYXNUX7xCtjJDRoj3ofTZ/Te UVe84W4Mc1oCIUhvBwNgPlhgPqXA1V6GrtKH9RhyZe4iqG3jNi0PdWrzh6shmcIv9Vzb JrRc41im0hpTi6fLzYkHDArDeEvIgCPuKF+ayLBl9EG79/g9zGCfioaKSE1etKbTb4Hk ezXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=8p/aJjSt48M4w9JMlGMYx/1Nn/JvOhl273oeTd9tJ6s=; b=e6XxfIphyRdu3AjwMlJHMId6HNMLDKC+5qpq0gT6TrH2uYysMlCnNgTJgXbNlgT0HW fMYrS4evli5m/sIXwNK6T41Ci/Aepct4RKBmromCKVz1ZfbgAYWOlDiTtp6T06DXR3EM TcRnEp2pB7k+hRBZA0/h2pIh4K5KY/VmJLYaCuTaQK4wZ0CzC5zI9K+Uy0tNvd4DJk6d GX42rRE0HGndkLRCZLy13GPIvWvOXTzClnEUaMCGZdY8zqOZNivQo6o192nxqsmO1gah hqIQ3PgAesdJOomPWd5i3F8rGZiOTCGrNZxwQOxZrmLnBi8PVxhLKbf/ZJ7DhUsl7BXJ e2+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=8p/aJjSt48M4w9JMlGMYx/1Nn/JvOhl273oeTd9tJ6s=; b=UHmIagmluKL8ctxjtuZdatprfYn/yuTvdTJrSOky5A85s2JXcPXuFoK1xFJROw1hi5 53xQSGoxxuoOG/NT29lK26tgQBym5jBmXUEsx9ByRhbaP+sV6Q1Bja2lIVaz1fZah87T CoaXUE5kRSWj8M49dpFohl7k9BNTFvB9LreKh6/SgUPzluq07kZcJjH320Aq8bZUqYyI o0SEoDHlTbEVINWEwcPDLvQ4KYhLK8yo0Wf3vRYuUzFm8BlLMb3FC0Wtx9JnUvDANRhU CBPKeLc/BZJwhYKnw+9ws2nPHRPtLYnofiI99T716ez0IcjzAat1Cab5M9saS/8ZE130 PrmA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABUngvdb6LOSbrbgMP9eV3cJNuw7mt8gn6KvtI+JWopMM02AejXaVfEndkB5erlYNF2mmA== X-Received: by 10.157.63.164 with SMTP id r33mr149267otc.10.1478856100104; Fri, 11 Nov 2016 01:21:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.3.145 with SMTP id f17ls1153489otf.27.gmail; Fri, 11 Nov 2016 01:21:39 -0800 (PST) X-Received: by 10.157.60.235 with SMTP id t40mr150698otf.0.1478856099559; Fri, 11 Nov 2016 01:21:39 -0800 (PST) X-Original-Sender: rnouwen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:15975 Archived-At: ------=_Part_1229_863799974.1478856098939 Content-Type: multipart/alternative; boundary="----=_Part_1230_1454171340.1478856098939" ------=_Part_1230_1454171340.1478856098939 Content-Type: text/plain; charset=UTF-8 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. ------=_Part_1230_1454171340.1478856098939 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I'm using the tikz.py pandocfilter to turn latex tikz code in a markdo= wn 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 --mathja=
x -i- t slidy tik.md --=
filter tikz.py -o tik.h=
tml

(but I= 've tried simpler commands without slidy or mathjax and they give the s= ame issue)

Where tik.md co= ntains a simple tikz environment:

\begin{t=
ikzpicture}
\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=3Dpdflatex) restricted \write18= enabled.

entering extende= d mode=C2=A0

(./tikz.tex= =C2=A0

LaTeX2e <2015/01= /01>=C2=A0

Babel ...

.....

[1] (./tikz.aux) )

Output written on tikz.pdf (1 page, 1077 bytes).

Transcript written on tikz.log.<= /p>

Created image tikz-images/= 53200b26dfa2c05d2b92647ef74211f7a2ce0c0e.png

p= andoc: Error in $: Failed reading: not a valid json value

<= p style=3D"margin-bottom: 1em; clear: both;">I am using an unaltered tikz.p= y so it is not clear to me where the source of the problem could be. Any th= oughts?=C2=A0

[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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1230_1454171340.1478856098939-- ------=_Part_1229_863799974.1478856098939--