Latex中插入代码

minted是一个可以在LaTex中插入代码的包,可以通过以下方式使用: 配置 1 2 3 4 5 6 7 8 9 10 11 12 \usepackage{xcolor} \usepackage{minted} \definecolor{bg}{rgb}{0.95,0.95,0.95} \setminted{ frame=lines, tabsize=4, encoding=utf8, bgcolor=bg, fontsize=\footnotesize, linenos, breaklines, } 使用 1 2 3 4 5 6...

March 18, 2022 · 1 min · Hanwen Tong