consult-reftex icon indicating copy to clipboard operation
consult-reftex copied to clipboard

Add Support for Citation Commands

Open swflint opened this issue 1 year ago • 10 comments

This PR adds support for insertion of citation commands.

swflint avatar Feb 23 '24 23:02 swflint

I am planning on working on this over the weekend, but I'd like to make it available for feedback as I do so.

swflint avatar Feb 24 '24 00:02 swflint

@swflint, are you done working on this now, or should I wait a bit to test it?

karthink avatar Feb 28 '24 21:02 karthink

You'll need to wait, sadly. I haven't had time the last few days to work on this. Still need to figure out how to collect the available citekeys. That said, I'd appreciate review of what is done if you have time.

swflint avatar Feb 28 '24 21:02 swflint

You'll need to wait, sadly.

No worries, please take your time.

karthink avatar Feb 29 '24 00:02 karthink

I'm looking to pick back up on this. I have a couple of concerns, however.

  1. reftex supports collecting bibliography information from not only bibtex files, but from a thebibliography environment. Do we want to support both? Or should we prioritize one?
  2. Do we want to consider using categories for citation data, if so, from what (entry type seems reasonable)?
  3. How do we want to format entry information for completion? What should be pre-annotation? Post-annotation?

swflint avatar Apr 03 '24 20:04 swflint

@swflint Sorry for the delay -- I'll have to re-familiarize myself with reftex since it's been a while. I'll be writing a fair bit of latex in the next month so I will be in better position to answer these questions then.

In the meantime we can add minimal working support for citations, and work out the details later.

karthink avatar Apr 24 '24 03:04 karthink

That's the biggest blocker: I just need to get citation data out of reftex and it's good to go.

swflint avatar Apr 24 '24 11:04 swflint

@swflint Are you still interested in supporting citation entry via consult-reftex?

karthink avatar Sep 05 '24 01:09 karthink

Yes! I have not had time to work on this in a while, however.

swflint avatar Sep 05 '24 02:09 swflint

Yes! I have not had time to work on this in a while, however.

No worries! I was just cleaning up my pending tasks list and saw this. I'll leave the PR open for now.

karthink avatar Sep 05 '24 02:09 karthink