{"id":20618612,"url":"https://github.com/allanchain/logseq-live-math","last_synced_at":"2025-07-20T08:34:24.426Z","repository":{"id":189967050,"uuid":"680768734","full_name":"AllanChain/logseq-live-math","owner":"AllanChain","description":"Type LaTeX in live mode!","archived":false,"fork":false,"pushed_at":"2025-07-05T07:49:27.000Z","size":1157,"stargazers_count":60,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T08:37:47.323Z","etag":null,"topics":["logseq","logseq-plugin","math","mathlive"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AllanChain.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,"zenodo":null},"funding":{"ko_fi":"allanchain"}},"created_at":"2023-08-20T10:47:18.000Z","updated_at":"2025-07-05T07:49:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1430fc5-28a5-4312-ae78-e9435461959c","html_url":"https://github.com/AllanChain/logseq-live-math","commit_stats":null,"previous_names":["allanchain/logseq-live-math"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/AllanChain/logseq-live-math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Flogseq-live-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Flogseq-live-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Flogseq-live-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Flogseq-live-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllanChain","download_url":"https://codeload.github.com/AllanChain/logseq-live-math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllanChain%2Flogseq-live-math/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266092825,"owners_count":23875545,"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":["logseq","logseq-plugin","math","mathlive"],"created_at":"2024-11-16T12:09:01.756Z","updated_at":"2025-07-20T08:34:24.402Z","avatar_url":"https://github.com/AllanChain.png","language":"TypeScript","funding_links":["https://ko-fi.com/allanchain"],"categories":[],"sub_categories":[],"readme":"\u003cp align=center\u003e\n  \u003cimg src=\"icon.svg\" width=\"100\"\u003e\n\u003c/p\u003e\n\u003ch1 align=center\u003e\n  Logseq Live Math\n\u003c/h1\u003e\n\u003cp align=center\u003e\n  \u003cem\u003eType LaTeX in live mode!\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=center\u003e\n  \u003ca href=\"https://github.com/AllanChain/logseq-live-math/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/AllanChain/logseq-live-math\" alt=\"GitHub release\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/AllanChain/logseq-live-math/total\" alt=\"total downloads\"\u003e\n\u003c/p\u003e\n\nlogseq-live-math integrates [MathLive](https://cortexjs.io/mathlive/) into Logseq, providing a better experience using Logseq with a lot of math.\n\nhttps://github.com/AllanChain/logseq-live-math/assets/36528777/fc1fb5c8-9b78-4562-8b4b-9b345dc2386f\n\n\u003e [!Tip]\n\u003e\n\u003e The above video is accelerated. Some shortcuts in the video are [customized](https://github.com/AllanChain/logseq-live-math/discussions/14).\n\u003e It also uses [logseq-display-math](https://github.com/AllanChain/logseq-display-math) to render inline math in display style.\n\u003e Check it out for math render style, KaTeX macros, and more!\n\n## Features\n\n- ⌨️ Easy and convenient ways to trigger the MathLive input\n  1. Using \u003ckbd\u003eControl\u003c/kbd\u003e+\u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eM\u003c/kbd\u003e shortcut. Can rebind in Logseq settings\n\n     It's recommended because it can both\n     - create new math\n     - edit existing math (just by placing input caret inside the math expression)\n  2. Using the `/math` command\n  3. Type `$$`. Can be disabled\n  4. Select existing formula with the mouse (e.g. `$\\frac12$`). Can be disabled\n- 📝 Edit LaTeX formula with MathLive, rich, intuitive, and fast\n- 🔄 Update the LaTeX formula in the block in real-time\n- 🔙 Press \u003ckbd\u003eEnter\u003c/kbd\u003e to confirm\n- 🎨 Well-configured MathLive theme to match Logseq custom theme\n- 🔧 Configurable MathLive [keybindings](https://cortexjs.io/mathlive/guides/shortcuts/#key-bindings) and [inline shortcuts](https://cortexjs.io/mathlive/guides/shortcuts/#inline-shortcuts)\n\n## Install\n\nThis plugin is available on the plugin marketplace. The simplest way to install it is from the marketplace.\n\nYou can also download the `zip` file under the [release](https://github.com/AllanChain/logseq-live-math/releases/latest) page, unzip it somewhere and Click `Load unpacked plugin`, and select the folder where the plugin code was unzipped. You may need to go to \"Settings -\u003e Advanced\" to enable \"Developer mode\".\n\n## FAQ\n\n### How is this plugin different from the `darwis-mathlive-plugin`?\n\n[darwis-mathlive-plugin](https://github.com/hkgnp/darwis-mathlive-plugin) also integrated MathLive to Logseq, but it’s working in a different way which is not very convenient for me, as it’s not automatically converted to LaTeX and only supports display math.\n\n### How to disable the double-dollar trigger and select-and-edit?\n\nGo to the settings page and disable them.\n\nFor select-and-edit, it's also possible to require a modifier key to be pressed.\nFor example, if you configured the key to be \u003ckbd\u003eShift\u003c/kbd\u003e, then you need to hold the \u003ckbd\u003eShift\u003c/kbd\u003e key while selecting, so that the popup will show. If not holding the key, nothing will happen.\n\n### How to switch between display math (`$$`) and inline math (`$`)?\n\nIf you want to change the default style, go to the settings page and switch `preferDisplay`.\n\nIf you need to switch temporarily, you can click on the title of the popup to switch between `Inline Math` and `Display Math`. There is also a keyboard shortcut \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003e$\u003c/kbd\u003e (e.g. with US layout, it's \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003e4\u003c/kbd\u003e) which does the same job.\n\nBesides, there is `smartFormat` option, which will choose prefered style according to the context. You can disable it if you don't like it.\n\n### How to configure keybindings and inline shortcuts?\n\nIf you clicked \"Edit settings.json\", you will notice this plugin comes with some examples.\nYou can also read the [MathLive documentation](https://cortexjs.io/mathlive/guides/shortcuts/) to learn more.\n\nAnd don't forget to check out the [GitHub Discussion thread](https://github.com/AllanChain/logseq-live-math/discussions/14)!\nYou are encouraged to share your configs there!\n\n### How can I input `align` / `split` etc.?\n\nIf you are using \u003ckbd\u003eControl\u003c/kbd\u003e + \u003ckbd\u003eEnter\u003c/kbd\u003e, you will find that MathLive doesn't handle this well (see [#21](https://github.com/AllanChain/logseq-live-math/issues/21)).\n\nAs a workaround, you can create an inline shortcut:\n\n```json5\n\"align\": \"\\\\begin{align*}\\n#? \u0026= #? \\\\\\\\\\n #? \u0026= #?\\\\end{align*}\",\n```\n\nAfter typing \"align\", something like this will show\n\n![image](https://github.com/AllanChain/logseq-live-math/assets/36528777/59e533a2-20a9-445e-818c-88e1613ea205)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanchain%2Flogseq-live-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanchain%2Flogseq-live-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanchain%2Flogseq-live-math/lists"}