stefanopagliari / bibnotes

360 stars 30 forks source link

Add option to append citekey plus page number #41

Closed tim-hilde closed 2 years ago

tim-hilde commented 2 years ago

Would be great if you added the option to have a pandoc format ([@citekey, p. {page}]) as the highlight citation format.

stefanopagliari commented 2 years ago

Good idea. Only the square brackets or also the ()?

tim-hilde commented 2 years ago

Nice to hear! Only the square brackets

stefanopagliari commented 2 years ago

Screenshot 2022-01-25 at 16 33 45

Something like this?

stefanopagliari commented 2 years ago

This is doable. I usually wrap the reference around square brackets to link back to Zotero. So, (author, year) is really [(author, year)](link to the pdf). With a pandoc reference this end up becoming [[@citekey, p. pagenum]](link to PDF).

tim-hilde commented 2 years ago

Maybe it'd be best to give the option to link to the PDF? Pandoc just ignores that, so there's no problem with that, but Obsidian doesn't recognize it as a link. Instead it recognizes the wikilinks. Personally, I think linking to the PDF is not necessary.

stefanopagliari commented 2 years ago

Yes, the option to disable the reference is already there, but the way the link was added in the text interferes with Pandoc so I'm separating the reference from the link

stefanopagliari commented 2 years ago

@tim-hilde, I have added this in the latest version. You need to select citation Pandoc in the settings. Could you please test it and close the issue if it works?

tim-hilde commented 2 years ago

Yes, very nice! Thank you so much! Just one little improvement: There's a space missing between "p." and the page number. Otherwise its just so great to have this!

stefanopagliari commented 2 years ago

Thanks. I have added it and it will be released with the next version