{"id":23393478,"url":"https://github.com/uhoefel/jatex","last_synced_at":"2025-08-08T04:38:15.016Z","repository":{"id":81896137,"uuid":"308012469","full_name":"uhoefel/jatex","owner":"uhoefel","description":"A library for writing LaTeX from within Java.","archived":false,"fork":false,"pushed_at":"2024-01-22T22:20:15.000Z","size":212,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T08:11:21.468Z","etag":null,"topics":["java","latex"],"latest_commit_sha":null,"homepage":"","language":"Java","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/uhoefel.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-10-28T12:41:31.000Z","updated_at":"2024-11-21T22:24:13.000Z","dependencies_parsed_at":"2024-01-22T23:36:29.246Z","dependency_job_id":"2e47f143-286e-4c2c-b860-b6ac03cc1333","html_url":"https://github.com/uhoefel/jatex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fjatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fjatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fjatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhoefel%2Fjatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uhoefel","download_url":"https://codeload.github.com/uhoefel/jatex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248391108,"owners_count":21095947,"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":["java","latex"],"created_at":"2024-12-22T05:28:49.639Z","updated_at":"2025-08-08T04:38:15.010Z","avatar_url":"https://github.com/uhoefel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jatex\n\n[![](https://img.shields.io/github/issues/uhoefel/jatex?style=flat-square)](https://github.com/uhoefel/jatex/issues)\n[![](https://img.shields.io/github/stars/uhoefel/jatex?style=flat-square)](https://github.com/uhoefel/jatex/stargazers)\n[![DOI](https://zenodo.org/badge/308012469.svg)](https://zenodo.org/badge/latestdoi/308012469)\n[![Maven Central](https://img.shields.io/maven-central/v/eu.hoefel/jatex.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22eu.hoefel%22%20AND%20a:%22jatex%22)\n[![](https://img.shields.io/github/license/uhoefel/jatex?style=flat-square)](https://choosealicense.com/licenses/mit/)\n\nJatex is a [Java](https://openjdk.java.net/) library designed to programmatically write [LaTeX](https://www.latex-project.org/) files and run them.\nIt is designed to allow generic LaTeX documents, but provide reasonable defaults for ease of use.\nSome of the supported features include:\n- pdflatex, [lualatex](http://www.luatex.org/) (default), xetex, ...\n- [biblatex](https://ctan.org/pkg/biblatex) support\n- [tikz](https://www.ctan.org/pkg/pgf)/[pgfplots](https://www.ctan.org/pkg/pgfplots), including tikzexternalize\n- [amsmath](https://www.ctan.org/pkg/amsmath), including all types of equation environments, including starred environments\n- figures, including [wrapfig](https://www.ctan.org/pkg/wrapfig)\n- tables, including [longtable](https://www.ctan.org/pkg/longtable)\n- warns about incompatible packages (if metadata is correctly incorporated)\n\nExample usage for pgfplots:\n```java\nPgfPlots.contourOf(x, y, pdfvalues, Map.of(\"contour filled\", \"{number=20}\"))\n        .xlabel(\"$\\\\ell_{x}$\")\n        .ylabel(\"weight in kg\")\n        .clabel(\"$P(A|D)$\")\n        .exec(\"yourPathToSaveTo\");\n```\nwherein `x` and `y`are 1D double arrays and `pdfvalues` is a 2D array of size `[x.length][y.length]`. This produces a pdf looking as follows:\n\n![example pgfplot](img/pgfplots.png)\n\nFurthermore, a convenience class for writing letters (via [scrlttr2](https://www.ctan.org/pkg/scrlttr2)) is provided. Example usage:\n```java\nKomaLetter.as(\"yourPathToSaveTo\")\n          .user(JohnDoe.defaults()) // fill in specifics for yourself\n          .toName(\"Mr. Bob Doe\")\n          .cc(\"Jane Doe\")\n          .toStreet(\"Wendelsteinstraße 1\")\n          .toCity(\"D-12345 Entenhausen\")\n          .yourMail(\"1970-01-01\")\n          .subject(\"subject\")\n          .opening(\"Dear Testreader,\")\n          .write(\"This letter is not really a letter. I just test for example if the paragraph building works.\",\n                 \"Let's see\\\\ldots\")\n          .closing(\"Mit freundlichen Grüßen,\")\n          .encl(\"Document1.pdf\", \"Document2.pdf\")\n          .exec();\n```\nproducing\n\n![example KOMA letter](img/letter.png)\n\n\nInstallation\n============\n\nThe artifact can be found at maven central:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eeu.hoefel\u003c/groupId\u003e\n    \u003cartifactId\u003ejatex\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nRequirements\n============\nJatex is designed to work with Java 17+. It also needs a LaTeX distribution, like e.g. [MikTeX](https://miktex.org/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhoefel%2Fjatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuhoefel%2Fjatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhoefel%2Fjatex/lists"}