{"id":36493225,"url":"https://github.com/batkiz/tinytexonfly","last_synced_at":"2026-01-12T01:58:05.888Z","repository":{"id":57566551,"uuid":"339754001","full_name":"batkiz/tinytexonfly","owner":"batkiz","description":"TinyTeX on the fly","archived":false,"fork":false,"pushed_at":"2021-03-06T06:32:16.000Z","size":614,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T10:23:09.383Z","etag":null,"topics":["texlive","tinytex"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/batkiz.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":"2021-02-17T14:43:08.000Z","updated_at":"2023-11-10T11:31:52.000Z","dependencies_parsed_at":"2022-08-27T19:02:25.882Z","dependency_job_id":null,"html_url":"https://github.com/batkiz/tinytexonfly","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/batkiz/tinytexonfly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batkiz%2Ftinytexonfly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batkiz%2Ftinytexonfly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batkiz%2Ftinytexonfly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batkiz%2Ftinytexonfly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batkiz","download_url":"https://codeload.github.com/batkiz/tinytexonfly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batkiz%2Ftinytexonfly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["texlive","tinytex"],"created_at":"2026-01-12T01:58:05.710Z","updated_at":"2026-01-12T01:58:05.881Z","avatar_url":"https://github.com/batkiz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyTeX on the fly\n\n[![test](https://github.com/batkiz/tinytexonfly/actions/workflows/test.yml/badge.svg)](https://github.com/batkiz/tinytexonfly/actions/workflows/test.yml)\n[![goreleaser](https://github.com/batkiz/tinytexonfly/actions/workflows/release.yml/badge.svg)](https://github.com/batkiz/tinytexonfly/actions/workflows/release.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/batkiz/tinytexonfly.svg)](https://pkg.go.dev/github.com/batkiz/tinytexonfly)\n[![GitHub license](https://img.shields.io/github/license/batkiz/tinytexonfly)](https://github.com/batkiz/tinytexonfly/blob/main/LICENSE)\n\n用途是自动化 TinyTeX 的装包过程（虽然现在主要在用 tectonic）。\n\n实现非常脏，所以并不是所有的包都会被识别到，还是需要看错误日志。\n\n## 使用\n\n通常情况下，你可以使用下述命令\n```shell\ntinytexonfly dir # 默认为 \".\"\n```\n\n`tinytexonfly` 会默认递归搜索指定的文件夹（无输入时为当前文件夹）下所有的 `tex, dtx, sty, cls` 文件，并输出需要执行的命令。\n\n也可以指定特定文件，如\n```shell\ntinytexonfly \u003cfile\u003e\n```\n\n如此 `tinytexonfly` 便只会处理特定文件。\n\n\n当然，正如前文所述，`tinytexonfly` 的实现很脏，所以会有些包处理不到，此时你可以根据错误日志的输出，通过\n```shell\ntinytexonfly search foo.sty\ntinytexonfly s foo.sty # alias\n```\n查询，然后按需安装。\n\n比如下面这个例子：\n\n错误日志：\n```text\nPackage fontspec Error: The font \"XITSMath-Regular\" cannot be found.\n```\n\n搜索\n```shell\ntinytexonfly s XITSMath-Regular\n```\n\n输出\n```text\nfonts/opentype/public/xits/XITSMath-Regular.otf\n```\n\n此时只需运行 `tlmgr install xits` 就行了。\n\n## 数据来源\n\ntexlive files data 来自 [clearlinux-pkgs/texlive](https://github.com/clearlinux-pkgs/texlive)\n\n具体文件为 [texlive.spec](https://raw.githubusercontent.com/clearlinux-pkgs/texlive/master/texlive.spec)\n\n## 灵感来自\n- [tectonic#717](https://github.com/tectonic-typesetting/tectonic/issues/717#issuecomment-757340814)\n- [jpfairbanks/tlmgrlookup](https://github.com/jpfairbanks/tlmgrlookup)\n\n## LICENSE\n\nAGPLv3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatkiz%2Ftinytexonfly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatkiz%2Ftinytexonfly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatkiz%2Ftinytexonfly/lists"}