{"id":22927559,"url":"https://github.com/kpym/lol","last_synced_at":"2025-07-02T13:06:09.806Z","repository":{"id":47623306,"uuid":"397963398","full_name":"kpym/lol","owner":"kpym","description":"A LaTeX online compiler CLI tool providing interface to latexonline.cc and latex.ytotech.com.","archived":false,"fork":false,"pushed_at":"2024-06-29T12:37:53.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T01:48:52.521Z","etag":null,"topics":["cli","go","golang","latex","pdflatex","tex","xelatex"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kpym.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,"zenodo":null}},"created_at":"2021-08-19T14:02:39.000Z","updated_at":"2024-06-29T12:37:57.000Z","dependencies_parsed_at":"2024-06-19T16:23:18.989Z","dependency_job_id":"9d62cdb4-24eb-4b0b-994e-86ee48132c00","html_url":"https://github.com/kpym/lol","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kpym/lol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpym%2Flol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpym%2Flol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpym%2Flol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpym%2Flol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpym","download_url":"https://codeload.github.com/kpym/lol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpym%2Flol/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263145838,"owners_count":23420678,"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":["cli","go","golang","latex","pdflatex","tex","xelatex"],"created_at":"2024-12-14T09:15:04.068Z","updated_at":"2025-07-02T13:06:09.773Z","avatar_url":"https://github.com/kpym.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lol a LaTeX online compiler CLI tool\n\nlol is a small command line interface (CLI) that sends local files to distant server (https://latexonline.cc/ or [latex.ytotech.com](https://github.com/YtoTech/latex-on-http)) for LaTeX compilation and save the resulting `pdf`.\n\n## Usage\n\nTo compile a single `main.tex` file to `main.pdf` using `latexonline.cc`:\n```\n\u003e ./lol main.tex\n```\n\nTo compile `main.tex` including `png` images in `imgs` folder with `xelatex` using `latex.ytotech.com`:\n```\n\u003e ./lol -s ytotech -c xelatex main.tex imgs/*.png\n```\n\nA help message is provided:\n```\n\u003e ./lol -h\nlol (version: ---)\nLaTeX online compiler. More info at www.github.com/kpym/lol.\n\nAvailable options:\n  -s, --service string    Service can be laton or ytotex.\n  --url        string    The base url for the service. If empty, the default URL is used.\n  -c, --compiler string   One of pdflatex,xelatex or lualatex.\n                          For ytotex platex, uplatex and context are also available.\n                           (default \"pdflatex\")\n  -f, --force             Do not use the laton cache. Force compile. Ignored by ytotech.\n  -b, --biblio string     Can be bibtex or biber for ytotex. Not used by laton.\n  -o, --output string     The name of the pdf file. If empty, same as the main tex file.\n  -m, --main string       The main tex file to compile.\n  -q, --quiet             Prevent any output.\n  -v, --verbose           Print info and errors. No debug info is printed.\n      --debug             Print everithing (debug info included).\n\nExamples:\n\u003e lol main.tex\n\u003e lol  -s ytotech -c xelatex main.tex\n\u003e lol main.tex personal.sty images/img*.pdf\n\u003e cat main.tex | lol -c lualatex -o out.pdf\n```\n\n## Installation\n\n### Precompiled executables\n\nYou can download the executable for your platform from the [Releases](https://github.com/kpym/lol/releases).\n\n### Compile it yourself\n\n#### Using Go\n\n```\n$ go install github.com/kpym/lol@latest\n```\n\n#### Using goreleaser\n\nAfter cloning this repo you can compile the sources with [goreleaser](https://github.com/goreleaser/goreleaser/) for all available platforms:\n\n```\ngit clone https://github.com/kpym/lol.git .\ngoreleaser --snapshot --skip-publish --clean\n```\n\nYou will find the resulting binaries in the `dist/` sub-folder.\n\n## Configuration\n\nAs `lol` use [viper](https://github.com/spf13/viper) the parameters can be provided not only by flags but also be read from config file (`lol.yaml`, `lol.toml`, `lol.json`...) or/and from environment variables (starting with `LOL_`).\n\n### Using config file\n\nYou can provide all default values for flags in a config `lol` file in the current folder.\nFor example if your project needs `xelatex` and use `imgs/logo.png` you can save the following `lol.yaml` in the current folder\n```yaml\nCompiler: xelatex\nPatterns:\n  - imgs/logo.png\n```\n\n### Using environment variables\n\nIf you wan to provide global default values you can set an environment variable.\nFor example if you want by default to use `ytotech` service you can set `LOL_SERVICE=ytotech`.\n\n\n## License\n\n[MIT](LICENSE) for this code _(but all used libraries may have different licences)_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpym%2Flol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpym%2Flol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpym%2Flol/lists"}