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-/JYPxA39Uh5TLH3MbocFFw@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.