{"id":17793762,"url":"https://github.com/tpapp/latexescapes.jl","last_synced_at":"2026-02-25T06:09:58.827Z","repository":{"id":258213023,"uuid":"871112989","full_name":"tpapp/LaTeXEscapes.jl","owner":"tpapp","description":"Julia package for escaping strings for LaTeX and wrapping LaTeX code.","archived":false,"fork":false,"pushed_at":"2024-10-16T13:56:05.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-20T20:04:59.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/tpapp.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":"2024-10-11T09:46:02.000Z","updated_at":"2024-10-16T13:35:42.000Z","dependencies_parsed_at":"2024-10-18T02:44:05.523Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/LaTeXEscapes.jl","commit_stats":null,"previous_names":["tpapp/latexescapes.jl"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tpapp/LaTeXEscapes.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FLaTeXEscapes.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FLaTeXEscapes.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FLaTeXEscapes.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FLaTeXEscapes.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/LaTeXEscapes.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FLaTeXEscapes.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29812030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":[],"created_at":"2024-10-27T11:12:33.628Z","updated_at":"2026-02-25T06:09:58.812Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaTeXEscapes.jl\n\n![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)\n[![CI](https://github.com/tpapp/LaTeXEscapes.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/tpapp/LaTeXEscapes.jl/actions/workflows/CI.yml)\n[![codecov.io](http://codecov.io/github/tpapp/LaTeXEscapes.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/LaTeXEscapes.jl?branch=master)\n[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)\n\nJulia package for escaping strings for LaTeX and wrapping LaTeX code.\n\nIt is intended to be used by other packages that accept strings and/or LaTeX code from the user, and output LaTeX code.\n\n## Overview\n\nThe `LaTeX` wrapper indicates the string contained within should be treated as LaTeX code.\n\n```julia\njulia\u003e using LaTeXEscapes\n\njulia\u003e l1 = lx\"\\copyright\"             # LaTeX\nLaTeX(\\copyright)\n\njulia\u003e l2 = lx\"\\cos(\\phi)\"             # LaTeX wrapped in math\nLaTeX(\\cos(\\phi))\n\njulia\u003e s3 = \"1 \u003c 3\"                    # String\n\"1 \u003c 3\"\n\njulia\u003e print_escaped(stdout, l2)\n\\cos(\\phi)\n\njulia\u003e print_escaped(stdout, s3)\n1 \\textless{} 3\n```\n\nSome rudimentary checks are performed with `print_escaped`, these can be skipped if desired.\n\n```julia\njulia\u003e print_escaped(stdout, lx\"{unbalanced\")\nERROR: ArgumentError: 1 too many opening curly braces ('{')\n   \njulia\u003e print_escaped(stdout, lx\"{unbalanced\"; check = false)  \n{unbalanced\n```\n\nInterpolation is *not supported*. Use the concatenation `*` operator:\n\n``` julia\njulia\u003e lx\"$a + \" * lx\"b$\"\nLaTeX($a + b$)\n```\n\nIf the first argument is not a `LaTeX` wrapper, precede it with an empty wrapper to force escaping and conversion:\n\n``` julia\njulia\u003e lx\"\" * \"We are 100% sure that \" * lx\"$a + \" * lx\"b$\"\nLaTeX(We are 100\\% sure that $a + b$)\n```\n\n## Differences from other packages\n\nGenerally, this package\n1. does not make the wrapper a subtype of string, as it is *code*.\n2. focuses on providing a type that users can use to signal that the input is intended to be LaTeX code.\n\n[LaTeXStrings.jl](https://github.com/JuliaStrings/LaTeXStrings.jl) provides a similar wrapper, defaulting to math expressions. It does not handle escaping. `print_escaped` above works with the `LaTeXString` type from this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Flatexescapes.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Flatexescapes.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Flatexescapes.jl/lists"}