[texhax] multiplechoice in LaTeX
Philip Taylor (Webmaster, Ret'd)
P.Taylor at Rhul.Ac.Uk
Sat Dec 25 22:25:23 CET 2010
Vafa Khalighi wrote:
> I want to define a macro :
>
> \newcommand\answer[4]{.....}
>
> If the length of all arguments 1 to 4 is less than 0.25\textwidth, then ...
> if the length of one of the arguments from 1 to 4 is less than
> 0.5\textwidth but greater than 0.25\textwidth provided the length of no
> arguments from 1 to 4 is greater than 0.5\textwidth, then ...
> and finally if the length of any arguments from 1 to 4 is bigger than
> \textwidth, then...
> No worries, I just did it.
What did you do for the cases where
(a) the length of one of the arguments from 1 to 4 is less than
0.5\textwidth but greater than 0.25\textwidth and the length of at least
one argument from 1 to 4 is greater than 0.5\textwidth,
(b) then length of all of the arguments from 1 to 4
is greater than 0,5\textwidth but less than \textwidth
as neither of these appear covered by your original desiderata.
Philip Taylor
More information about the texhax
mailing list