8

I am trying to create a formular, this is my 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}

And this is what i get: result of my mwe

How can i align the "Charmander" to the "very" in the second line ?

5

You can set the choice menu with items in a regular itemize:

enter image description here

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

To hide the optional argument of \ChoiceMenu, wrap it in a braced group {...}. The advantage of the above method is that list items will wrap across the page boundary.

5

With a \parbox?

enter image description here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.