latex中设置公式背景色的\bbox命令需要加载哪一个宏包?

发布于 2021-09-09 13:06:23
关注者
0
被浏览
2.8k
乙醇
乙醇 2021-09-09
这家伙很懒,什么也没写!

据我所知这是 MathJax 的功能, LaTeX 中如果要使用这种强调盒子可以看一下 tcolorbox 宏包

\documentclass{article}
\usepackage{tcolorbox}
\usepackage{amsmath}
\tcbuselibrary{theorems}
\tcbset{highlight math/.append style={left=0mm,right=0mm,top=0mm,bottom=0mm, colframe=white}}
\begin{document}
    \begin{equation}
        \tcbhighmath{X_{k}} = \tcbhighmath[colback=pink]{\frac{1}{N}\sum_{n=1}^{N-1}x_{n}e^{\mathrm{i}2\pi k\frac{n}{N}}}
    \end{equation}
\end{document}

image.png

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览