4

Any idea on how to design a nice incorrect mark using TIKZ, which is the opposite of the mark below:

\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{tikz}
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} 
\begin{document}
This is a \checkmark checkmark.
\end{document}

enter image description here

Victor
  • 117

1 Answers1

8

If you really want to do this using tikz then how does this look:

enter image description here

Here is the code:

\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}

As the last examples show, I have given both macros an optional argument so that you can add extra style.