我正在尝试预设其中一个单选按钮。到目前为止,我所做的尝试均未奏效。
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{eforms}
\everyRadioButton{
\BC{0 0 0}% black
\BG{1 1 1}% white
\textColor{1 0 0}% red
%\symbolchoice{check}% default
}
\begin{document}
%\maketitle
Here I put some description.
\begin{section}*{Test questions}
\begin{enumerate}
\item Who is guilty?
\begin{itemize}\fboxsep=1pt %gap between box and contents
\item[\radioButton{Q1}{10bp}{10bp}{A}] Person A
\item[{\radioButton[\DV{B}]{Q1}{10bp}{10bp}{B}}] Person B
\item[\radioButton{Q1}{10bp}{10bp}{C}] Person C
\item[\radioButton{Q1}{10bp}{10bp}{D}] Person D
\item[\radioButton{Q1}{10bp}{10bp}{E}] Person E
\end{itemize}
\item What to do?
\end{enumerate}
\end{section}
\end{document}
答案1
您必须设置第一个单选按钮中应检查的值:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{eforms}
\everyRadioButton{
\BC{0 0 0}% black
\BG{1 1 1}% white
\textColor{1 0 0}% red
\symbolchoice{check}% default
}
\begin{document}
\begin{enumerate}
\item Who is guilty?
\begin{itemize}\fboxsep=1pt %gap between box and contents
\item[{\radioButton[\V{B}]{Q1}{10bp}{10bp}{A}}] Person A
\item[{\radioButton[\DV{B}]{Q1}{10bp}{10bp}{B}}] Person B
\item[\radioButton{Q1}{10bp}{10bp}{C}] Person C
\item[\radioButton{Q1}{10bp}{10bp}{D}] Person D
\item[\radioButton{Q1}{10bp}{10bp}{E}] Person E
\end{itemize}
\item What to do?
\end{enumerate}
\end{document}