bibdesk-pandoc-export-templates
bibdesk-pandoc-export-templates copied to clipboard
markdown export hangs
Hi David - I've been having a problem using your template and I haven't been able to figure out its cause. Basically, when I try to use "exportMarkdownReferences" BibDesk just freezes up. The "exportPandocCitations" script works fine. As far as I can tell I've followed all your set-up instructions correctly. Any ideas? Thanks!
I'm having the same problem. I don't understand what the
read bibfile
read
read refs
bits are doing, so I can't replicate it in the terminal. pandoc
is in my path and works just fine.
Same problem here.
Bah. Still doesn't work. Made some more changes. It works fine for me from the CLI, but not from BibDesk. To test the script on the CLI, create a text file with three lines:
/path/to/bibtex.bib
[@citekey1; @citekey2]
Then pipe this text file to ./exportMarkdownReferences.sh
:
cat tmp.txt | ./exportMarkdownReferences.sh
If that works, but it doesn't work in BibDesk, then something has gone wrong with the BibDesk integration.
At this point I just copy citation tags to the clipboard and pipe them through pandoc and back to the clipboard:
pbpaste | pandoc --bibliography=/Users/Roambot/Dropbox/Work/Master.bib -t markdown-citations | pbcopy
Seems even quicker than using BibDesk
The problem is the exit code at the end. Replace exit 1
with exit 0
and it works.
I also found that I needed to either remove the --csl
option, or replace it with a full path to a CSL file. Not doing so made BibDesk unresponsive. Pandoc defaults to a Chicago Author Date style anyway. I think that the people having problems may have been running into both issues.
It's working for me now.
Since I have a new MacBook Pro, markdown export hangs for me as well. This may be related to having now installed pandoc using homebrew, which puts a alias/symlink in /usr/local/bin
.
Line 6, which sets $PATH
, should not be a problem. Here are my paths:
mbp27:~ myusername$ echo $PATH
/Users/whrose/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
But maybe it is …
That’s great, it no longer hangs!
However, a new problem appears, extra bits and pieces, as in this minimal example:
Blau, Joshua. 2010. *Phonology and Morphology of Biblical Hebrew: An Introduction*. Linguistic Studies in Ancient West Semitic 2. Winona Lake, Ind.: Eisenbrauns.
:::
::: {#ref-Edzard2011BiblicalHebrew}
Edzard, Lutz. 2011. "Biblical Hebrew." In *The Semitic Languages: An International Handbook*, edited by Stefan Weninger, 480--514. Handbücher zur Sprach- und Kommunikationswissenschaft 36. Berlin: De Gruyter Mouton.
:::
::: {#ref-Vance2004Introduction}
Vance, Donald R. 2004. *Introduction to Classical Hebrew*. Boston, Mass.: Brill.
:::
:::
#7 fixes all the extra :::
s