{"id":13337411,"url":"https://github.com/bkb3/duplicate-bib-fix","last_synced_at":"2025-03-11T06:32:09.848Z","repository":{"id":208831934,"uuid":"352466652","full_name":"bkb3/duplicate-bib-fix","owner":"bkb3","description":"Small python script to check and replace duplicated bib entries in your .tex files","archived":false,"fork":false,"pushed_at":"2021-03-29T23:24:06.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-23T14:38:06.541Z","etag":null,"topics":["bib","biber","bibliography","bibtex","duplicates","entries","latex","tex"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkb3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-03-29T00:00:44.000Z","updated_at":"2023-11-23T14:38:10.434Z","dependencies_parsed_at":"2023-11-23T14:48:11.748Z","dependency_job_id":null,"html_url":"https://github.com/bkb3/duplicate-bib-fix","commit_stats":null,"previous_names":["bkb3/duplicate-bib-fix"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkb3%2Fduplicate-bib-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkb3%2Fduplicate-bib-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkb3%2Fduplicate-bib-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkb3%2Fduplicate-bib-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkb3","download_url":"https://codeload.github.com/bkb3/duplicate-bib-fix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213069681,"owners_count":15532833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bib","biber","bibliography","bibtex","duplicates","entries","latex","tex"],"created_at":"2024-07-29T19:14:20.521Z","updated_at":"2024-10-23T16:30:25.879Z","avatar_url":"https://github.com/bkb3.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duplicate-bib-fix\nSmall python script to check and replace duplicated bib entries in your tex files\n\n## What this does?\nThis reads your bibliographic entries and makes a python dictionary of duplicated entries. It then reads your `*.tex` files and replaces all those duplicated entries with one common entry. For eg:\n```\n...\n'vihinen1994accuracy': ['Vihinen1994-sd', 'Vihinen1994-vq']\n...\n```\nHere `vihinen1994accuracy, Vihinen1994-sd, Vihinen1994-vq` all refer to the same entry. This script reads your *.bib file and finds out such duplicates. Then it reads your chapter and replaces every instance of `Vihinen1994-sd, Vihinen1994-vq` with `vihinen1994accuracy`. Yor citations will then have no more duplicates!\n\nAny changes made to your original chapter will be saved as a new file named `_replaced_.tex`. This will fix 95% of your problems (it certainly fixed mine!). However, you might still need to manually go through your references. For example, entries with title such as `Multiple roles of the coding sequence 5' end...` and `Multiple roles of the coding sequence 5^{\\prime} end...` are the same but we cannot yet merge as one entry. Currently, we use `\\\\emph` and `\\textit` as single entry because this is only so much that I can do.\n\n\n### How to\nSee ```duplicate-bib-fix.ipynb``` for details. This is a Jupyter notebook file so you need to have Jupyter installed.\n\n\n### Notes:\n#### bib entries should be separated by space in your .bib file. For eg: \n```\n@article{breiman2001random,\n  title={Random forests},\n  author={Breiman, Leo},\n  journal={Machine learning},\n  volume={45},\n  number={1},\n  pages={5--32},\n  year={2001},\n  publisher={Springer}\n}\n\n@book{james2013introductiontostatlearning,\n  title={An introduction to statistical learning},\n  author={James, Gareth and Witten, Daniela and Hastie, Trevor and Tibshirani, Robert},\n  volume={112},\n  year={2013},\n  publisher={Springer}\n}\n\n```\n\nExample .bib file and a chapter from my own thesis are included. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkb3%2Fduplicate-bib-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkb3%2Fduplicate-bib-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkb3%2Fduplicate-bib-fix/lists"}