{"id":27430857,"url":"https://github.com/hrushikeshrv/docxlatex","last_synced_at":"2025-04-14T15:16:55.051Z","repository":{"id":50977828,"uuid":"371040462","full_name":"hrushikeshrv/docxlatex","owner":"hrushikeshrv","description":"A python library for extracting equations, text, and images from .docx files","archived":false,"fork":false,"pushed_at":"2025-03-06T19:14:37.000Z","size":792,"stargazers_count":13,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T23:17:45.550Z","etag":null,"topics":["converts","docx","docx2txt","extract","latex"],"latest_commit_sha":null,"homepage":"http://hrus.in/docxlatex/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrushikeshrv.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":"2021-05-26T13:17:43.000Z","updated_at":"2025-02-01T18:58:02.000Z","dependencies_parsed_at":"2024-01-11T07:18:55.329Z","dependency_job_id":"580d5ac9-c728-4a51-8fd2-d96f14dd86a3","html_url":"https://github.com/hrushikeshrv/docxlatex","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":0.1428571428571429,"last_synced_commit":"16c368dad2d7ff7d7bce6d0f2ac7063cefa57c0b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrushikeshrv%2Fdocxlatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrushikeshrv%2Fdocxlatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrushikeshrv%2Fdocxlatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrushikeshrv%2Fdocxlatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrushikeshrv","download_url":"https://codeload.github.com/hrushikeshrv/docxlatex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809030,"owners_count":21164895,"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":["converts","docx","docx2txt","extract","latex"],"created_at":"2025-04-14T15:16:53.025Z","updated_at":"2025-04-14T15:16:55.037Z","avatar_url":"https://github.com/hrushikeshrv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docxlatex\nA python library for extracting text and images from .docx files with LaTeX support\n\nInfluenced by [python-docx](https://github.com/python-openxml/python-docx) and [python-docx2txt](https://github.com/ankushshah89/python-docx2txt).\nThis project aims to expand the above libraries' functionality by allowing you to extract the equations in a .docx file and converts them to valid LaTeX, \nprimarily for use with MathJax.\n\ndocxlatex DOES NOT convert the entire .docx file to a LaTeX source file.\n\ndocxlatex is still in beta and does not work perfectly on all equations. However, \nit does work with reasonable accuracy on standard symbols and equations, and works reliably when the equations in the \ndocument have been converted to linear format.\n\n# Installation\nInstall using pip  \n`pip install docxlatex`\n\n# Usage\n\nImport the `Document` class from `docxlatex`\n\n```python\nfrom docxlatex import Document\n```\n\nCreate a `Document` object, giving it the path to the .docx file, and call the `get_text()` method\n```python\ndoc = Document(\"path/to/document\")\ntext = doc.get_text()\n```\n\nYou can also set some settings on the `Document` object to customize behaviour, like setting the delimiters that will go before and after an equation, \nand flags to extract header and footer text. Read the documentation at [hrushikeshrv.github.io/docxlatex](https://hrushikeshrv.github.io/docxlatex) for all options.\n\n```python\ndoc.inline_delimiter = \"%\" # \"$\" by default\ndoc.block_delimiter = \"%%\" # \"$$\" by default\n```\n\n# Limitation\ndocxlatex currently requires all the mathematical equations in the .docx document to be converted into linear format to extract successfully. Make sure all the equations in the .docx file are converted into linear form.  \n\nTo convert all your equations into linear format, click on any equation, go to the Equation tab, make sure LaTeX is selected, and click on Convert \u0026#8594; All - Linear\n\nPlease report any bugs on this project's GitHub page [docxlatex/issues](https://github.com/hrushikeshrv/docxlatex/issues)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrushikeshrv%2Fdocxlatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrushikeshrv%2Fdocxlatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrushikeshrv%2Fdocxlatex/lists"}