tag:support.markedapp.com,2011-09-11:/discussions/problems/162397-citations-from-bib-not-processedMarked: Discussion 2022-05-31T23:58:48Ztag:support.markedapp.com,2011-09-11:Comment/491222822021-04-02T19:50:55Z2021-04-02T19:50:55Zcitations from bib not processed<div><p>I add that in a terminal , the following command :<br>
pandoc -s --bibliography /Users/Philippe/zoterobib/zoterobib.bib --citeproc test.md -o test.html</p>
<p>give the good result (citations processed in the output test.html)</p></div>PhilQuandtag:support.markedapp.com,2011-09-11:Comment/491222822021-04-02T21:43:34Z2021-04-02T21:43:34Zcitations from bib not processed<div><p>Don't you need the --citeproc flag in your custom processor settings,<br>
too?</p>
<p>If you open Help->Show Custom Processor Log, you can see if there's<br>
STDERR output from pandoc when it runs. Might give us some clues.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/491222822021-04-02T21:54:07Z2021-04-02T21:54:08Zcitations from bib not processed<div><p>Yes -citeproc was missing... but there was no error in the logs !</p>
<p>Here is a syntax for Args that makes things working :<br>
--from=markdown --to=html --bibliography=/Users/Philippe/zoterobib/zoterobib.bib -s --citeproc</p></div>PhilQuandtag:support.markedapp.com,2011-09-11:Comment/491222822021-04-02T22:03:23Z2021-04-02T22:03:23Zcitations from bib not processed<div><p>Hi Brettt,</p>
<p>Yes —cité-roc was missing but there was no error in the STDERR output.</p>
<p>Thanks for help !<br>
Philippe</p></div>Philippe Quandalletag:support.markedapp.com,2011-09-11:Comment/491222822022-01-21T06:13:35Z2022-01-21T06:13:37Zcitations from bib not processed<div><p>Hi Everyone,</p>
<p>I am trialling marked 2 principally for citation management with markdown. The demos look very useful. But can't get the citation feature to work. I have "/usr/local/bin/pandoc" in the path of the custom processor and "-f markdown -t html5 --bibliography=Users/stevengrant/Desktop/Ref.bib -s --citeproc". The Ref.bib was created by bookends.<br>
But no success.<br>
Get this error reading:</p>
<blockquote>
<p>"Error reading bibliography file Users/stevengrant/Desktop/Ref.bib: (line 11939, column 685): unexpected end of input"</p>
</blockquote>
<p>Anyone know if there is any trick to get this working. Have only recently installed pandoc and not particularly familiar with it. Would be well worth the purchase if this can work for me.</p>
<p>Steve</p></div>Stevetag:support.markedapp.com,2011-09-11:Comment/491222822022-01-21T21:35:35Z2022-01-21T21:35:35Zcitations from bib not processed<div><p>Your bibliography path needs to begin with a slash, e.g. --bibliography=/Users/... I didn't check all the other options, but let me know if fixing that obvious one solves it.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/491222822022-01-21T22:38:41Z2022-05-30T15:53:51Zcitations from bib not processed<div><p>Thanks Brett replied on the forum, but still doesn’t work, wondering if it is a problem with the bib file saved on desktop.</p>
<p>My steps have been:</p>
<p>Generated bibtex keys in bookends.<br>
Exported synced Bibtex file to desktop.<br>
"/usr/local/bin/pandoc” in custom processor path "-f markdown -t html5 --bibliography=/Users/stevengrant/Desktop/Ref.bib -s —citeproc” in arguments field Created a test document with temporary citations in the form of [@citation_key]</p>
<p>But no luck, so a bit stumped, feels so close, so any suggestions appreciated.</p>
<p>Steve</p></div>Steven Granttag:support.markedapp.com,2011-09-11:Comment/491222822022-01-22T04:36:24Z2022-01-22T04:36:26Zcitations from bib not processed<div><p>Hi Brett, further to previous email, I have managed to get rid of the error message by looking at that line of the bib file (I could open in excel), and updating that reference in Bookends from the internet. But still no joy with the citations. I have typed this markdown in TextEdit.</p>
<blockquote>
<h1><a name="testing-the-citations" class="anchor" href="#testing-the-citations"></a>Testing the citations</h1>
<p>Put a sentence here and reference[@Vinson2018]. Another sentence. And a second one here.[@Birnbaum2008]</p>
</blockquote>
<p>But the rendered version is as per the attachment, square brackets are replaced with round parentheses, and the @ symbol is removed, a question mark is appearing after the cite key, and no bibliography generated.</p>
<p>There’s also a line brake after “and” that shouldn’t appear, and the text width is very narrow even though the text width limit is set to 900px. This is with the Swiss CSS, but seems to render normally in some other CSS like the Github.</p>
<p>Any way let me know if you have any thoughts. Can send the .bib file if it helps.</p>
<p>Steve</p></div>Steven Granttag:support.markedapp.com,2011-09-11:Comment/491222822022-01-22T14:47:49Z2022-01-22T14:47:49Zcitations from bib not processed<div><p>I'm not much of a Pandoc user, and I've never dealt with bibliography or citations, so this is really outside the scope of Marked support. That said, are you able to get the same file to process from the command line using the same settings? If so, then we can try to figure out what's happening inside of Marked.</p>
<p>As far as the margins go, removing the <code>-s</code> from your arguments should fix the issue.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/491222822022-01-22T23:05:47Z2022-01-22T23:05:47Zcitations from bib not processed<div><p>Hi Brett,</p>
<p>Thanks for responding. It doesn’t process from command settings<br>
either, I can convert the markdown to rtf for example, but no luck with<br>
citations. Removing the <code>s</code> has fixed the margins, but citations not<br>
working seems to be specifically a pandoc issue. Even so, hope this is<br>
helpful to know that the citation feature is not working as expected for<br>
some (potential) users.</p>
<p>Steve</p></div>Steven Granttag:support.markedapp.com,2011-09-11:Comment/491222822022-05-31T13:03:48Z2022-05-31T13:03:48Zcitations from bib not processed<div><p>I note that in the command you listed you have an en-dash instead of a double dash (on --citeproc). Is that copied straight from Marked or is that something that the forum software did to your paste?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/491222822022-05-31T23:58:47Z2022-05-31T23:58:47Zcitations from bib not processed<div><p>Hi Brett, I have no idea, but well spotted. I did have smart dashes checked on system preferences. When I have some time will try the citation feature again.</p>
<p>Steve</p></div>Steven Grant