-
Notifications
You must be signed in to change notification settings - Fork 13
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
Handle Zotero "live references" allowed by Better Bibtex. #20
Comments
Short term - direct use of pandocI think you can already do this already just by calling
A couple of notes:
Longer term - Org / ox-pandoc integrationTo make this integrate with ox-pandoc, we'd need an Org citation exporter that just reproduces the org citation syntax rather than trying to resolve it. Maybe It isn't as easy as handling some other "identity" items in ox-pandoc (for example _LATEX and _HTML blocks) because citation processing is handled outside the normal export element processing in Org. @bdarcus I wonder if |
Something to try with ox-pandoc - does this work for you? Evaluate (defun org-cite-identity-export-bibliography (_keys _files _style props &rest _)
"#+print_bibliography:"
)
(defun org-cite-identity-export-citation (citation style _ info)
(org-element-interpret-data citation)
)
;;; Register `identity' processor
(org-cite-register-processor 'identity
:export-bibliography #'org-cite-identity-export-bibliography
:export-citation #'org-cite-identity-export-citation
)
(provide 'oc-identity) And then add to the header of the file you offered here: #1 (comment) the line Then try |
That could indeed be a good idea. I had earlier also wondered how feasible it would be to modify EDIT: I guess one downside would be that the conversion more generally may not be as feature-complete as org itself? The POC would indeed be a good test. There is an interesting strategic question for org going forward about what processors to include, and what to keep separate. (To be clear, I'm not sure myself) It could be, for example, that if you like the result, you split it off as a separate package, that works well whether or not it's in org itself? |
;;; Register `identity' processor
(org-cite-register-processor 'identity
:export-bibliography #'org-cite-identity-export-bibliography
:export-citation #'org-cite-identity-export-citation
)
(provide 'oc-identity)
```
What about simply adding `(pandoc . nil)` to `org-cite-export-processors`?
…--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
|
Thanks for the suggestion Ihor. I am probably being dim but however I try to do variants on Also there is no way (apart from binding variables) to set |
> What about simply adding `(pandoc . nil)` to `org-cite-export-processors`?
Thanks for the suggestion Ihor. I am probably being dim but however I try to do variants on `(add-to-list 'org-cite-export-processors '(pandoc . nil))` I get the error "_Invalid cite export definition: nil_". Nil-ing the whole variable just means citations are ignore i.e. deleted in export, which the variable definition hints at.
Hmm. You are right. I missed that promise and thought (wrongly) that
missing citations are a result of absence of the relevant transcoders.
Also there is no way (apart from binding variables) to set `#+cite_export: nil` at file-level at the moment, right?
I just tried
#+BIBLIOGRAPHY: bib.bib
#+CITE_EXPORT:
This is test ***@***.***.
and it avoids exporting citations.
…--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
|
Thank you for checking this.
Ah OK, didn't know you could do that. It does something a bit different to the
|
Alex Fenton ***@***.***> writes:
Ah OK, didn't know you could do that. It does something a bit different to the `oc-identity` I suggested to the OP - it removes all citations and bibliography calls in the output.
`oc-identity` preserves the original Org cite syntax so it can be processed by something else that understands it (e.g. pandoc).
Agreed. `oc-indentity' sounds like a reasonable addition to Org core then.
…--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
|
The Better Bibtex plugin to the Zotero reference manager allows the export of reference as "live" citationss, which can be used and (mostly) exported from Markdown to odt/docx, the resulting docuent having "live" reference editable on LibreOffice/Word via their respective Zotero plugins.
Can such a functionality be implemented to allow the same exportation from Org ?
This almost certainly involves some additions to Org itself...
The text was updated successfully, but these errors were encountered: