LaTex Verbatim 环境下使用数学符号

Posted qq952693358

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LaTex Verbatim 环境下使用数学符号相关的知识,希望对你有一定的参考价值。

参考:

Write math and make a box with alltt environment

LaTex Verbatim 环境下使用数学符号

在 Verbatim 环境下使用数学符号,需要借助额外的宏包,fancyvrb。例如:

documentclass{article}
usepackage{fancyvrb}

egin{document}

egin{Verbatim}[commandchars=\{},
codes={catcode`$=3catcode`^=7catcode`_=8},frame=single]
some code test
$sum a_i$
end{Verbatim}

end{document}

技术分享图片

2018.10

以上是关于LaTex Verbatim 环境下使用数学符号的主要内容,如果未能解决你的问题,请参考以下文章