Skip to content

Instantly share code, notes, and snippets.

@AllanChain
Last active January 3, 2024 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllanChain/fa7557f7c36d04033631528f84a3b929 to your computer and use it in GitHub Desktop.
Save AllanChain/fa7557f7c36d04033631528f84a3b929 to your computer and use it in GitHub Desktop.
My Logseq Live Math plugin settings
{
"triggerSettings": null,
"dollarTrigger": false,
"selectEdit": false,
"selectModifier": "Shift",
"formatSettings": null,
"preferDisplay": false,
"preferMultiline": true,
"smartFormat": true,
"mathliveSettings": null,
"inlinePreview": false,
"smartFence": false,
"smartMode": false,
"smartSuperscript": false,
"keybindings": [
{
"key": "ctrl+b",
"ifMode": "math",
"command": [
"insert",
"\\mathbf{#@}"
]
},
{
"key": "ctrl+n",
"ifMode": "math",
"command": [
"insert",
"\\mathrm{#@}"
]
},
{
"key": "ctrl+shift+9",
"command": [
"insert",
"\\left(#?\\right)"
]
},
{
"key": "ctrl+[",
"command": [
"insert",
"\\left[#?\\right]"
]
},
{
"key": "ctrl+{",
"command": [
"insert",
"\\left\\{#?\\right\\}"
]
},
{
"key": "[Tab]",
"ifMode": "latex",
"command": "nextSuggestion"
},
{
"key": "shift+[Tab]",
"ifMode": "latex",
"command": "previousSuggestion"
},
{
"key": "[Return]",
"ifMode": "latex",
"command": [
"complete",
"accept-all"
]
},
{
"key": "[Enter]",
"ifMode": "latex",
"command": [
"complete",
"accept-all"
]
},
{
"key": "/",
"ifMode": "math",
"command": null
},
{
"key": "alt+<",
"ifMode": "math",
"command": [
"insert",
"\\Bra{#@}"
]
},
{
"key": "ctrl+alt+>",
"ifMode": "math",
"command": [
"insert",
"\\Braket{#@}"
]
},
{
"key": "alt+>",
"ifMode": "math",
"command": [
"insert",
"\\Ket{#@}"
]
}
],
"inlineShortcuts": {
"@a": "\\alpha",
"@A": "\\alpha",
"@b": "\\beta",
"@B": "\\beta",
"@c": "\\chi",
"@C": "\\chi",
"@d": "\\delta",
"@D": "\\Delta",
"@e": "\\epsilon",
"@E": "\\epsilon",
":e": "\\varepsilon",
":E": "\\mathcal{E}",
"@f": "\\phi",
"@F": "\\Phi",
":f": "\\varphi",
"@g": "\\gamma",
"@G": "\\Gamma",
"@h": "\\eta",
"@H": "\\eta",
"@k": "\\kappa",
"@K": "\\kappa",
"@l": "\\lambda",
"@L": "\\Lambda",
"@m": "\\mu",
"@M": "\\mu",
"@n": "\\nu",
"@N": "\\nu",
"@o": "\\omega",
"@O": "\\Omega",
"@r": "\\rho",
"@R": "\\rho",
"@s": "\\sigma",
"@S": "\\Sigma",
"@t": "\\tau",
"@T": "\\tau",
"@u": "\\upsilon",
"@U": "\\Upsilon",
"ome": "\\omega",
"Ome": "\\Omega",
"@v": "\\theta",
"@V": "\\Theta",
"@y": "\\psi",
"@Y": "\\Psi",
"@x": "\\xi",
"@X": "\\Xi",
"@z": "\\zeta",
"@Z": "\\zeta",
"//": "\\frac{#?}{#?}",
"sqrt": "\\sqrt{#?}",
"<>": "\\langle #?\\rangle",
">>": "\\gg",
"<<": "\\ll",
">=": "\\ge",
"<=": "\\le",
"{": "\\{#?\\}",
"[": "[#?]",
"(": "(#?)",
"*": "\\cdot",
"...": "\\cdots",
"trace": "\\mathrm{Tr}",
"det": "\\mathrm{det}",
"re": "\\mathrm{Re}",
"im": "\\mathrm{Im}",
"bar": "\\bar{#?}",
"vec": "\\vec{#?}",
"hat": "\\hat{#?}",
"dot": "\\dot{#?}",
"oo": "\\infty",
"ii": "\\imaginaryI",
"ee": "\\exponentialE^{#?}",
"ei": "\\exponentialE^{\\imaginaryI #?}",
"kbt": "k_B T",
"hba": "\\hbar",
"d3k": "\\int \\frac{\\mathrm{d}^3 \\mathbf{k}}{(2\\pi)^3}",
"d3x": "\\int \\mathrm{d}^3 \\mathbf{x}",
"d3y": "\\int \\mathrm{d}^3 \\mathbf{y}",
"d4k": "\\int \\frac{\\mathrm{d}^4 \\mathbf{k}}{(2\\pi)^4}",
"dome": "\\int \\frac{\\mathrm{d}\\omega}{2\\pi}",
"align": "\\begin{align*}\n#? &= #? \\\\\n #? &= #?\\end{align*}",
"cases": "\\begin{cases}\n#? & #? \\\\\n #? & #?\\end{cases}"
},
"disableDefaultShortcuts": true,
"disabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment