tag:support.markedapp.com,2011-09-11:/discussions/questions/9337-custom-processor-pandoc-with-bibliography-how-to-set-up-the-argsMarked: Discussion 2020-02-25T14:34:36Ztag:support.markedapp.com,2011-09-11:Comment/478937022019-12-03T20:43:51Z2019-12-03T20:43:51ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>Your working terminal command outputs a PDF, you need to ensure that<br>
you're outputting HTML. Then you should be able to set the processor to<br>
/usr/local/bin/pandoc and the rest of the arguments in the arguments field.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T12:04:58Z2019-12-04T12:04:58ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>Thnks, Brett,</p>
<p>I've changed:</p>
<p>path: /usr/local/bin/pandoc<br>
args: --bibliography biblio.bib --filter pandoc-citeproc -t html5<br>
with "biblio.bib" beeing a full path to my biblio.bib file</p>
<p>and still get the error:</p>
<p><em>Error running custom processor</em></p>
<p>[WARNING] Could not deduce format from file extension or . or . or or or or or or or . or .bib" or</p>
<p>Defaulting to markdown</p>
<p>pandoc: : openBinaryFile: does not exist (No such file or directory)</p>
<p>I've also tried args as</p>
<p>--bibliography biblio.bib --filter pandoc-citeproc CITATIONS.md -t html5</p>
<p>-s -f markdown --bibliography biblio.bib --filter pandoc-citeproc CITATIONS.md -t html5</p>
<p>but no success.</p>
<p>Any idea?</p>
<p>Many thanks,</p>
<p>Andy</p>
<p>wt., 3 gru 2019 o 21:43 Brett <a href="mailto:tender2+dba13f558c@tenderapp.com">tender2+dba13f558c@tenderapp.com</a> napisał(a):</p></div>andrzej.wodeckitag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T13:43:30Z2019-12-04T13:43:30ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>See if this helps at all:</p>
<p><a href="http://support.markedapp.com/discussions/problems/139702-marked-does-not-read-csl-file#comment_42872204">http://support.markedapp.com/discussions/problems/139702-marked-doe...</a></p>
<p>There have been a lot of discussions like this on the forums, some of<br>
which may be helpful. Personally, I'm not well versed in Pandoc options<br>
and can't offer a lot of support for 3rd party processors. But the<br>
answers are here with a little searching.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T14:10:54Z2019-12-04T14:10:54ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>OK, thanks :)</p>
<p>a</p>
<p>śr., 4 gru 2019 o 14:43 Brett <a href="mailto:tender2+dba13f558c@tenderapp.com">tender2+dba13f558c@tenderapp.com</a> napisał(a):</p></div>andrzej.wodeckitag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T18:04:37Z2019-12-04T18:04:39ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>I'm not sure to understand.</p>
<p>If you only want to use Pandoc-citeproc to generate bibliography in Marked 2 previewer, you don't have to write all the command line.</p>
<p>For example, in my case :</p>
<p>Path : /usr/local/bin/pandoc<br>
Arg : -s --filter pandoc-citeproc --bibliography /Users/mynane/Pandoc/Library.bib --csl /Users/myname/Pandoc/apa.csl</p></div>Jotag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T19:29:02Z2019-12-04T19:29:02ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>Is this a question? I don't understand.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/478937022019-12-04T19:29:49Z2019-12-04T19:29:49ZCustom processor (pandoc with bibliography):: how to set-up the args?<div><p>Many thanks, Jo,</p>
<p>that works :)</p>
<p>But... My "error" was completely different: a path to my .bib file<br>
contained whitespaces.<br>
In terminal you escape them either with " ", ' ' or .<br>
Arg field in Mark 2 doesn't allow such escapes, and, at the end of the day,<br>
whitespaces in paths at all...</p>
<p>When I put my csl and lib file in /Users/mynane/Pandoc/ (no whitespaces in<br>
a path) - that works :)</p>
<p>Many thanks once again,</p>
<p>Andy</p>
<p>śr., 4 gru 2019 o 19:04 Jo <a href="mailto:tender2+dba13f558c@tenderapp.com">tender2+dba13f558c@tenderapp.com</a> napisał(a):</p></div>andrzej.wodecki