我正在尝试创建一个公式,这是我的 MWE:
\documentclass[parskip=half]{scrartcl}
\usepackage{hyperref}
\renewcommand{\LayoutChoiceField}[2]{%
\leavevmode #2 #1%
}
\begin{document}
\begin{Form}
Choose wisely:\\ \\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Charmander is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=charmander}\\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Bulbausaur is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=bulbasaur}\\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Squirtle is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=squirtle}
\end{Form}
\end{document}
这就是我得到的:
我怎样才能将“Charmander”与第二行中的“very”对齐?
答案1
您可以设置包含常规项目的选择菜单itemize
:
\documentclass[parskip=half]{scrartcl}
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\renewcommand{\LayoutChoiceField}[2]{%
\leavevmode #2 #1%
}
\begin{document}
\begin{Form}
Choose wisely:
\begin{itemize}
\item[{\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{}{=charmander}}]
Charmander is very very very very very very very very very very very very very
very very very very very very very very very very very good.
\item[{\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{}{=bulbasaur}}]
Bulbausaur is very very very very very very very very very very very very very
very very very very very very very very very very very good.
\item[{\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{}{=squirtle}}]
Squirtle is very very very very very very very very very very very very very
very very very very very very very very very very very good.
\end{itemize}
\end{Form}
\end{document}
要隐藏可选参数\ChoiceMenu
,请将其包装在括号组{
...中}
。上述方法的优点是列表项将跨越页面边界。
答案2
带有\parbox
?
\documentclass[parskip=half]{scrartcl}
\usepackage{hyperref}
\renewcommand{\LayoutChoiceField}[2]{%
\makebox[2.5em][l]{#2}\parbox[t]{\linewidth}{#1}%
}
\begin{document}
\begin{Form}
Choose wisely:\\ \\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Charmander is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=charmander}\\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Bulbausaur is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=bulbasaur}\\
\ChoiceMenu[radio,name=pokemon,radiosymbol=\ding{52}]{Squirtle is very very very very very very very very very very very very very very very very very very very very very very very very good.}{=squirtle}
\end{Form}
\end{document}