{"id":21581548,"url":"https://github.com/thoughtscript/latex_docker","last_synced_at":"2026-05-03T23:35:38.462Z","repository":{"id":238745189,"uuid":"796107146","full_name":"Thoughtscript/latex_docker","owner":"Thoughtscript","description":"LaTeX in Docker with client to view, edit","archived":false,"fork":false,"pushed_at":"2025-05-21T02:00:01.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T04:44:06.065Z","etag":null,"topics":["docker","golang","latex"],"latest_commit_sha":null,"homepage":"https://www.thoughtscript.io/papers","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thoughtscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-05T00:25:45.000Z","updated_at":"2025-05-21T02:00:05.000Z","dependencies_parsed_at":"2024-05-17T02:36:27.064Z","dependency_job_id":"361578d8-529e-4617-b500-b626c9ed60af","html_url":"https://github.com/Thoughtscript/latex_docker","commit_stats":null,"previous_names":["thoughtscript/latex_docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thoughtscript/latex_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Flatex_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Flatex_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Flatex_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Flatex_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/latex_docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Flatex_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["docker","golang","latex"],"created_at":"2024-11-24T14:12:53.937Z","updated_at":"2026-05-03T23:35:38.446Z","avatar_url":"https://github.com/Thoughtscript.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaTeX Docker\r\n\r\n[![](https://img.shields.io/badge/Go-1.22.2-blue.svg)](https://golang.org/pkg/)\r\n[![](https://img.shields.io/badge/LaTeX-TexLive-turquoise.svg)](https://www.latex-project.org/get/)\r\n[![](https://img.shields.io/badge/LATEX.js-0.12.6-red.svg)](https://latex.js.org/)\r\n\r\n- [x] Setup the necessary LaTeX dependencies\r\n- [x] Mount files\r\n- [x] Generate a PDF\r\n- [x] Host the PDF through a static file server\r\n- [x] Support for uploading text through the browser\r\n- [x] Support for regenerating the pdf within the container\r\n- [x] Support for writing LaTeX in the browser (and rendering it)\r\n- [x] Support for saving LaTeX in the browser to `paper.tex`\r\n- [ ] Better styling\r\n- [ ] Better editing\r\n- [ ] Better navigation\r\n- [x] Tweak some JS and HTML functionality around redirects, rerendering, and prevent default\r\n\r\n```bash\r\ndocker-compose up\r\n\r\n# If using Docker Compose Engine V2:\r\ndocker compose up\r\n```\r\n\r\nView the PDF and write LaTeX:\r\n\r\n1. https://localhost/public/\r\n    * A view, into the container (can also get the PDF from **Docker Desktop** \u003e **Container Files**). (**Experimental**)\r\n2. https://localhost/public/editor.html\r\n    * A compressed view into the container to edit and modify LaTeX. (**Experimental**)\r\n    * Lacks support for many commonly used libraries like `amsmath` (but does support basic LaTeX to some extent).\r\n    * This is mostly to explore the limits of the [LATEX.js](https://github.com/michael-brade/LaTeX.js)\r\n3. https://localhost/public/viewer.html \r\n    * A compressed view into the container to compile and view pdf's.\r\n4. https://localhost/public/pdfeditor.html \r\n    * Slightly more reliable way to edit and render text live.\r\n    * **Use this view by default.**\r\n    * Has supprt for `amsmath` and most other commonly used libraries.\r\n\r\n## API Endpoints\r\n\r\n1. https://localhost/api/pdf/make - POST endpoint that'll regenerate the PDF file without having to restart the container. Is called from the view above.\r\n1. https://localhost/api/pdf/upload - POST endpoint that'll allow a file to be uploaded to overwrite `paper.tex` so it can be recompile (allows raw `.tex` files to uploaded to the container to be compiled into `.pdf`).\r\n1. https://localhost/api/latex/save - POST endpoint to save inputted text to `paper.tex` (better UI and Nav features to be added to provide basic but fuller text editor support).\r\n\r\n\u003e Note: all of the commands assume `paper.tex` is the relevant filename and filetype.\r\n\r\n## Resources and Links\r\n\r\n1. https://wch.github.io/latexsheet/latexsheet-0.png\r\n1. https://linuxconfig.org/how-to-install-latex-on-ubuntu-20-04-focal-fossa-linux\r\n1. https://www.latex-project.org/help/documentation/usrguide-historic.pdf\r\n1. https://askubuntu.com/questions/1034019/18-04-cannot-install-texlive-full\r\n2. https://tutorialedge.net/golang/go-file-upload-tutorial/\r\n3. https://opensource.com/article/18/6/copying-files-go","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Flatex_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Flatex_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Flatex_docker/lists"}