Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 ?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer

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} 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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