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

status of easykeys #52

Open
damiencourousse opened this issue Jan 4, 2021 · 5 comments
Open

status of easykeys #52

damiencourousse opened this issue Jan 4, 2021 · 5 comments

Comments

@damiencourousse
Copy link

hello,

I am using zotxt-emacs and I am quite happy with it so far.
I am experiencing an issue with easykeys, but I see in other issue reports that easykeys is deprecated and that should not be used (e.g., in issue #5).

Is easykeys still supported and tested? The easykey functions are not documented in the README, but are not reported as deprecated in the source code either.

thanks,

@egh
Copy link
Owner

egh commented Jan 5, 2021

Thanks for the report! I think using BetterBibTeX citekeys is a far better option and I'm in the process of deprecating easy keys. Sorry for any confusion. I have a branch to deprecate them (#51) but I'm still working on it.

@egh
Copy link
Owner

egh commented Jan 5, 2021

If you like the general format of easy keys it should be possible to use the same format with BetterBibTeX.

@damiencourousse
Copy link
Author

Thanks for the feedback!
I agree that easy keys could be probably replaced by BetterBibTeX for most uses.

If you like the general format of easy keys it should be possible to use the same format with BetterBibTeX.

Please could you elaborate? AFAIK, using BetterBibTeX, the only way to insert a reference link is to drag'n drop the reference from zotero into an org document. Or is there another way? zotxt-emacs is still useful here because it allows to stay in the emacs window.

I have the following need for the insertion of reference links. Sometimes I would like to select/change the format of the link description: usually either the full citation, or a reference key. The possibility to use a short citation for the link description would be nice as well.
I saw that zotxt-emacs has already a full support for that, but the 'API' does not easily offer this possibility.
Would you have a suggestion for the best way to implement this? What about adding the possibility to support the universal argument (C-u) to let the user select the format of the link description?

@egh
Copy link
Owner

egh commented Jan 15, 2021

Are you using the org mode links or pandoc citations? I was thinking of pandoc citations.

If you are using pandoc citations, there doesn't seem to be a great way. If you use the Quick Copy method with "BetterBibTeX Citation Key Quick Copy"

image_

It generates a citekey like: \cite{doe:2005first}, which is great for LaTeX but not pandoc.

I merged some updates to the README that describe how to insert a citekey into a pandoc markdown file from directly within emacs. I find this a lot easier to do.

If you want to change the link description, you can use the variables org-zotxt-link-description-style and zotxt-default-bibliography-style to change the link description (the second one should be customizable - I'll push a fix for that).

@damiencourousse
Copy link
Author

Thanks for the detailed feedback.

In emacs, I use org mode links ;).

I also use LaTeX, so I have configured zotero/BBT to do exports from zotero in the LaTeX format.
Since exports from zotero are reserved for LaTeX usage, from emacs, I would like to import in org files references as full citations and as citation keys. The format of the zotero:// link does not really matter as long as it correctly reaches the target reference in zotero ;). As soon as I find some time, I'll try to implement a wrapper function for this purpose.

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

2 participants