-
-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save scientific work citations to a BibTeX file for ease of use in Doxygen #3662
Comments
A limitation of the html version generated bibliography is that the style is fixed and even when the doi is available as part of the bib file it is not included in the output. This functionality is a longstanding feature request in doxygen. |
I see. Anyways, I believe consistency is important, so even if the DOI is not displayed by Doxygen, having all references in a BibTeX file would still be an improvement: easier to maintain, consistent style when being displayed, etc. Maybe the Doxygen folks can afford addressing the DOI issue at some point in the future. |
Agreed. Using the bibtex format forces us to provide more complete and consistent citation information. Some of the existing textual references were partial and ambiguous, required some searching to pinpoint the referenced paper. |
One thing I saw is that when the "doi" is in the url there is a link to the "doi" see e.g. https://doc.cgal.org/latest/Arrangement_on_surface_2/citelist.html (ind the link is forwarded again to springer) where the bib file entry is:
Note: just a mention or a thumbs up does not trigger an email (so not known there is extra need for it), a friendly ping might help. |
Thanks @albert-github for the pointer. Will duplicate the doi info in the url field so that the current doxygen config will result in hyperlinks. |
Isn't this fixed now by means of #5149 |
That PR states it is the first of multiple PRs to accomplish that. Some citations were converted, but not all. |
Fourth and final PR, converting raw inline citations with various styles to using a bibliography database and the doxygen cite command. Bibtex file was formatted using bibtex-tidy (https://github.com/FlamingTempura/bibtex-tidy). This tool can be used as a pre-commit hook but currently does not have an option for just performing compliance checking so not added to .pre-commit-config.yaml file. resolves InsightSoftwareConsortium#3662
@jhlegarreta, @dzenanz |
Thank you Ziv! |
Thanks for the effort @zivy.
I would keep the issue open until we have the bandwidth to address those so that we never look back again to non-BibTeX refs in ITK. |
@jhlegarreta, sure. I'll need to amend my last commit message so that merging the PR doesn't automatically close this issue. |
👍 Maybe remove the 4/4 and final parts as well. |
|
Nice work.
|
@albert-github Thanks for identifying the issues and solutions. Will address these shortly. |
I've done a "small" grep on the sources to identify some more doi entries and created this bib file: Also thanks to https://github.com/schneiderfelipe/doi (especially the file: https://github.com/schneiderfelipe/doi/blob/master/src/doi2bib) There were a few references for which I was unable to create a bibtex entry:
|
Independent of the above, I found 2 small problems, and thus incorrect link / no link, in the bib file, proposed patch: diff.patch Citations with titles:
|
@albert-github I think McCormick2010 should reference the preferred DOI: https://doi.org/10.54294/yjowe4 Lowekamp2010 - looks right to me. |
Corrected new bib file (added 2 references as indicated in #3662 (comment) and #3662 (comment)): doi2bib_2.bib.tar.gz |
I turned this into a PR: #5234. |
Proposed patch for the 2 "olkmog" type of references in the code: diff.patch. |
Done via PR #5233. |
@albert-github It would save me quite some time if you made PRs yourself. As your PRs are mostly documentation focused, I think it is fine if you skip hooks (
Success (1531 ms @ 2025-02-10 09:46:55) |
@dzenanz |
Description
Citations to scientific works should be stored in a BibTeX file and Doxygen's
\cite
should be used to cite them in the documentation. Currently, there is a variety of syntaxes that are used to cite works across the documentation, ranging from no syntax highlight at all, code-style indentation, or paragraph, e.g.:https://itk.org/Doxygen/html/classitk_1_1STAPLEImageFilter.html
https://itk.org/Doxygen/html/classitk_1_1ScalarChanAndVeseSparseLevelSetImageFilter.html
https://itk.org/Doxygen/html/classitk_1_1BSplineScatteredDataPointSetToImageFilter.html
Expected information
Citatons should be hosted in a single BibTeX file so that they can easily be cross-referenced and reused across the documentation.
Actual information
Citation styles are inconsistent and the same work might be cited differently/citations cannot be re-used.
Versions
master
Additional Information
Doxygen
\cite
command documentation:https://doxygen.nl/manual/commands.html#cmdcite
The IJ works' bibtex files can actually be retrieved from the IJ website, so that would save some work. Maybe an script that gathers all references could be developed to have them all in a single file. The file could be dynamically updated e.g. every month.
IJ repository: https://github.com/InsightSoftwareConsortium/InsightJournal
The text was updated successfully, but these errors were encountered: