{"id":13994700,"url":"https://github.com/yihui/latex-pass","last_synced_at":"2025-04-15T17:22:41.582Z","repository":{"id":41847082,"uuid":"298463530","full_name":"yihui/latex-pass","owner":"yihui","description":"Help you pass the LaTeX compilation by telling you which LaTeX packages are missing to compile your documents","archived":false,"fork":false,"pushed_at":"2024-06-24T12:07:59.000Z","size":22,"stargazers_count":50,"open_issues_count":21,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T23:02:49.102Z","etag":null,"topics":["latex","latex-package","texlive","tinytex"],"latest_commit_sha":null,"homepage":"https://yihui.org/tinytex/","language":"R","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/yihui.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":"2020-09-25T04:03:58.000Z","updated_at":"2024-04-23T11:42:30.000Z","dependencies_parsed_at":"2024-12-25T06:11:19.277Z","dependency_job_id":"348df947-d3f4-498a-8013-2dd67a55cb56","html_url":"https://github.com/yihui/latex-pass","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.023255813953488413","last_synced_commit":"a243ff5bd65c2729f394e9e8a07ca9d0f8f0f3d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Flatex-pass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Flatex-pass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Flatex-pass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Flatex-pass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yihui","download_url":"https://codeload.github.com/yihui/latex-pass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249116593,"owners_count":21215223,"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","latex-package","texlive","tinytex"],"created_at":"2024-08-09T14:03:03.635Z","updated_at":"2025-04-15T17:22:41.559Z","avatar_url":"https://github.com/yihui.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# LaTeX Pass\n\n[![Build status](https://ci.appveyor.com/api/projects/status/0g8vduvn8aw58k4x/branch/master?svg=true)](https://ci.appveyor.com/project/yihui/latex-pass/branch/master)\n\nUpload a LaTeX error log file, or a LaTeX document, or an R Markdown document to this repository, and I will tell you which LaTeX packages you need to install in your local LaTeX distribution so you can compile your documents to PDF. You will no longer be confused by LaTeX error messages like this:\n\n```latex\n! LaTeX Error: File `inconsolata.sty' not found.\n\nType X to quit or \u003cRETURN\u003e to proceed,\nor enter new name. (Default extension: sty)\n\n! Emergency stop.\n\u003cread *\u003e\n\nl.276 ^^M\n\n!  ==\u003e Fatal error occurred, no output PDF file produced!\n```\n\nNote that if you use both the R package [**tinytex**](https://github.com/yihui/tinytex) and the LaTeX distribution [TinyTeX](https://yihui.org/tinytex/), you should not need to use this repository, because **tinytex** will automatically install missing LaTeX packages by default. This repository may only be useful to those who do not use R or TinyTeX.\n\n## How does it work?\n\nDepending on if you have a LaTeX error `.log` file, or a `.tex` document, or an `.Rmd` document, you may click one of the links below to edit the file in this repo, and follow the Github instructions to send a pull request.\n\n- [`test.log`](https://github.com/yihui/latex-pass/edit/master/test.log): copy and paste your LaTeX error log into here (see [example in PR #3](https://github.com/yihui/latex-pass/pull/3)).\n- [`test.tex`](https://github.com/yihui/latex-pass/edit/master/test.tex): copy and paste your `.tex` file here (see [example in PR #1](https://github.com/yihui/latex-pass/pull/1)).\n- [`test.Rmd`](https://github.com/yihui/latex-pass/edit/master/test.Rmd): copy and paste your `.Rmd` file here; its output format should be PDF (see [example in PR #4](https://github.com/yihui/latex-pass/pull/4)).\n\nAfter you send the pull request, wait for about 2 minutes for [AppVeyor](https://ci.appveyor.com/project/yihui/latex-pass) to finish. Then it should tell you the list of LaTeX packages required to compile your document in a comment (you may also get an email notification from Github if you have subscribed to notifications), e.g.,\n\n```\nThe missing packages identified from the LaTeX log are:\n\n  inconsolata\n\nIf you are an R user using TinyTeX, you may install these packages via:\n\n  tinytex::tlmgr_install(c(\"inconsolata\"))\n\nIf you use TinyTeX but are not an R user, you may install these packages via command line:\n\n  tlmgr install inconsolata\n```\n\nIf you are familiar with GIT and Github, you can add or edit more than one file (e.g., multiple `.tex` and/or `.Rmd` files) to the repo and send a pull request.\n\nBy default, the LaTeX engine to compile `.tex` documents is `pdflatex`. If the document requires a different engine to compile, you may name your file with the engine name, e.g., `xelatex.tex` or `lualatex.tex`, or add a comment of the form `% !TeX program = ENGINE` to your document, e.g., `% !TeX program = xelatex`. The bibliography may be processed by either `bibtex` (default) or `biber`. You may add the bibliography engine name to the filename if you want to use one specifically, e.g., `test-biber.tex`.\n\nIf you are compiling an Rmd document, please see [Section 3.3.7.1 of the _R Markdown Definitive Guide_](https://bookdown.org/yihui/rmarkdown/pdf-document.html#latex-engine) for how to specify the LaTeX engine in the Rmd document.\n\n## How to reproduce what this repo does locally\n\nIf you do not want to wait for 2 minutes, you can find out the missing LaTeX packages by yourself locally via the R function `tinytex::parse_packages()`, which requires you to install TeX Live or TinyTeX. See more information at https://bookdown.org/yihui/rmarkdown-cookbook/install-latex-pkgs.html.\n\nBTW, [Colin Fay was correct](https://twitter.com/_ColinFay/status/1309415115922509824) that this service was created [because of him](https://twitter.com/_ColinFay/status/1308061202938032138). That \"fresh hell\" could be easily avoided with TinyTeX.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Flatex-pass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyihui%2Flatex-pass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Flatex-pass/lists"}