{"id":17972411,"url":"https://github.com/benature/autolatex","last_synced_at":"2025-03-25T12:33:00.679Z","repository":{"id":54480079,"uuid":"164969510","full_name":"Benature/AutoLaTeX","owner":"Benature","description":"Generate LaTeX code by Python.","archived":false,"fork":false,"pushed_at":"2025-02-08T08:54:57.000Z","size":39,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T07:44:18.766Z","etag":null,"topics":["latex","pip","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/autolatex/","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/Benature.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}},"created_at":"2019-01-10T01:50:30.000Z","updated_at":"2025-02-08T08:55:01.000Z","dependencies_parsed_at":"2022-08-13T17:10:41.698Z","dependency_job_id":null,"html_url":"https://github.com/Benature/AutoLaTeX","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benature%2FAutoLaTeX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benature%2FAutoLaTeX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benature%2FAutoLaTeX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benature%2FAutoLaTeX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benature","download_url":"https://codeload.github.com/Benature/AutoLaTeX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245462971,"owners_count":20619587,"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":["latex","pip","python","python3"],"created_at":"2024-10-29T16:14:50.201Z","updated_at":"2025-03-25T12:33:00.657Z","avatar_url":"https://github.com/Benature.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoLaTeX\n\n[![PyPI](https://img.shields.io/pypi/v/autolatex)](https://pypi.org/project/autolatex/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/autolatex)\n[![GitHub stars](https://img.shields.io/github/stars/Benature/AutoLaTeX)](https://github.com/Benature/AutoLaTeX)\n\nGenerate LaTeX code by Python for experiment report.\n\n用 Python 生成 LaTeX 代码写实验报告。\n\n\u003e 如果有帮助就点个 star 🌟 呗  \n\u003e 欢迎 Pull Request, Fork, 提 issue.\n\n## Features 特性\n\n- 读取 excel 等表格文件转为 latex 表格\n- ~~(假的)~~ word 讲义转 tex 报告\n- 线性拟合等数学处理\n\n## Install 安装\n\n1. `pip`安装：\n\n```shell\npip install -U autolatex\n```\n\n如果更换过镜像源，版本更新可能会不及时，请检查安装版本是否最新 [![PyPI](https://img.shields.io/pypi/v/autolatex)](https://pypi.org/project/autolatex/)  \n若镜像源没有及时更新，建议临时切换为官方源\n\n```shell\npip install -U autolatex -i https://pypi.org/simple\n```\n\n2. 源码安装\n\n```shell\ngit clone git@github.com:Benature/AutoLaTeX.git\ncd AutoLaTeX\npython setup.py sdist bdist_wheel\npip install -U dist/autolatex-0.x.x-py3-none-any.whl # 其中 0.x.x 处是 pypi 版本号\n```\n\n## Usage 使用\n\n1. `xlsx`文件 excel 表格数据转 tex 代码  \n   在命令行输入（两种写法等效）：\n\n   ```shell\n   autolatex \u003c文件路径\u003e\n   alt \u003c文件路径\u003e\n   ```\n\n   更多参数说明请用`alt -h`查询。\n\n2. `.py`文件内\n\n   ```python\n   # import autolatex as alt\n   from autolatex import table\n   import pandas as pd\n\n   df = pd.read_excel('data.xlsx')\n   output = table.convert(df)\n   print(output)\n   ```\n\n3. word2tex  \n   详见`word2tex`下的 [README](autolatex/word2tex/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenature%2Fautolatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenature%2Fautolatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenature%2Fautolatex/lists"}