4

I would like to make a double blue checkmark symbol with square contours using TikZ, the same as this image:

What I want

As example I have taken the code of this nice answer:

Example

which differs a lot.

This is the MWE:

\documentclass{article}
\usepackage{tikz}

\tikzset{pics/.cd, 
checkmark/.style={code={% starting point : https://tex.stackexchange.com/a/132790/121799
\pgfgettransformentries{\tmpxx}{\tmp}{\tmp}{\tmp}{\tmp}{\tmp}
\draw[line width=\tmpxx*1pt,draw=none,fill=blue!60,line join=bevel] (0,.35) -- (.25,0) to[bend left=5] (0.8,.6) to[bend
right=5] (.25,.18) -- cycle;}}}
\newcommand{\doubleckmark}{\begin{tikzpicture}[baseline={(0,0)}]
\path (0,0) pic[scale=0.4]{checkmark} (0.12,0) pic[scale=0.4]{checkmark};
\end{tikzpicture}}

\renewcommand\labelitemi{\doubleckmark}

\begin{document}

\begin{itemize}
    \item This is an item.
    \item Another item.
\end{itemize}


\end{document}

MWE output

2
  • 1
    Hi :-). Do you want exactly your symbol? :-)
    – Sebastiano
    Mar 10, 2020 at 13:10
  • 1
    @Sebastiano hello! Yes, because I am (trying to) replicate a WhatsApp conversation. P.S. I don't want to use packages like fontawesome5 but tikz. :P
    – manooooh
    Mar 10, 2020 at 13:13

2 Answers 2

7
\documentclass{article}
\usepackage{tikz}

\tikzset{pics/.cd, checkmark/.style={code={% 
\pgfgettransformentries{\tmpxx}{\tmp}{\tmp}{\tmp}{\tmp}{\tmp}
\draw[line width=\tmpxx*1pt,draw=none,fill=blue!60] (0,.33) -- (.25,0) to 
  (0.8,.6) to (.72,.68) to (.25,.18) to (0.08,.40)-- cycle;}}}
\tikzset{pics/.cd, clipcheckmark/.style={code={% 
\pgfgettransformentries{\tmpxx}{\tmp}{\tmp}{\tmp}{\tmp}{\tmp}
\draw[line width=\tmpxx*1pt,draw=none,fill=blue!60] (0.1,.19) -- (.25,0) to 
  (0.8,.6) to (.72,.68) to (.25,.18) to (0.18,.26)-- cycle;}}}
\newcommand{\doubleckmark}{\begin{tikzpicture}[baseline={(0,0)}]
\path (0,0) pic[scale=0.4]{checkmark} (0.16,0) pic[scale=0.4]{clipcheckmark};
\end{tikzpicture}}

\renewcommand\labelitemi{\doubleckmark}

\begin{document}

\begin{itemize}
    \item This is an item.
    \item Another item.
\end{itemize}


\end{document}

enter image description here

7

Just for fun: an attempt to obtain a precise match.

\documentclass{article}
\usepackage{scalerel}
\usepackage{tikz}
\definecolor{cmblue}{RGB}{1,126,254}
\newcommand{\doubleckmark}{\scalerel*{\begin{tikzpicture}[x=2ex,y=2ex]
\draw[line width=0.72ex,cmblue] (136:1.25) -- (0,0) -- (51:2.85);
\draw[xshift=2.5ex,line width=0.72ex,cmblue] (137:0.55) -- (0,0) -- (52:2.85);
\end{tikzpicture}}{W}}

\renewcommand\labelitemi{\doubleckmark}

\begin{document}

\begin{itemize}
    \item This is an item.
    \item Another item.
\end{itemize}
\end{document}

enter image description here

2
  • 2
    You used scalerel..I gotta give it a +1 Mar 10, 2020 at 15:41
  • @StevenB.Segletes That's a really great package! Thanks for writing it!
    – user194703
    Mar 10, 2020 at 16:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .