Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown export hangs #1

Open
mclearc opened this issue Jan 15, 2014 · 10 comments
Open

markdown export hangs #1

mclearc opened this issue Jan 15, 2014 · 10 comments

Comments

@mclearc
Copy link

mclearc commented Jan 15, 2014

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!

@saralilyb
Copy link

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.

@Utsira
Copy link

Utsira commented Mar 20, 2015

Same problem here.

dsanson added a commit that referenced this issue Mar 20, 2015
Maybe this will fix issue #1
@dsanson
Copy link
Owner

dsanson commented Mar 20, 2015

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.

@mclearc
Copy link
Author

mclearc commented Mar 20, 2015

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

@twsh
Copy link

twsh commented Apr 4, 2015

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

@twsh
Copy link

twsh commented Apr 4, 2015

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
Copy link

twsh commented Apr 7, 2015

It's working for me now.

@whrose
Copy link

whrose commented Feb 3, 2018

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
Copy link

whrose commented Feb 5, 2018

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

@andrewheiss
Copy link

#7 fixes all the extra :::s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants