我想知道如何更改 QED 符号的颜色。这是我的代码,我希望将 QED 符号颜色更改为我定义的颜色:
\documentclass{book}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{xcolor}
\definecolor{ocre}{RGB}{52,177,201}
\begin{document}
\begin{align}
\boldsymbol{\theta}=&\mathbf{H}^{-1}(k)\mathbf{Z}(k)\\
\Rightarrow {\begin{pmatrix}
x(0) \\ \dot{x}(0)
\end{pmatrix}}
=&{\begin{pmatrix}
x_{1} & x_{2} \\ x_{3} & x_{4}
\end{pmatrix}}^{-1}
{\begin{pmatrix}
x(t_{1}) \\ x(t_{2})
\end{pmatrix}}
\end{align}
\qed
\end{document}
答案1
的标准定义\qedsymbol
是\openbox
。只需执行
\renewcommand{\qedsymbol}{\textcolor{ocre}{\openbox}}
bm
完整代码(请注意,建议加载\boldsymbol
,也可以缩短为\bm
):
\documentclass{book}
\usepackage{amsmath,amssymb,amsthm,bm}
\usepackage{xcolor}
\definecolor{ocre}{RGB}{52,177,201}
\renewcommand{\qedsymbol}{\textcolor{ocre}{\openbox}}
\begin{document}
\begin{align}
\boldsymbol{\theta}=&\mathbf{H}^{-1}(k)\mathbf{Z}(k)\\
\Rightarrow {\begin{pmatrix}
x(0) \\ \dot{x}(0)
\end{pmatrix}}
=&{\begin{pmatrix}
x_{1} & x_{2} \\ x_{3} & x_{4}
\end{pmatrix}}^{-1}
{\begin{pmatrix}
x(t_{1}) \\ x(t_{2})
\end{pmatrix}}
\end{align}
\qed
\end{document}