OBOFoundry.github.io icon indicating copy to clipboard operation
OBOFoundry.github.io copied to clipboard

Generate LaTeX resoures

Open cthoyt opened this issue 2 years ago • 0 comments

It would be nice to automatically generate a .bib file containing the citations for all ontologies in BibTex like in

@article{Diehl2016,
    author = {Diehl, Alexander D and Meehan, Terrence F and Bradford, Yvonne M and Brush, Matthew H and Dahdul, Wasila M and Dougall, David S and He, Yongqun and Osumi-Sutherland, David and Ruttenberg, Alan and Sarntivijai, Sirarat and {Van Slyke}, Ceri E and Vasilevsky, Nicole A and Haendel, Melissa A and Blake, Judith A and Mungall, Christopher J},
    doi = {10.1186/s13326-016-0088-7},
    issn = {2041-1480},
    journal = {J. Biomed. Semantics},
    number = {1},
    pages = {44},
    title = {{The Cell Ontology 2016: enhanced content, modularization, and ontology interoperability}},
    url = {https://doi.org/10.1186/s13326-016-0088-7},
    volume = {7},
    year = {2016}
}

...

Now that we've accepted that all references should be actionable since #1859, this information could be looked up periodically based on the annotations in the metadata for each ontology. citation-url has utilities for quickly parsing citation URLs and Manubot (https://github.com/manubot/manubot) has the tools for looking up this information and formatting it correctly based on pubmed/pmc/arxiv/etc. identifiers

Similarly, it would be nice to generate a .tex file that had all of the acronyms based on the preferred prefixes, titles of ontologies, and citation keys used in the bibtexfile:

\DeclareAcronym{CL}{
    short = CL,
    long  = Cell Ontology ,
    cite  = Diehl2016
}
...

This example uses the acro package, but there are a few different flavors to consider as well.

cthoyt avatar Jul 05 '22 15:07 cthoyt