From: "'Dan Shearer' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Pikchr in Pandoc
Date: Tue, 2 Feb 2021 06:46:42 -0800 (PST) [thread overview]
Message-ID: <ab76e66c-7cc6-404b-9d38-4e16351aa424n@googlegroups.com> (raw)
In-Reply-To: <0f250ab3-fbea-cc8f-dd4c-c9ff234b8c98-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1960 bytes --]
Le lundi 1 février 2021 à 16:43:36 UTC, ChrisD a écrit :
> I was not aware of Pitchr, so thanks for posting this. I have used dot
> (graphviz) a lot, but Pitchr looks to fill a different niche.
>
Yes it does, while also very much being of the do-one-job-well philosophy.
Not surprising from something Brian Kernighan wrote.
Is Pitchr available as a executable somewhere? All I could find was the C
> source code file. Thanks,
>
No, Pikchr is not currently available as an executable. However pretty much
any C build environment will create an executable as follows.
1. Get the (very small, zero dependency) Pikchr source from one of:
a) https://pikchr.org/home/download . This is an automatic
tarball/zip/sqlar from the latest Fossil checkin.
b) the command "fossil clone https://pikchr.org/"
2. cd pikchr
make
this will give you a binary called "pikchr" (probably PIKCHR.EXE for
Windows, but I have never tried with Windows)
3. You can then try pikchr:
./pikchr --svg-only examples/headings01.pikchr
will produce only the SVG code corresponding to the Pikchr code.
./pikchr examples/headings01.pikchr > /tmp/headings.html
This wraps the SVG in HTML, you can point your web browser at
/tmp/headings.html
I have an SVG convertor called rsvg-convert from the librsvg2-bin package.
Using this I can generate PNG:
./pikchr --svg-only examples/headings01.pikchr | rsvg-convert >
/tmp/headings.png
--
Dan Shearer
dan-QNUrB6Xd9YFAfugRpC6u6w@public.gmane.org
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ab76e66c-7cc6-404b-9d38-4e16351aa424n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2958 bytes --]
next prev parent reply other threads:[~2021-02-02 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 4:42 Dan Shearer
[not found] ` <YBeGoc/cMhn7sLG8-2yWpFc3xKUBM656bX5wj8A@public.gmane.org>
2021-02-01 16:43 ` ChrisD
[not found] ` <0f250ab3-fbea-cc8f-dd4c-c9ff234b8c98-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org>
2021-02-02 14:46 ` 'Dan Shearer' via pandoc-discuss [this message]
2021-02-01 17:40 ` John MacFarlane
[not found] ` <m21rdz3cvx.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-02-02 14:32 ` 'Dan Shearer' via pandoc-discuss
[not found] ` <f194310d-8b68-41d5-a13e-28f83fd7b512n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-02-02 17:29 ` John MacFarlane
[not found] ` <m2czxigyzn.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2022-01-10 21:16 ` 'Dan Shearer' via pandoc-discuss
2021-02-02 14:55 ` 'Dan Shearer' via pandoc-discuss
2021-11-25 9:19 ` 'Dan Shearer' via pandoc-discuss
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=ab76e66c-7cc6-404b-9d38-4e16351aa424n@googlegroups.com \
--to=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).