테이블의 특수 기호(채워진 십자가, 빈 십자가, 채워진 사각형, 빈 사각형)

테이블의 특수 기호(채워진 십자가, 빈 십자가, 채워진 사각형, 빈 사각형)

저는 그림의 데이터를 설명하면서 라텍스 테이블에서 작업하고 있습니다. 여기에는 그림에 포함된 여러 가지 특수 기호가 포함되어 있으며 테이블에도 동일한 항목을 포함하고 싶습니다. 그러나 다른 패키지에서 이러한 기호를 찾는 데 어려움을 겪고 있습니다. 다음은 테이블의 원시 코드입니다.

\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{amsmath,amssymb,amsfonts,mathrsfs}



\begin{document}

\renewcommand{\tabcolsep}{10pt}
\begin{table}[b!]
        \caption{Details of the data presented in figure 16 regarding modifications in a monodisperse suspension of large particles to replicate the settling velocity of large particles in bidisperse flows}
        \label{tab5}
%   \scriptsize
\centering
\small
\begin{tabular}{c c c c c c c c}\hline
\multicolumn{1}{c}{\multirow{2}{*}{$\text{Re}_{\text{t,l}}$}} & \multicolumn{1}{c}{\multirow{2}{*}{Mono}} & \multicolumn{1}{c}{\multirow{2}{*}{Bi}} & \multicolumn{2}{c}{Mono, $\rho_{f,m}$} &  & \multicolumn{2}{c}{Mono, $\rho_{f,m}$ {\&} $\mu_{f,m}$} \\
\cline{4-5} \cline{7-8}
\multicolumn{1}{l}{} & & & Value & Deviation && Value & Deviation \\ \midrule
1 & 0.6 & 0.455 & 0.576 & 26.6 && 0.445 & 2.2  \\ \midrule
50 & 0.75 & 0.72 & 0.7235 & 0.48 && 0.61 & 15.3 \\ \midrule
100 & 0.777 & 0.7354 & 0.742 & 0.89 && 0.6268 & 14.7 \\ 
\bottomrule
\end{tabular}
\end{table}

\end{document}

위의 코드는 다음 표를 제공합니다.

초기 이미지

그러나 아래와 같이 기호가 포함된 테이블이 필요합니다.

원하는 테이블

기호는 다음과 같습니다.채워진 붉은 광장,비어 있는 검은색 사각형,채워진 적십자,빈 적십자. 원하는 이미지와 동일한 크기, 색상 및 순서를 가져야 합니다.

답변1

원하는 대로 매개변수를 선택하세요.

\documentclass{article}

\usepackage{pict2e,xcolor}

\newcommand*{\filledredsquare}{\textcolor{red}{\mysymbols{\polygon*(0,0)(1,0)(1,1)(0,1)\polygon(0,0)(1,0)(1,1)(0,1)}}}
\newcommand*{\emptyblacksquare}{\mysymbols{\polygon(0,0)(1,0)(1,1)(0,1)}}
\newcommand*{\filledredcross}{\textcolor{red}{\mysymbols{\Line(0,0)(1,1)\Line(0,1)(1,0)}}}
\newcommand*{\emptyredcross}{\textcolor{red}{\mysymbols{\linethickness{.2pt}\polygon(.1,0)(1,.9)(.9,1)(0,.1)\polygon(.9,0)(1,.1)(.1,1)(0,.9)}}}

\newcommand*{\mysymbols}[1]{%
   \begingroup
   \setlength{\unitlength}{1.3ex}% or a value you like
   \begin{picture}(1,1)
   \thicklines
   #1%
   \end{picture}%
   \endgroup
}

\begin{document}
zzz \filledredsquare\ \emptyblacksquare\ \filledredcross\ \emptyredcross\  zzz
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보