方程式标签颜色问题

方程式标签颜色问题

为什么这个编号方程的 (1) 是蓝色的?我希望 (1) 是黑色的。我该怎么做?谢谢 代码:

\documentclass{article}
\usepackage{color}
\usepackage{amsmath}
\usepackage{stix}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage[customcolors,shade]{hf-tikz}
\usepackage{tikz-cd}

\newcommand{\Tonde}[1]{\left(#1\right)}

\newcommand{\Stirling}{\lim_{n\longrightarrow\infty}\dfrac{n!}{\Tonde{\dfrac{n}{e}}^n\sqrt{2n\pi}}=1} 

\begin{document}

\section{Formula di Stirling}
\hfsetfillcolor{gray!30}
\hfsetbordercolor{red}
\begin{equation}\label{StirlingLim}
\tikzmarkin[disable rounded corners=true]{b}(0.25,-1.2)(-0.25,0.8)\color{blue}{\Stirling}\tikzmarkend{b}
\end{equation}

\end{document}

答案1

颜色可能会泄漏。添加另一组:

\documentclass{article}
\usepackage{color}
\usepackage{amsmath}
\usepackage{stix}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage[customcolors,shade]{hf-tikz}
\usepackage{tikz-cd}

\newcommand{\Tonde}[1]{\left(#1\right)}

\newcommand{\Stirling}{\lim_{n\longrightarrow\infty}\dfrac{n!}{\Tonde{\dfrac{n}{e}}^n\sqrt{2n\pi}}=1}

\begin{document}

\section{Formula di Stirling}
\hfsetfillcolor{gray!30}
\hfsetbordercolor{red}
\begin{equation}\label{StirlingLim}
\tikzmarkin[disable rounded corners=true]{b}(0.25,-1.2)(-0.25,0.8){\color{blue}{\Stirling}}\tikzmarkend{b}
\end{equation}

\end{document}

相关内容