uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
131 stars 10 forks source link

Support (Author, date) citation formats #98

Open chkgk opened 1 year ago

chkgk commented 1 year ago

Dear team,

This is a feature suggestion. It would be great if in-text citation styles with author names and dates were supported out of the box. The styles are very popular in economics and business journals, among others.

Popular styles include

An alternative would be to provide a short example how to define and select styles for LaTeX and HTML output formats, such that we can roll our own implementations.

Keep up the great work! Best, Christian

jheer commented 1 year ago

Thank you for the suggestion!

LaTeX output can already support diverse citation types, as determined by the LaTeX template, which can include bibliographic styling. We would be happy to review PRs that add new templates! For guidance, the existing templates (e.g., for ACM, IEEE TVCG) are here: https://github.com/uwdata/living-papers/tree/main/templates/latex

For HTML output, we need to extend our built-in CiteRef component with support for different citation styles. We could then set the desired style within article metadata (for example).

LeSasse commented 1 year ago

Hi, really cool looking project and seems to address many of my pain points in writing, publishing and reading research papers. I think, similar to what has been suggested previously to typst, it would be great if this project also added support to CSL for citing and styling bibliographies (https://github.com/typst/hayagriva/issues/32). This is what makes using libreoffice + zotero or markdown + pandoc so great in my opinion (which both have other pain points of course).

jheer commented 1 year ago

Thanks @LeSasse. Under the hood Living Papers does use a CSL processor for generating the bibliography for web-based output, but we need to provide a way to further parameterize the chosen bibliographic styles.

In the case of LaTeX output, we defer to using bibtex to ensure the output follows the style files provided for the current template (matching what you would normally get with standard journal or conference templates).