GithubHelp home page GithubHelp logo

Comments (5)

jkitchin avatar jkitchin commented on July 17, 2024

I guess this is almost certainly a citeproc issue. This code shows the issue I think with no org-ref code. I would report it to citeproc (@andras-simonyi at https://github.com/andras-simonyi/citeproc-el/issues).

#+BEGIN_SRC bibtex :tangle tmp.bib
@inproceedings{test_org_ref,
  title={Testing org ref},
  author={Author, Some},
  booktitle={Proceedings},
  volume={},
  number={},
  year={2024}
}
#+END_SRC

Render a citation


#+BEGIN_SRC emacs-lisp :var tangled=(org-babel-tangle)
(let ((proc (citeproc-create
	     (expand-file-name org-ref-csl-default-style
			       (f-join
				(file-name-directory
				 (locate-library "org-ref"))
				"citeproc/csl-styles"))
	     (citeproc-itemgetter-from-bibtex "tmp.bib")
	     (citeproc-locale-getter-from-dir (f-join (file-name-directory
						       (locate-library "org-ref"))
						      "citeproc/csl-locales"))
	     "en-US"))
      (cites (list (citeproc-citation-create :cites '(((id . "test_org_ref")))
					     :mode 'textual)))
      (backend 'html))

  (citeproc-append-citations cites proc)

  (citeproc-render-citations proc 'html))
#+END_SRC

#+RESULTS:
| Author (<a href="#citeproc_bib_item_1">2024</a>) |

from org-ref.

digikar99 avatar digikar99 commented on July 17, 2024

Yes, thanks! I have reported it at andras-simonyi/citeproc-el#151

from org-ref.

dangom avatar dangom commented on July 17, 2024

Hi, perhaps we should re-open this issue. The linked discussion suggests there is some sort of interaction with org-ref that is causing the name duplication to appear.

Any suggestions or workarounds would be appreciated!

from org-ref.

jkitchin avatar jkitchin commented on July 17, 2024

I tried taking out the code referenced in t andras-simonyi/citeproc-el#151. It does seem to work as you expected now I think. Can you try it?

from org-ref.

dangom avatar dangom commented on July 17, 2024

Hi John,
I confirm it is working now as expected.

thanks for the prompt response and fix.

from org-ref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.