{"id":16410320,"url":"https://github.com/ctrlcctrlv/sile-texmode","last_synced_at":"2025-08-01T22:42:55.553Z","repository":{"id":148743536,"uuid":"279931198","full_name":"ctrlcctrlv/sile-texmode","owner":"ctrlcctrlv","description":"A LaTeX mode for SILE 0.10.6+. Adds LaTeX T1 ligatures like `` (curly quote) and --- (em dash) to SILE, as well as diacritic marks.","archived":false,"fork":false,"pushed_at":"2020-10-27T18:15:16.000Z","size":950,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T04:55:17.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctrlcctrlv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-07-15T17:15:56.000Z","updated_at":"2020-10-27T18:14:01.000Z","dependencies_parsed_at":"2023-05-28T19:45:21.046Z","dependency_job_id":null,"html_url":"https://github.com/ctrlcctrlv/sile-texmode","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ctrlcctrlv/sile-texmode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlcctrlv%2Fsile-texmode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlcctrlv%2Fsile-texmode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlcctrlv%2Fsile-texmode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlcctrlv%2Fsile-texmode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrlcctrlv","download_url":"https://codeload.github.com/ctrlcctrlv/sile-texmode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlcctrlv%2Fsile-texmode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268308971,"owners_count":24230163,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11T06:23:53.533Z","updated_at":"2025-08-01T22:42:55.516Z","avatar_url":"https://github.com/ctrlcctrlv.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaTeX mode for SILE\n\n![](https://raw.githubusercontent.com/ctrlcctrlv/sile-texmode/master/examples/evil%3F.png)\n\nWhat it says on the tin. You type:\n\n```\nP\\|{e}h-\\={o}e-j\\={i}---a method of writing Taiwanese\n```\n\nYou get:\n\n\u003e Pe̍h-ōe-jī—a method of writing Taiwanese\n\nPlease see the [examples](https://github.com/ctrlcctrlv/sile-texmode/tree/master/examples).\n\n## Dependencies\n* SILE \u003e= v0.10.5.r107-g36868e2, *not* compatible with v0.10.5 or lower (so, all current releases as of 2020-07-15, only works on developer builds), as we need PR\u0026numero;[940](https://github.com/sile-typesetter/sile/pull/940).\n* (To build `evil?.sil`) [sile-strike](https://github.com/ctrlcctrlv/sile-strike)\n\n## Features\n1. All common TeX ligatures (go to function texmode and grep for `:gsub` for a list; feel free to open issues/PRs if any you like are missing)\n1. TeX diacritic helpers (We support all on the list in Scott Pakin's [Comprehensive LaTeX Symbol List](https://mirrors.concertpass.com/tex-archive/info/symbols/comprehensive/symbols-a4.pdf), 25 June 2020 edition.)\n1. A comprehensive list of math symbols [via Cumhur Korkut](http://github.com/joom/latex-unicoder.vim) (see file `packages/texmode/unicoder.lua`), and the most important text ones (`grep` the aforementioned file for `Fred's`). (As \u0026numero;1, feel free to open issues for more, preferably hundreds of symbols in Lua table format all ready to go please! 😉)\n1. A `\\notex` command, which ignores what's inside it!\n1. `nosymbols=y` or `nocombine=y` to disable what TeX stuff you don't like. (Come on, what did TeX ever do to you! Embrace the suck!)\n\n## Usage\n\nJust as jQuery conditioned JavaScript developers of a certain generation to write a Hello, World! as...\n\n```\n$(document).ready(function(){\n    alert(\"おっす、世界！元気のか！俺、ハイ！さって〜じゃね‼‼\");\n});\n```\n\nSo too do I aim to condition you.\n\nHere's our Hello, World!\n\n```\n\\begin{document}\\script[src=packages/texmode]\\texmode[_=\"% ]\nHello, world!\n\"]\\end{document}\n```\n\nIt is recommended to put it all on one line so error lineno's continue to function. The comment, `% ]`, fixes vim. At least, until @alerque fixes his script, then it might not be necessary anymore. But we probably won't want his fixed script, since it'll probably interpret documents like ours as containing a long string, since that's what they are in the grammar. So remember this number: [`09cecddad7`](https://github.com/sile-typesetter/vim-sile/commit/09cecddad7f84d7659aa94481344d13ba2a54bb5), it's the revision of `vim-sile` this works on.\n\nEverything should go inside the bottom and top line. If necessary, you can though call `\\texmode` more than once.\n\n## Known issues\nDue to the way PR\u0026numero;940 was fixed, (I didn't get to comment until it was merged, I was hoping they'd add Python-esque `\"\"\"` super-quotes, or even better, Rust style raw string literals in the form of `r#\"sup\"#`, where, if for some absurd reason you need to write `\"#`, you just make it `r##\"sup\"#\"##`. _Ad infinitum, et ultra!!_) the TeX `\"` can't be used as is. You need to escape it.\n\n```\n\\begin{document}\\script[src=packages/texmode]\\texmode[_=\"% ]\n\\script[src=packages/font-fallback]\n\\font:add-fallback[font=Noto Sans CJK JP]\n% This is exactly how Japanese people talk. Anime and nichanneru, extremely reliable sources, taught me that.\nおっす、世界！元気のか！俺ハイハイ！さって〜行くぞ！じゃね‼‼\n\nThe above is known as a ``quote\". % won't work!\nThe above is known as a ``quote\\\". % will work!\n\"]\\end{document}\n```\n\n![](https://raw.githubusercontent.com/ctrlcctrlv/sile-texmode/master/examples/dblquote.png)\n\nAnyway, you know that even in TeX ``` ``this\" ``` is bad, right? It's unbalanced in monospace, silly! Do it ``` ``this way'' ```.\n\n## License\n\n```\nCopyright 2020, Fredrick R. Brennan (@ctrlcctrlv)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlcctrlv%2Fsile-texmode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrlcctrlv%2Fsile-texmode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlcctrlv%2Fsile-texmode/lists"}