Referring to this question, how can I draw a checkmark inside a solid circle as shown as a picture?
Regards
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityReferring to this question, how can I draw a checkmark inside a solid circle as shown as a picture?
Regards
Without tikz
\documentclass{article}
%\usepackage{dingbat}
\usepackage{amssymb}
\usepackage{graphicx,xcolor}
\newcommand\circledmark[1][red]{%
\ooalign{%
\hidewidth
\kern0.65ex\raisebox{-0.9ex}{\scalebox{3}{\textcolor{#1}{\textbullet}}}
\hidewidth\cr
$\checkmark$\cr
}%
}
\newcommand\circled[1][red]{%
\raisebox{-0.9ex}{\scalebox{3}{\textcolor{#1}{\textbullet}}}
}%
\begin{document}
This is circled \circledmark\quad\circledmark[cyan] and filled \circled[cyan]
\end{document}
One option:
\documentclass{article}
\usepackage{amssymb}
\begin{document}
\textcircled{$\checkmark$}
\end{document}
Or, with color:
\documentclass{article}
\usepackage{amssymb}
\usepackage{xcolor}
\newcommand\circledmark[1][red]{%
\textcolor{#1}{\textcircled{\normalcolor$\checkmark$}}%
}
\begin{document}
\circledmark\quad\circledmark[cyan]
\end{document}
suppress \normalcolor
if the color is also for the checkmark.
Or, using TikZ and a filled circle, two options:
\documentclass{article}
\usepackage{amssymb}
\usepackage{tikz}
\newcommand\circledmark[1][red!50]{%
\tikz\node[circle,fill=#1,inner sep=0pt]{$\checkmark$};%
}
\newcommand\circledmarki[1][red!50]{%
\tikz[baseline=(A.south)]{
\node[circle,fill=#1,inner sep=0.75ex] (A) {};
\node at (A) {$\checkmark$};
}%
}
\begin{document}
\circledmark\quad\circledmark[cyan!60]\quad\circledmarki\quad\circledmarki[cyan!60]
\end{document}
And, after a request in a comment:
\documentclass{article}
\usepackage{amssymb}
\usepackage{tikz}
\newcommand\circledmark[1][red!50]{%
\tikz\node[circle,fill=#1,inner sep=0pt]{$\checkmark$};%
}
\newcommand\circledmarki[1][red!50]{%
\tikz[baseline=(A.south)]{
\node[circle,fill=#1,inner sep=0.75ex] (A) {};
\node at (A) {$\checkmark$};
}%
}
\newcommand\mycircle[1][red!50]{%
\tikz[baseline=(A.south)]{
\node[circle,fill=#1,inner sep=0.75ex] {};
}%
}
\begin{document}
\circledmark\quad\circledmark[cyan!60]\quad
\circledmarki\mycircle\quad\circledmarki[cyan!60]\mycircle[cyan!60]
\end{document}
cyan!40
for example.