eforms 是否有与 hyperref forms 选项等效的选项?

eforms 是否有与 hyperref forms 选项等效的选项?

我正在尝试预设其中一个单选按钮。到目前为止,我所做的尝试均未奏效。

\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}

在此处输入图片描述

相关内容