{"action":"created","issue":{"url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/191","repository_url":"https://api.github.com/repos/kaushalmodi/ox-hugo","labels_url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/191/comments","events_url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/191/events","html_url":"https://github.com/kaushalmodi/ox-hugo/issues/191","id":351854690,"node_id":"MDU6SXNzdWUzNTE4NTQ2OTA=","number":191,"title":"Org-ref citation + citeproc-org","user":{"login":"Cumol","id":4943380,"node_id":"MDQ6VXNlcjQ5NDMzODA=","avatar_url":"https://avatars0.githubusercontent.com/u/4943380?v=4","gravatar_id":"","url":"https://api.github.com/users/Cumol","html_url":"https://github.com/Cumol","followers_url":"https://api.github.com/users/Cumol/followers","following_url":"https://api.github.com/users/Cumol/following{/other_user}","gists_url":"https://api.github.com/users/Cumol/gists{/gist_id}","starred_url":"https://api.github.com/users/Cumol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cumol/subscriptions","organizations_url":"https://api.github.com/users/Cumol/orgs","repos_url":"https://api.github.com/users/Cumol/repos","events_url":"https://api.github.com/users/Cumol/events{/privacy}","received_events_url":"https://api.github.com/users/Cumol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-18T21:46:52Z","updated_at":"2018-08-19T13:53:40Z","closed_at":null,"author_association":"NONE","body":"I was trying out ox-hugo (thanks for this amazing package btw!) and tried to export some citaitons as generated by org-ref. The links themselves seem to works pretty nice but the generated bibliography is not so nice. Below is an example of my input and output.\r\n\r\nMaybe using https://github.com/andras-simonyi/citeproc-org could help? I tried it using html-export and it did a beautiful job!\r\n\r\n\r\nInput:\r\n\r\n```\r\nLets have a look at citations.  This cites the book: Kandel, Principles of Neural Sciences cite:kandel2013\r\n\r\nThis cites a journal articel: cite:terenzio2017\r\n\r\nThis cites two articles: cite:hensel1960,hensel1951\r\n\r\nbibliographystyle:unsrt\r\nbibliography:~/cloud/phd/papers/bibliography.bib\r\n\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nLets have a look at citations. This cites the book: Kandel, Principles of Neural Sciences kandel2013\r\n\r\nThis cites a journal articel: terenzio2017\r\n\r\nThis cites two articles: hensel1960,hensel1951\r\nBibliography\r\n\r\n[kandel2013] Kandel, Principles of Neural Science, McGraw-Hill (2013). ↩\r\n\r\n[terenzio2017] Terenzio, Schiavo & Fainzilber, Compartmentalized Signaling in Neurons: From Cell Biology to Neuroscience, Neuron, 96(3), 667-679 (2017). doi. ↩\r\n\r\n[hensel1960] Hensel & Boman, AFFERENT IMPULSES IN CUTANEOUS SENSORY NERVES IN HUMAN SUBJECTS, Journal of Neurophysiology, 23(5), 564-578 (1960). doi. ↩\r\n\r\n[hensel1951] Hensel & Zotterman, ACTION POTENTIALS OF COLD FIBRES AND INTRACUTANEOUS TEMPERATURE GRADIENT, Journal of Neurophysiology, 14(5), 377-385 (1951). doi. ↩\r\n```\r\n\r\nI think, generally, it is doing an OK job, but it could be better formatted. citeproc-org does that part nicely, I wonder if it can be leveraged here"},"comment":{"url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/comments/414129378","html_url":"https://github.com/kaushalmodi/ox-hugo/issues/191#issuecomment-414129378","issue_url":"https://api.github.com/repos/kaushalmodi/ox-hugo/issues/191","id":414129378,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDEyOTM3OA==","user":{"login":"Cumol","id":4943380,"node_id":"MDQ6VXNlcjQ5NDMzODA=","avatar_url":"https://avatars0.githubusercontent.com/u/4943380?v=4","gravatar_id":"","url":"https://api.github.com/users/Cumol","html_url":"https://github.com/Cumol","followers_url":"https://api.github.com/users/Cumol/followers","following_url":"https://api.github.com/users/Cumol/following{/other_user}","gists_url":"https://api.github.com/users/Cumol/gists{/gist_id}","starred_url":"https://api.github.com/users/Cumol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cumol/subscriptions","organizations_url":"https://api.github.com/users/Cumol/orgs","repos_url":"https://api.github.com/users/Cumol/repos","events_url":"https://api.github.com/users/Cumol/events{/privacy}","received_events_url":"https://api.github.com/users/Cumol/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T13:53:40Z","updated_at":"2018-08-19T13:53:40Z","author_association":"NONE","body":"For some reason homebrew had 5 versions of pandoc installed and then there was another one installed manually so I had to use the uninstallation script provided by pandoc to get rid of it.\r\n\r\nThen I needed to both install pandoc and pandoc-citeproc throught homebrew (I am on a Mac) to make it work.\r\n\r\nWhile the citations seem to render (after an additional refresh), this rendering seems to mess with some other functionality. In my case, captions of code blocks/figures and the embedding of figures.\r\nHere is an example of what happens:\r\nhttps://imgur.com/a/XOseVlT\r\n\r\nAnd here is the post that generates it:\r\n```\r\n\r\n** TODO Writing your Lab Notebook in Org                            :org:lab:\r\n:PROPERTIES:\r\n:EXPORT_FILE_NAME: writing-your-labbook-in-org\r\n:EXPORT_DATE: 2018-08-19\r\n:EXPORT_HUGO_MENU: :menu \"main\"\r\n:EXPORT_HUGO_PANDOC_CITATIONS: t\r\n:EXPORT_BIBLIOGRAPHY: /Users/muadabdelhay/cloud/phd/papers/bibliography.bib\r\n:EXPORT_HUGO_CUSTOM_FRONT_MATTER+: :link-citations true\r\n:EXPORT_HUGO_CUSTOM_FRONT_MATTER: :foo bar :baz zoo :alpha 1 :beta \"two words\" :gamma 10\r\n:END:\r\n\r\n*** Why an electronic lab notebook?\r\nAt an age where data is moving from paper to electornic form, the amount and *shape* of data is not very paper-compatible, and the analysis of that same data becomes more complex, it is just obvious that the move to an electronic notebook has to happen.\r\n*** Why use org-mode?\r\nCheck out the code block in ref:test\r\n\r\n\r\nLets have a look at citations.  This cites the book: Kandel, Principles of Neural Sciences @kandel2013\r\n\r\nThis cites a journal articel: @terenzio2017\r\n\r\nThis cites two articles: @hensel1960,hensel1951\r\n\r\n*** Using code blocks\r\n\r\n#+name: clock-test\r\n#+caption: test of a code block\r\n#+begin_src R :results output graphics :exports results :file-ext png :res 180 :width 2400 :height 900 :noweb yes\r\n\r\nplot(mtcars)\r\n#+end_src\r\n\r\n#+RESULTS: clock-test\r\n#+caption: test for a caption of result file\r\n[[file:clock-test.png]]\r\n\r\n```"}}
{"actor":{"display_login":"Cumol"}}