答案1
如果你真的想要使用蒂克兹那么这看起来怎么样:
以下是代码:
\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{tikz}
\newcommand\checkmark[1][]{%
\tikz[scale=0.4,#1]{\fill(0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}%
}
\newcommand\crossmark[1][]{%
\tikz[scale=0.4,#1]{
\fill(0,0)--(0.1,0) .. controls (0.5,0.4) .. (1,0.7)--(0.9,0.7) .. controls (0.5,0.5) ..(0,0.1) --cycle;
\fill(1,0.1)--(0.9,0.1) .. controls (0.5,0.3) .. (0,0.7)--(0.1,0.7) .. controls (0.5,0.4) ..(1,0.2) --cycle;
}%
}
\begin{document}
This is a \checkmark~checkmark.
This is a \crossmark~crossmark.
Here are coloured versions \checkmark[green]~and \crossmark[red, scale=1].
\end{document}
正如最后的例子所示,我给这两个宏都提供了一个可选参数,以便您可以添加额外的样式。