UserScript:数学的構造などの定型文
summary.icon
$ \left\lang\mathrm{ hoge\ hoge }\colon;;\right\rang
code:script.js
import "../tools/script.js"
ボタン
code:script.js
const signatureSnipet = text => {
let func = line => line. mathEsc(). sandwich(
"\\left\\lang\\textrm{",
"}\\colon ; ; \\right\\rang"
)
return(text.mapLine(func));
}
scrapbox.PopupMenu.addButton({
title: " 📝 ",
onClick: signatureSnipet
})