bibdesk-pandoc-export-templates icon indicating copy to clipboard operation
bibdesk-pandoc-export-templates copied to clipboard

markdown export hangs

Open mclearc opened this issue 11 years ago • 10 comments

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!

mclearc avatar Jan 15 '14 21:01 mclearc

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.

saralilyb avatar Dec 18 '14 04:12 saralilyb

Same problem here.

Utsira avatar Mar 20 '15 11:03 Utsira

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.

dsanson avatar Mar 20 '15 18:03 dsanson

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

mclearc avatar Mar 20 '15 19:03 mclearc

The problem is the exit code at the end. Replace exit 1 with exit 0 and it works.

twsh avatar Apr 04 '15 22:04 twsh

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.

twsh avatar Apr 04 '15 23:04 twsh

It's working for me now.

twsh avatar Apr 07 '15 05:04 twsh

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 …

whrose avatar Feb 03 '18 19:02 whrose

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.
:::
:::

whrose avatar Feb 05 '18 12:02 whrose

#7 fixes all the extra :::s

andrewheiss avatar Feb 10 '20 17:02 andrewheiss