#+header: :headers '("\\usepackage[ruled, linesnumbered]{algorithm2e}" "\\usepackage{tikz}")
#+begin_src latex :results file raw :file ../vx_attachments/Pasted_image_20240226095718.svg
\setcounter{algocf}{1}
\begin{algorithm}
\DontPrintSemicolon
\SetKwFunction{VecMulBarrettMod}{VecMulBarrettMod}
\KwIn{\(\mathbf{\text{ct}}_{0}=(\mathbf{a_{0}}, \mathbf{b_{0}})\), \(\mathbf{p}\)}
\KwOut{output}
output $\leftarrow$ (\VecMulBarrettMod{\(\mathbf{a_{0}}\), \(\mathbf{p}\)}, \VecMulBarrettMod{$\mathbf{b_{0}}$, $\mathbf{p}$}}) \;
\caption{PMult}
\end{algorithm}
#+end_src
这段代码我放到 .tex 文件没法过编的, 倒数第 3 行最右边多了一个 }
, 但还是没有报错, 居然还正确生成了 svg, 这是怎么回事?