{"id":21006286,"url":"https://github.com/derlin/docker-bib2word","last_synced_at":"2025-03-13T14:43:43.196Z","repository":{"id":151664065,"uuid":"131879264","full_name":"derlin/docker-bib2word","owner":"derlin","description":"A simple container for converting bibtex bibliographies to Microsoft Word xml files","archived":false,"fork":false,"pushed_at":"2018-05-04T09:06:18.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T10:31:16.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derlin.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-02T16:42:31.000Z","updated_at":"2024-11-19T17:29:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a12aa86-fb21-4bd0-be41-e4ae5c36b572","html_url":"https://github.com/derlin/docker-bib2word","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdocker-bib2word","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdocker-bib2word/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdocker-bib2word/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdocker-bib2word/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derlin","download_url":"https://codeload.github.com/derlin/docker-bib2word/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428421,"owners_count":20289315,"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":[],"created_at":"2024-11-19T08:50:30.132Z","updated_at":"2025-03-13T14:43:43.170Z","avatar_url":"https://github.com/derlin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bib2word docker container\n\nThis is a simple docker container to convert bibtex bibliographies to XML files compatible with Microsoft Word using the [`bibutils`](https://sourceforge.net/p/bibutils/home/Bibutils/) tools.\n\n## Setup\n\nSimple create the docker image using the `Dockerfile` provided:\n\n```bash\ndocker build -t bib2word --rm .\n```\n\n_Note_: on Windows, ensure that you checked out the files using LF line endings (if `bib2word.sh` contains CLRF, the script won't run).\n\n## Run\n\nThe container comes with a `bib2word` script that does the job. Just run the container, specifying the file(s) you want to convert.\n\nFor example, to convert `biblio.tex` into `biblio.xml` (that you can then import using the Microsoft Word wizard), use the following snippet:\n\n* On linux: \n    ```bash\n    docker run --rm -v $(pwd):/app bib2word biblio.tex\n    ```\n* On windows cmd: \n    ```bash\n    docker run --rm -v %cd%:/app bib2word biblio.tex\n    ```\n* On windows powershell:  \n    ```bash\n    docker run --rm -v ${pwd}:/app bib2word biblio.tex\n    ```\n\n_Note_: he `-v` command will mount the current directory (containing the `biblio.bib` to convert) into the container. After execution, `biblio.xml` will be present in your current directory.\n\n\n## About Microsoft bibliography\n\n\n### Using Windows\n\nTo import references/sources into a word document:\n\n* under _References_, click on _Manage Sources_;\n* in the dialog, use the _Browse..._ button and select your `.xml` file;\n* Transfer the entries from the _Master list_ to the _Current list_ by selecting everything from the right side list and clicking _Copy -\u003e_;\n* Close the dialog.\n\nTo create a reference in your document:\n\n* put the cursor where you want the reference to show;\n* under _References_, select the style you want to use (`IEEE` for the standard `[x]` format);\n* click _Insert citation_ and select the source you want to reference.\n\n### Using Mac\n\nOn Mac OS, office is missing a way to easily import an XML references file into a document. In fact, it saves/uses only one XML file called `Source.xml` which is located in `~/Library/Containers/com.microsoft.Word/Data/Library/Application Support/Microsoft/Office`.\n\nSo, to use your exported bib, either replace `~/Library/Containers/com.microsoft.Word/Data/Library/Application Support/Microsoft/Office/Sources.xml` altogether or use a text editor to append your references to the existing document. Don't forget to restart word for the changes to take effect.\n\n_Note_: this trick was taken from [Using Bibtex in MS Word 2015 (Mac OS)](http://blog.pengyifan.com/using-bibtex-in-ms-word-2015-mac-os/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fdocker-bib2word","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderlin%2Fdocker-bib2word","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fdocker-bib2word/lists"}