我尝试使用下面的代码来创建复选标记和叉号,但是复选标记的大小与叉号不匹配!
\documentclass{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{calc,chains,positioning}
\begin{document}
\begin{tikzpicture}
\newcommand{\cross}{$\mathbin{\tikz [red,line width=4pt,line cap=round] \draw (-0.5,-0.5) -- (0.5,0.5) (-0.5,0.5) -- (0.5,-0.5);}$}%
\node[red] (A) {\checkmark};
\node[red,right=of A,minimum width=1,minimum height=1] {\cross};
%\draw[red] (0,0) circle (1);
\end{tikzpicture}
\end{document}
答案1
\documentclass{standalone}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{calc,chains,positioning}
\begin{document}
\begin{tikzpicture}
\newcommand{\cross}{$\mathbin{\tikz [red,line width=2pt,line cap=round,scale=0.2] \draw (-0.5,-0.5) -- (0.5,0.5) (-0.5,0.5) -- (0.5,-0.5);}$}%
\node[red] (A) {\checkmark};
\node[red,right=of A,minimum width=1,minimum height=1] {\cross};
%\draw[red] (0,0) circle (1);
\end{tikzpicture}
\end{document}