Document Classesexamdesign | Renumbering matching Choices

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
namphol
Posts: 2
Joined: Sun May 27, 2012 7:54 pm

examdesign | Renumbering matching Choices

Post by namphol »

I have been using this class for creating my exams for several years now, and it is an excellent piece of work! With my class sizes increasing, I've been wanting to use scantrons for part of my exams. Of course, multiple choice is not a problem, but I'm trying to come up with a way to incorporate matching as well. In order to do this, I would need the matching choices to be numbered differently. Since I only ask 10 matching questions, I was thinking to label them A, B, C, D, E, AB, AC, AD, AE, and BC (or something similar). I've read some resources, and the alphalph package can be used to allow numbering with two letters, but I need to change how the matching section is numbered. I toyed with making changes here and there to examdesign class, but I'm afraid it's over my head! Any pointers or assistance anyone can give me would be greatly appreciated!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

namphol
Posts: 2
Joined: Sun May 27, 2012 7:54 pm

examdesign | Renumbering matching Choices

Post by namphol »

Thank you to everyone who took the time to read this. I found a way to make it work for me...sort of. Read on if you're interested.

I made two changes to the examdesign class file. First, I changed line 853 from

Code: Select all

\xdef\csname matching@answer@\exam@tagendcsname{(\alph{enumi})}}
to

Code: Select all

\xdef\csname matching@answer@\exam@tagendcsname{(\arabic{enumi})}}
This basically just changes how the key formats the answers from (a), (b), (c), etc. to (1), (2), (3), etc.

Second, I changed line 1114 from

Code: Select all

\def\exam@EnumerateStyle{(a)}
to

Code: Select all

\def\exam@EnumerateStyle{}
What this does is create a list of matching answers without sequentially lettered choices. In my exam file, I then have to add the letters I want for each choice (I chose to use AB, AC, AD, etc.). The only problem with this is that the letter combinations for each choice will not be sequential; each version of the exam will scramble them differently. Also, the answer key is confusing, but I figure I can reformat it with the original class file.

Not the best solution, but I suppose it will do.
Post Reply