我希望能够放置框大小的参数,并能够选择复选框功能的颜色。这是我的最小工作示例:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{enumerate}
\item \textbf{Comments of the Departmental Rep:} \hfil Approved/Not Approved
Approved \CheckBox[name = check1]{ } \hfil Not Approved \CheckBox[name = check2]{ }
\item \textbf{Comments of the Faculty Rep:} \hfil Approved/Not Approved
Approved \CheckBox[name = check1]{ } \hfil Not Approved \CheckBox[name = check2]{ }
\end{enumerate}
\end{document}
我想要的是
我希望盒子更小一些并且边框颜色为黑色。
答案1
这是您所期望的吗?
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\newcommand{\custombox}[1][\relax]{\bgroup\setlength{\fboxsep}{4pt}\setlength{\fboxrule}{0.5pt}\fbox{}\egroup}
\begin{enumerate}
\item \textbf{Comments of the Departmental Rep:} \hfil Approved/Not Approved
Approved \custombox[name = check1]{ } \hfil Not Approved \custombox[name = check2]{ }
\item \textbf{Comments of the Faculty Rep:} \hfil Approved/Not Approved
Approved \custombox[name = check1]{ } \hfil Not Approved \custombox[name = check2]{ }
\end{enumerate}
\end{document}