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.
But no success.
Get this error reading:
"Error reading bibliography file Users/stevengrant/Desktop/Ref.bib: (line 11939, column 685): unexpected end of input"
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.
Thanks Brett replied on the forum, but still doesn’t work, wondering if it is a problem with the bib file saved on desktop.
My steps have been:
Generated bibtex keys in bookends.
Exported synced Bibtex file to desktop.
"/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]
But no luck, so a bit stumped, feels so close, so any suggestions appreciated.
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.
> # Testing the citations
> Put a sentence here and reference[@Vinson2018]. Another sentence.
> And a second one here.[@Birnbaum2008]
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.
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.
Any way let me know if you have any thoughts. Can send the .bib file if it helps.
Brett on 22 Jan, 2022 02:47 PM
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.
As far as the margins go, removing the -s from your arguments should fix the issue.
on 22 Jan, 2022 11:05 PM
Thanks for responding. It doesn’t process from command settings
either, I can convert the markdown to rtf for example, but no luck with
citations. Removing the `s` has fixed the margins, but citations not
working seems to be specifically a pandoc issue. Even so, hope this is
helpful to know that the citation feature is not working as expected for
some (potential) users.