On Wed, Apr 21, 2021 at 10:47 PM Timothy <tecos...@gmail.com> wrote: > I think what would be ideal, would be if common citation styles could > define a method which produces a display string, like "Goaziou et al. > (2021)". If nothing is defined, then no overlay should be produced.
Make sense, but with a caveat: not all styles work well for preview. Might be worth looking at how the Zettle markdown editor implements citations in general, as it's well-done, well-documented, and gone through a few iterations. It uses pandoc for the citations syntax and processing. https://docs.zettlr.com/en/academic/citations/ If point is within the citation brackets, you see the raw syntax, so you can edit it. Once you are outside the brackets, having already inserted the citation, you see a preview of the output. Examples; the top raw, bottom previewed version of the same. [@doe19] (Doe, 2019) Aside: this is somewhat similar to Nicolas' demo. That preview is always the same author-date style, regardless of the output style selected. So if you choose a footnote-based style for export, you still see the author-date preview. This makes sense, because the purpose is only to confirm you have the right citation. You also have a "references" sidebar that shows you a previewed list of all cited references. Bruce