#StackBounty: #longtable #exam #automation Redefining questions environment in exam to use longtable

Bounty: 50

I am trying to redefine the questions environment and take each question and put it inside a longtable environment so that the first column will have the question number, and the middle will have the question content and the last column will have the points for the question.

Our faculties may type the questions using exam class only. And I strongly believe there should be a way to redefine the way the questions are printed. I have looked into the exam.cls but does not able to figure out where is the exact command which puts them in the list and how it adds the points in the margin or wherever required.

MWE:

documentclass[addpoints]{exam}
usepackage{lipsum}



begin{document}
begin{questions}
question First question,
begin{parts}
    part[5] First part
    part[5] Second Part
end{parts}
question Second question,
begin{parts}
    part[5] First part
    part[5] Second Part
end{parts}
question[10] Third question with no parts...
 
end{questions}

The expected output:

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.