答案1
您可以使用picture
模式或一些低级编程。
\documentclass{article}
\newcommand{\particle}[1][1cm]{%
\begingroup
\setlength{\fboxsep}{-\fboxrule}%
\leavevmode
\vbox to 2.2\dimexpr#1\relax{%
\hbox{\fbox{\rule{0pt}{#1}\rule{#1}{0pt}}}
\vfill
\hbox{\fbox{\rule{0pt}{#1}\rule{#1}{0pt}}}
}%
\kern3pt
\fbox{\rule{0pt}{2.2\dimexpr#1\relax}\rule{1.5\dimexpr#1\relax}{0pt}}%
\endgroup
}
\begin{document}
X \particle\qquad\particle[.5cm] Y
\end{document}
根据您的喜好调整默认尺寸(1厘米)。
答案2
答案3
hhline
带有表格环境的简单代码:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array, multirow, hhline}
\newcommand{\answerboxes}{%
\begingroup\setlength\doublerulesep{8pt}\setlength\arrayrulewidth{3pt}
\begin{tabular}{|p{2cm}|| p{4cm}|}
\hhline{|-||-|}
\rule{0pt}{2cm} & \multirow{2}{=}{}\\
\hhline{:=:|~|}
\rule{0pt}{2cm} &\\
\hhline{|-||-|}
\end{tabular}\endgroup}%
\begin{document}
\centering\answerboxes
\end{document}