{"id":17767216,"url":"https://github.com/samzhang02/obsidian-latex-algorithms","last_synced_at":"2025-03-15T13:31:11.550Z","repository":{"id":91803510,"uuid":"604194944","full_name":"SamZhang02/obsidian-latex-algorithms","owner":"SamZhang02","description":"A simple plugin for writing Algorithms and pseudocodes in Obsidian.md","archived":false,"fork":false,"pushed_at":"2023-10-24T21:19:17.000Z","size":1477,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T22:03:20.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamZhang02.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":"2023-02-20T14:35:56.000Z","updated_at":"2024-11-18T14:42:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"45933dca-ca1e-47c7-aef5-8ccbf72e6e69","html_url":"https://github.com/SamZhang02/obsidian-latex-algorithms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamZhang02%2Fobsidian-latex-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamZhang02%2Fobsidian-latex-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamZhang02%2Fobsidian-latex-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamZhang02%2Fobsidian-latex-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamZhang02","download_url":"https://codeload.github.com/SamZhang02/obsidian-latex-algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735833,"owners_count":20339536,"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":[],"created_at":"2024-10-26T20:43:44.625Z","updated_at":"2025-03-15T13:31:11.136Z","avatar_url":"https://github.com/SamZhang02.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaTeX Algorithms for Obsidian \n\nA simple plugin for writing Algorithms and pseudocodes in Obsidian.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/short_demo.gif\"\u003e\n\u003c/p\u003e\n\n## About\n\nObsidian is a great notetaking tool, I often find myself opening Obsidian instead of compiling a new `.tex` document for documents that I do not need to submit, simply due to how easy it is to use. However, Obsidian uses MathJax for its LaTeX functionality, which does not allow for package imports, such as `algpseudocode`.\n\nI wrote this plugin so that I can easily take notes for my Algorithm and proof-based classes in Obsidian as well.\n\n## Usage \n\nThis plugin reads previous user inputs and converts them into standard LaTeX algorithm format upon detecting keywords, such as `\\If`, `\\For`, etc.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/long_demo.gif\"\u003e\n\u003c/p\u003e\n\nA great addition to this plugin could be [Quick LaTeX for Obsidian](https://github.com/joeyuping/quick_latex_obsidian) and/or VIM keybindings. With these tools, you can achieve quite a fast workflow.\n\nThe functionalities of this plugin currently include:\n- Fast indentation with `Shift+Tab`.\n- Algorithm titles and subtitles.\n- Conditionals (If/ElseIf/Else, Switch cases).\n- For/While loops.\n- Proof keywords.\n\n### Currently supported keywords\n| Titles and Subtitles | Conditionals | Loops      | Proofs       |\n| -------------------- | ------------ | ---------- | ------------ |\n| \\\\Algorithm          | \\\\If         | \\\\For      | \\\\Theorem    | \n| \\\\Input              | \\\\Elseif     | \\\\EndFor   | \\\\Lemma      |\n| \\\\Output             | \\\\Else       | \\\\While    | \\\\Corollary  |\n| \\\\Ensure             | \\\\Endif      | \\\\EndWhile | \\\\Definition |\n| \\\\Return             | \\\\Switch     | \\\\Break    | \\\\Remark     |\n| \\\\State              | \\\\Case       | \\\\Continue | \\\\Proof      |\n|                      | \\\\Default    |            | \\\\QED        |\n\n## Credits\n\nThe development of this plugin used the API wrapper from [Obsidian](https://github.com/obsidianmd/obsidian-api).\n\nThe idea of this plugin was heavily inspired by [Quick LaTeX for Obsidian](https://github.com/joeyuping/quick_latex_obsidian). (In fact, one of the functions in my code is taken straight from them, simply due to how great it is)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamzhang02%2Fobsidian-latex-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamzhang02%2Fobsidian-latex-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamzhang02%2Fobsidian-latex-algorithms/lists"}