LaTeX forum ⇒ Text Formatting5 selection switch question

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
mshj
Posts: 12
Joined: Tue Jul 15, 2014 3:41 pm

5 selection switch question

Postby mshj » Tue Jul 15, 2014 4:13 pm

hi
(excuse me, my English is very bad!)
i need to define 5 selection question in my book, for example:
2+2=?
1)1 2)2 3)3 4)4 5)5
i use this template,everything in this template is automatically, and i have not any problem in 4-choice exam, but i need to design a 5-choice exam on this templete. everything can help me?
Attachments
exam.tex
(5.57 KiB) Downloaded 234 times

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jul 16, 2014 10:22 am

Use the proper tool, for example the exam class. It can do much more.
  1. \documentclass[
  2. % answers %JB: Comment this in and see the difference
  3. ]{exam}
  4. \begin{document}
  5. \begin{questions}
  6. \question $2+3=$
  7. \begin{choices}
  8. \choice 1
  9. \choice 4
  10. \choice 8
  11. \CorrectChoice 5
  12. \choice 42
  13. \end{choices}
  14. \question $1+3=$
  15. \begin{oneparchoices}
  16. \choice 1
  17. \CorrectChoice 4
  18. \choice 8
  19. \choice 5
  20. \choice 42
  21. \end{oneparchoices}
  22. \end{questions}
  23. \end{document}


Package exsheets might be of interest as well, but it doesn't support multiple choice questions.

My personal Opinion: Don't use this for maths.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mshj
Posts: 12
Joined: Tue Jul 15, 2014 3:41 pm

Postby mshj » Wed Jul 16, 2014 4:07 pm

tank you, but i want to use this template. becouse exam document class have problem with xepersian package and persian alphbet! also my template aoutomaticaly arreng choices, for example if question choice is long, it's arrang choices in 2 line, if so long it's arrange them in 4 line! it's can work in any language and any symbol or alphbet!

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jul 16, 2014 5:10 pm

Your template is pretty simple, but changing it needs some time/effort.

What is the problem with xepersian and exam? I added the package and everything seems fine (nothing exploded, no blood in the pdf file, but then again i can't read persian, so i need your input on what is wrong ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jul 16, 2014 5:28 pm

I just had a look at the documentation of package xepersian. Section 6.2 describes how to typeset multiple-choice questions. Please have a look at it.

EDIT: http://tex.stackexchange.com/questions/ ... ion-in-exa
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mshj
Posts: 12
Joined: Tue Jul 15, 2014 3:41 pm

Postby mshj » Wed Jul 16, 2014 10:50 pm

I LOVE YOU...
when i use exam, choice number is hide, but when i use final answer in this page all is OK!
thank you


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 2 guests