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

Pandoc-style citations #228

Closed
tarleb opened this issue May 25, 2016 · 4 comments
Closed

Pandoc-style citations #228

tarleb opened this issue May 25, 2016 · 4 comments

Comments

@tarleb
Copy link

tarleb commented May 25, 2016

I am the maintainer of Pandoc's Org-mode reader and want to improve the reader's citation support. org-ref seems to have evolved to the default referencing method, I am working towards enabling recognition of the org-ref-syntax with Pandoc.

Pandoc currently has its own citation syntax, designed by jgm for markdown and adapted to org-mode. It would be great if org-ref and Pandoc could understand each other's format.

Pandoc's current syntax is

[@citationKey]

for simple keys (LaTeX: \cite{citationKey} and

[see @tarleb p. 34-35]

for more complex citations (\citep[see][ p. 34-35]{tarleb}).

There is also a outstanding issue (jgm/pandoc#1978) requesting support for @citeKey syntax, which is also supported in Pandoc's Markdown implementation. It's nice and succinct syntax, yet I'm unsure if this should be implemented in the context of Org-mode; your opinions on this would be appreciated.

@jkitchin
Copy link
Owner

I don't see much hope for org-ref being aware of other syntax until the
new citation syntax in org-mode is in the master. I think it would be
similar to @citeKey. There was a lot of work in that direction, but I am
not sure it has led to a definitive solution yet. The need for a
citeproc has help things up a bit. I believe someone was looking into
the pandoc citeproc. I even started a citeproc project for org-ref, but
I am not working on it much now.

org-ref uses org-links right now because they are org-elements, which
lets it use a lot of the org-machinery to manipulate them, export them,
and make them functional, without a lot (besides requiring org-ref) of
intervention from users. None of this would work without that.

The simplest citation is just cite:key

The link syntax is pretty limited, but can handle this:

\citep[see][ p. 34-35]{tarleb}

like this:

[[citep:tarleb][see:: p. 34-35]]

This: [see @tarleb p. 34-35]
would be: [[cite:tarleb][see :: p. 34-35]] I think.

That is about as sophisticated as is possible with the link capability.

I am not sure I have answered your questions.

Albert Krewinkel writes:

I am the maintainer of Pandoc's Org-mode reader and want to improve the reader's citation support. org-ref seems to have evolved to the default referencing method, I am working towards enabling recognition of the org-ref-syntax with Pandoc.

Pandoc currently has its own citation syntax, designed by jgm for markdown and adapted to org-mode. It would be great if org-ref and Pandoc could understand each other's format.

Pandoc's current syntax is

[@citationKey]

for simple keys (LaTeX: \cite{citationKey} and

[see @tarleb p. 34-35]

for more complex citations (\citep[see][ p. 34-35]{tarleb}).

There is also a outstanding issue (jgm/pandoc#1978) requesting support for @citeKey syntax, which is also supported in Pandoc's Markdown implementation. It's nice and succinct syntax, yet I'm unsure if this should be implemented in the context of Org-mode; your opinions on this would be appreciated.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#228

Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

@tarleb
Copy link
Author

tarleb commented May 27, 2016

Thanks for the feedback. I guess you are right about wanting to wait till the official org-mode syntax finalizes. I'll close this issue for now.

Pandoc support of org-ref syntax won't be complete for now, only cite:, citep, citet, and citeyear are supported (jgm/pandoc#2950). I will add more natbib commands later on.

Thanks again and happy hacking.

@tarleb tarleb closed this as completed May 27, 2016
@bdarcus
Copy link
Contributor

bdarcus commented Mar 5, 2020

Do you know the status of the org-mode official work? It seems, almost four years later, the citation branch is still WIP?

They really need an issue tracker.

@jkitchin
Copy link
Owner

jkitchin commented Mar 5, 2020

I believe it is still wip. I haven't heard anything about it moving to master yet.

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

3 participants