答案1
hyperref
以下是使用命令的替代方法\CheckBox
:
\documentclass{article}
\usepackage{fontawesome5}
\usepackage{hyperref}
\begin{document}
\begin{Form}
Tick \faCheckSquare[regular] the correct answer.
\begin{enumerate}
\item question text
\begin{enumerate}
\item \CheckBox[name=1first]{first answer}
\item \CheckBox[name=1second]{second answer}
\item \CheckBox[name=1third]{third answer}
\end{enumerate}
\item another question
\begin{enumerate}
\item \CheckBox[name=2first]{first answer}
\item \CheckBox[name=2second]{second answer}
\item \CheckBox[name=2third]{third answer}
\end{enumerate}
\end{enumerate}
\end{Form}
\end{document}
答案2
由于您用 标记了您的问题tikz
,因此让我为您提供一个非常简单的tikz
替代方案。
\documentclass{article}
\usepackage {tikz}
\tikzset
{%
pics/checkbox/.style={% usage: checkbox={0} not ticked / checkbox={1} ticked
code={%
\draw[line join=round,line width=0.15ex] (0,0) rectangle (1.5ex,1.5ex);
\ifnum #1 = 1
\draw[line cap=round,line join=round,line width=0.15ex] (0.5ex,0.8ex) -- (0.75ex,0.55ex) -- (1.25ex,1.05ex);
\fi
}},
}
\begin{document}
Tick \tikz[red]\pic{checkbox={1}}; the bigger answer:
\begin{description}
\item [{\tikz[red]\pic{checkbox={0}};}] Answer A.
{\Large\color{blue}
\item [{\tikz\pic{checkbox={0}};}] Answer B.}
\huge
\item [{\tikz\pic{checkbox={1}};}] Answer C {\bfseries (this one!!!)}.
\end{description}
\end{document}