{"id":25304300,"url":"https://github.com/gwennlbh/distilatex","last_synced_at":"2026-02-10T13:33:17.716Z","repository":{"id":130463235,"uuid":"358391837","full_name":"gwennlbh/distilatex","owner":"gwennlbh","description":"A LaTeX summarizer, that extracts all theorems \u0026 definitions from a .tex file to quickly go over handouts","archived":false,"fork":false,"pushed_at":"2021-04-17T10:02:10.000Z","size":18,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T08:19:35.810Z","etag":null,"topics":["cli","latex","summarize"],"latest_commit_sha":null,"homepage":"https://en.ewen.works/distilatex","language":"Rust","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/gwennlbh.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-04-15T21:03:00.000Z","updated_at":"2021-11-17T01:53:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e49e0f7-17aa-4d60-89e9-fd4bde4d9dc4","html_url":"https://github.com/gwennlbh/distilatex","commit_stats":null,"previous_names":["gwennlbh/distilatex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwennlbh%2Fdistilatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwennlbh%2Fdistilatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwennlbh%2Fdistilatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwennlbh%2Fdistilatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gwennlbh","download_url":"https://codeload.github.com/gwennlbh/distilatex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247587755,"owners_count":20962779,"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","latex","summarize"],"created_at":"2025-02-13T08:19:37.785Z","updated_at":"2026-02-10T13:33:17.416Z","avatar_url":"https://github.com/gwennlbh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# distilatex\n\n\u003e A LaTeX summarizer, that extracts all theorems \u0026 definitions from a .tex file to quickly go over handouts\n\n## Installation\n\n```sh\ncargo install distilatex\n```\n\n\u003c!--\n\n### Arch Linux\n\nArch users can install _distilatex_ from the AUR:\n\n```sh\nparu distilatex # or any AUR helper you use\n```\n--\u003e \n\n## Usage\n\n```sh\ndistilatex my_horribly_long_handout.tex marker-1,marker-2,... \u003e summary.tex\n```\n\nWhere the marker-_n_ are of the form:\n\n- `begin:end`: Will include content between lines starting with `\\begin` and lines starting with `\\end`\n- `@env`: Will include content between lines starting with `\\begin{env}` and lines starting with `\\end{env}`\n\nFor example, if your prof. puts theorems in a `theorem` environment and definitions between `\\def` and `\\enddef` commands, use `@theorem,def:enddef`.\n\n### Opening the resulting PDF straight away\n\n\u003c!-- Use `--open`, it will compile the latex to a temporary file, render it as a PDF, open it using `xdg-open` and delete the PDF. --\u003e\n\nA `--open` flag that does just that is planned, but, in the meantime, this works:\n\n```fish\n#!/usr/bin/fish\nfunction distilatex-quick \n  set texname (mktemp ./XXXXXXX.tex)\n  set pdfname (echo $texname | string replace .tex .pdf)\n  distilatex $argv[1] $argv[2] \u003e $texname\n  pdflatex -interaction=nonstopmode $texname\n  xdg-open $pdfname\n  for ext in aux fdb_latexmk fls log toc synctex.gz out x.gnuplot synctex\\(busy\\) pdf tex\n    rm (echo $texname | string replace .tex .$ext)\n  end\nend\n```\n\n\u003c!--\n\n### Reading from standard input\n\nYou can use `-` as the input file name to tell _distilatex_ to read the file from standard input.\n\nYou can also use this to read _markers_ from standard input, but as a result, you cannot do both.\n\n--\u003e\n\n### Typing out all of those markers every time is way too long!\n\nYou can save those markers to a file, and do the following:\n\n```bash\ndistilatex input.tex $(cat markers.txt) \u003e output.tex\n```\n\n(or if you are using fish:)\n```fish\ndistilatex input.tex (cat markers.txt) \u003e output.tex\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgwennlbh%2Fdistilatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgwennlbh%2Fdistilatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgwennlbh%2Fdistilatex/lists"}