
我需要產生以下圖像:
我\boxdot
在 ams 包中找到了一個符號,但找不到任何虛線框。
答案1
這儀表板套件可以調整做你想做的事:
\documentclass{article}
\usepackage{dashbox}
\newcommand\emptydottedbox{%
\setlength{\dashlength}{1pt}% % length of dash + gap
\setlength{\dashdash}{0.5pt}% % length of dash
\setlength{\fboxrule}{0.5pt}% % width of line
\setlength{\fboxsep}{0pt}% % separation between box and inner content
\dbox{\ensuremath{\phantom{x}}}%
}
\begin{document}
\[
\int_{\emptydottedbox}^{\emptydottedbox} \emptydottedbox
\]
\end{document}
答案2
使用 tikz 您可以繪製這些框:
\documentclass{article}
\usepackage{tikz}
\newcommand{\smallbox}{\begin{tikzpicture}
\draw[thick,dotted] (0,0) rectangle
(0.3, 0.3);
\end{tikzpicture}
}
\newcommand{\medbox}{\begin{tikzpicture}
\draw[thick,dotted] (0,0) rectangle
(0.5, 0.5);
\end{tikzpicture}
}
\begin{document}
\[\int_{\smallbox}^{\smallbox} {\medbox} \]
\end{document}
也許您需要稍微調整一下尺寸和/或間距。