joss icon indicating copy to clipboard operation
joss copied to clipboard

Add supported graphics section in docs

Open dmey opened this issue 5 years ago • 9 comments

I have noticed that Scalable Vector Graphics (SVG) figures are not supported. Given that pdflatex is used to generate the pdf, I think the only supported formats are pdf, png, jpg, andeps. I think it would help to have a supported media-formats section. Happy to send a PR for the docs to include a table with supported formats.

dmey avatar Dec 05 '18 22:12 dmey

I haven't tested it with a paper through whedon, but Pandoc supports SVG by using rsvg-convert. https://github.com/jgm/pandoc/commit/6b72c5e35ba9b0872704b77b2bd8793657adcaba Do you have an example that fails?

@arfon Is rsvg-convert (librsvg) installed on Whedon's host?

jedbrown avatar Dec 06 '18 05:12 jedbrown

@jedbrown https://github.com/openjournals/joss-reviews/issues/1113#issuecomment-443378686

dmey avatar Dec 06 '18 07:12 dmey

Aha, I ran it locally and it worked, though rsvg-convert botched the text wrapping so the diagram doesn't look good. I haven't run into this before and it would be worth filing a bug report.

@arfon I think it's worth installing librsvg -- it's a widely used tool and usually produces good output.

jedbrown avatar Dec 06 '18 16:12 jedbrown

@jedbrown - it looks like librsvg2 is already installed on the Heroku hosts: https://devcenter.heroku.com/articles/stack-packages

Aha, I ran it locally and it worked, though rsvg-convert botched the text wrapping so the diagram doesn't look good. I haven't run into this before and it would be worth filing a bug report.

Does anything specific have to be passed to Pandoc or should it 'just work'?

arfon avatar Dec 15 '18 11:12 arfon

It just works when I run locally. Is the executable rsvg-convert in PATH. That's what the implementation tries.

jedbrown avatar Dec 15 '18 15:12 jedbrown

Looks like you need to install librsvg2-bin.

jedbrown avatar Jan 06 '19 16:01 jedbrown

What's the status for SVG support? I just tried to use https://github.com/openbases/openbases-pdf and got "rsvg-convert: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)".

letmaik avatar May 14 '19 19:05 letmaik

I've not had time to get this working sorry. Please use another format (PNG etc.)

arfon avatar May 14 '19 19:05 arfon

A pdf figure will look better (as a vector graphic).

jedbrown avatar May 15 '19 15:05 jedbrown