WP Editorの中にあるKaTeXでalignedを使う

SAKURAI SUSMU WEBSITEではプラグイン WP Editorの中にあるKaTeXを有効にして数式を扱っています

SSF_codeはプラグイン KaTeXを使っているのでTeXコードを複数行で書くことができます
ところが、WP EditorのKaTeXでは複数行TeXコードが書けません。
1行に書く必要があります。
さらに、特殊文字もHTML仕様にする必要があります。

align環境で&を使って複数行数式を出力したい場合
悪銭苦闘して書き方がわかった

WP EditorのKaTeXでのポイント
・複数行数式でもコードは1行にする
・alignではなくalignedを使う
・&は&
・\\は\\(これがわからなかった)

$$\begin{aligned}x+y & =z \\ x^2+y^2 &=z^2 \end{aligned}$$

\begin{aligned} x+y& =z\\ x^2+y^2& =z^2 \end{aligned}

CotEditorでPythonファイルを実行するスクリプト

MacのエディターCotEditor(5.1.4)
で開いたPythonファイルをターミナルで実行するアップルスクリプト

CotEditorのメニュー「スクリプト」→「スクリプトフォルダを開く」
この中に「python.@r.applescript」を置けばOK

アップルスクリプト python.@r.applescript

(*
 *  Use Command+R to run python on the current file
 *)
tell application "CotEditor"
    if exists front document then
        set thisfile to POSIX path of (get file of front document) as Unicode text
        set thisdir to (do shell script "/usr/bin/dirname \"" & thisfile & "\"")
        set thisbase to thisdir & "/" & (do shell script "/usr/bin/basename \"" & thisfile & "\" .py")

        if (thisfile is not "") then
            tell application "Terminal"
                activate
                do script with command "python " & thisfile
            end tell
        end if
        activate
    end if
end tell