OneHotkey
\a → \alpha → α: Simplify formula inputs in OneNote/Word. 简化OneNote/Word中的数学公式输入
Install / Use
/learn @RUSRUSHB/OneHotkeyREADME
OneHotkey: Faster Math Input in OneNote/Word
- 中文版介绍:README_CN.md
- 这是一个用于简化
OneNote和Word中数学公式输入的AutoHotKey脚本,例如,\a代表 $\alpha$ (\alpha)。
This is a script that simplifies math formula inputs in OneNote and Word with AutoHotKey script, e.g., \a for $\alpha$ (\alpha).
Demonstration video (Early version):
If the formulas aren't displayed correctly, go to README_EN.pdf.
How to Use
- Download and run OneHotkey.exe.
- Input the code of the symbol, then press
Spaceto get the symbol. For example, input\aand pressSpaceto get $\alpha$. - For editting the symbol mapping, please refer to Code Editing Guide. If you need help, go to the AutoHotKey official website.
- To stop the script, right click the
Hicon in the system tray and selectExit.
Table of Contents
<!-- TOC -->- OneHotkey: Faster Math Input in OneNote/Word
Symbol Mapping
Overview
The script contains multiple symbol mappings, including Greek letters, math fonts, frequently used letters, and structures. The following is a list of some typical mappings. Make sure that you have entered the formula input mode with Alt+=.
If the formulas aren't displayed correctly, go to README_EN.pdf.
|Code|Output|Category|Source|
|----|------|----|---|
|\a| $\alpha$ |lowercase Greek letters|\alpha |
|\D| $\Delta$ |uppercase Greek letters|\Delta |
|\R, \C, \Z, \N, \J| ℝ, ℂ, ℤ, ℕ, 𝕁 |frequently used letters|\doubleR , ...|
|\do X, \sc X, \fr X| 𝕏, 𝒳, 𝔛 |fancy letter forms|\doubleX , \scriptX , \frakturX |
|\m3, \m4, ...|specific shape matrices|matrices|[\matrix(@@&&)] , ...|
|x\h, x\~, x\d2| $\hat{x}$, $\tilde{x}$, $\ddot{x}$ |modifiers|\hat , \tilde , \ddot |
|\x, \X, \sq, \pa, \eq| $\cdot$, $\times$, $\sqrt{⬚}$, $\parallel$, $\equiv$ |operators|\cdot , \times, \sqrt , \parallel , \equiv|
|\pd, \d, \dt, \inf| $\partial$, $\text{d}$, $\frac{\text{d}}{\text{d}t}$, $\infty$ |frequently used symbols|\partial , "d" , "d" /"d" t , \infty |
|\limx, \limx0| $ \lim_{x \rightarrow \infty} $, $ \lim_{x \rightarrow 0} $ |limits|lim_(x->\infty ) , lim_(x->0 ) |
|\ls| $^⬚_⬚ P$ |left super-and-lowerscript|^_ P |
|\i, \j, \k| $\text{i}$, $\text{j}$, $\text{k}$ |imaginary/quaternion symbols|"i", "j", "k"|
|\ejw| $e^{j\omega}$ |complex exponential factor|e^j\omega |
You shall notice that (space) is commonly used, which is the key feature of OneNote formula input.
Full Table
Frequently Used Letters
| Code | Output | Source | Code | Output | Source |
|------|--------|--------|------|--------|--------|
| \pd | $\partial$ | \partial{Space} |\d|$\text{d}$|"d"{Space}|
| \inf | $\infty$ | \infty{Space} | \dt | $\frac{\text{d}}{\text{d}t}$ | "d"{Space}/"d"{Space}t{Space}{Left 4}^i |
| \R | $\mathbb{R}$ | \doubleR{Space} | \E|$\mathbb{E}[⬚]$|\doubleE{Space}[]{Space}{Left}|
| \Q | $\mathbb{Q}$ | \doubleQ{Space} | \Z | $\mathbb{Z}$ | \doubleZ{Space} |
| \N | $\mathbb{N}$ | \doubleN{Space} | \C | $\mathbb{C}$ | \doubleC{Space} |
| \J | $\mathbb{J}$ | \doubleJ{Space} | \n | $\nabla$ | \nabla{Space} |
Operators
| Code | Output | Source | Code | Output | Source |
|------|--------|--------|------|--------|--------|
| \x | $\cdot$ | \cdot{Space} | \X | $\times$ | \times{Space} |
| \sq | $\sqrt{⬚}$ | \sqrt{Space 2}{Left} | \pa | $\parallel$ | \parallel{Space} |
| \ss | $\subset$ | \subset{Space} | \sse | $\subseteq$ | \subseteq{Space} |
| \op | $\oplus$ | \oplus{Space} | \ox | $\otimes$ | \otimes{Space} |
| \od | $\odot$ | \odot{Space} | \dd | $\ddots$ | \ddots{Space} |
| \cd | $\cdots$ | \cdots{Space} | \vd | $\vdots$ | \vdots{Space} |
| \map | $\mapsto$ | \mapsto{Space} | \pro | $\propto$ | \propto{Space} |
| \as | $\because$ | \because{Space} | \so | $\therefore$ | \therefore{Space} |
| \eq | $\equiv$ | \equiv{Space} | \deq | $\triangleq$ | \Deltaeq{Space} |
| \xe | $\times 10^{⬚}$ | \times{Space}10{^}{Space}{Left} | \ex | $\exists$ | \exists{Space} |
| \fa | $\forall$ | \forall{Space} | \ppd | $\frac{\partial}{\partial}$ | \partial{Space}/\partial{Space 2}{Left 3} |
| \ppd | $\frac{\partial}{\partial}$ | \partial{Space}/\partial{Space 2}{Left 3} |
Greek Letters
| Code | Output | Source | Code | Output | Source |
|------|--------|--------|------|--------|--------|
| \a | $\alpha$ | \alpha{Space} | \b | $\beta$ | \beta{Space} |
| \e | $\varepsilon$ | \varepsilon{Space} | \ve | $\epsilon$ | \epsilon{Space} |
| \de | $\delta$ | \delta{Space} | \D | $\Delta$ | \Delta{Space} |
| \s | $\sigma$ | \sigma{Space} | \S | $\Sigma$ | \Sigma{Space} |
| \l | $\lambda$ | \lambda{Space} | \L | $\Lambda$ | \Lambda{Space} |
| \t | $\theta$ | \theta{Space} | \T | $\Theta$ | \Theta{Space} |
| \p | $\phi$ | \phi{Space} | \P | $\Phi$ | \Phi{Space} |
| \o | $\omega$ | \omega{Space} | \O | $\Omega$ | \Omega{Space} |
| \g | $\gamma$ | \gamma{Space} | \G | $\Gamma$ | \Gamma{Space} |
vemeans variant epsilon. For convenience,\eis set to $\varepsilon$ and\veis set to $\epsilon$, which is different from their original code.
Matrix
| Code | Output | Source |
|------|--------|--------|
| \m4 | 4 by 4 empty matrix | [\matrix(@@@&&&){Space}]{Space} |
| \m3 | 3 by 3 empty matrix | [\matrix(@@&&){Space}]{Space} |
| \m2 | 2 by 2 empty matrix | [\matrix(@&){Space}]{Space} |
| \m | empty matrix awaiting & @ to set size | []{Space}{Left}\matrix(){Left} |
Modifiers
| Code | Output | Source |
|------|--------|--------|
| \d1 | $\dot{x}$ | \dot{Space 2} |
| \d2 | $\ddot{x}$ | \ddot{Space 2} |
| \d3 | 3 dots above | \dddot{Space 2} |
| \d4 | 4 dots above | \ddddot{Space 2} |
| \~ | $\tilde{x}$ | \tilde{Space 2} |
| \v | $\vec{x}$ | \vec{Space 2} |
| \h | $\hat{x}$ | \hat{Space 2} |
| \ub | $\underline{x}$ | \underbar{Space 2}{Left} |
- For the above codes, you should input like
x\h.
Arrows
| Code | Output | Source | Code | Output | Source |
|------|--------|--------|------|--------|--------|
| \lr | $\leftrightarrow$ | \leftrightarrow{Space} | \Lr | $\Leftrightarrow$ | \Leftrightarrow{Space} |
| \lrs | $\leftrightarrows$ | \leftrightarrows{Enter}{Left} | \la | $\leftarrow$ | \leftarrow{Space} |
| \La | $\Leftarrow$ | \Leftarrow{Space} | \ra | $\rightarrow$ | \rightarrow{Space} |
| \Ra | $\Rightarrow$ | \Rightarrow{Space} | \down | $\downarrow$ | \downarrow{Space} |
| \up | $\uparrow$ | \uparrow{Space} |
Symbols
| Code | Output | Source | Code | Output | Source |
|------|--------|--------|------|--------|--------|
| \deg | $\degree$ | \degree{Space} | \st | $\star$ | \star{Space} |
Structures
- If the formulas aren't displayed correctly, go to README_EN.pdf.
| Code | Output | Source |
|------|--------|--------|
| \r | $\lbrace⬚$ | \right.{Left} |
| \leb | $⬚\rbrace$ | \left\box{Space 2}{Left} |
| \ceil | $\lceil⬚\rceil$ | \lceil{Space}\rceil{Space 2}{Left} |
| \floor | $\lfloor⬚\rfloor$ | \lfloor{Space}\rfloor{Space 2}{Left} |
| \brak | ⟨⬚⟩ |\bra{Space}\ket{Space 2}{Left}|
| \ls | $^⬚⬚ P$ | ^_ P {Left 4} |
| \ab | $\stackrel{⬚}{x}$ | \above{Space 2}{Left} |
| \be | $\underset{⬚}{x}$ | \below{Space 2}{Left} |
| \abb | $\overbrace{x}$ | \overbrace{Space 2} |
| \beb | $\underbrace{x}$ | \underbrace{Space 2} |
| \fu | $\text{myfunction}{⬚}$ | \funcapply |
| \Norm | $\Vert⬚\Vert$ | \norm{Space}\norm{Space 2}{Left} |
| \limx, \limx0 | $ \lim{x \rightarrow \infty} $, $ \lim_{x \rightarrow 0} $ | lim_(x->\infty{Space}){Space}, lim_(x->0{Space}){Space} |
| \limt, \limt0 | $ \lim_{t \rightarrow \infty} $, $ \lim_{t \rightarrow 0} $ | lim_(t->\infty{Space}){Space}, lim_(t->0{Space}){Space} |
| \limn, \limk | $ \lim_{n \rightarrow \infty} $, $ \lim_{k \rightarrow \infty} $ | lim_(n->\infty{Space}){Space}, lim_(k->\infty{Space}){Space} |
| \limh | $ \lim_{h \rightarrow 0} $ | lim_(h->0{Space}){Space} |
| \BO | $\boxed{⬚}$ | \boxed{Enter}{Left 2} |
| \qu | Quad space | \quad{Enter}{Left} |
| \diverge | $\frac{\partial}{\partial x}+\frac{\partial}{\partial y}+\frac{\partial}{\partial z}$ | Omitted |
| \gradient | $\frac{\partial}{\partial x}\vec{a}_x+\frac{\partial}{\partial y}\vec{a}_y+\frac{\partial}{\partial z}\vec{a}_z$ | Omitted |
| \curl | Curl matrix | |
\funcapplyis a little different from\of. Have a try by yourself!
Prefix for Fancy Letters
| Code | Output | Source | |------|---
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
