Problem with multicols in a question using exam.cls











up vote
0
down vote

favorite












I am creating an answer key booklet using exam.cls for a question sheet that I made for some students.



Along with that, I've used the multicol package to create 2 columns within a question that is composed of multiple parts. However, I am faced with the issue of the part letters being in the wrong places:



Picture of letters being in the wrong place



As you can see, part (c) and (e) are placed at the positions of (d) and (f) respectively, causing quite a mess. I would like to avoid to repeating the question's text after question.
Here is my code:



documentclass[11pt]{exam}
usepackage{multicol}
begin{document}
begin{questions}
question
begin{parts}
begin{multicols}{2}
part answer
part answer
end{multicols}
begin{multicols}{2}
part answer
part answer
end{multicols}
begin{multicols}{2}
part answer
part answer
end{multicols}
end{parts}
end{questions}
end{document}


I understand that the parts environment is used as the text for question, but I can't understand why the output appears like that. How can I modify my code to fix this problem? And is using exam.cls inappropriate for this purpose?










share|improve this question







New contributor




ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    I am creating an answer key booklet using exam.cls for a question sheet that I made for some students.



    Along with that, I've used the multicol package to create 2 columns within a question that is composed of multiple parts. However, I am faced with the issue of the part letters being in the wrong places:



    Picture of letters being in the wrong place



    As you can see, part (c) and (e) are placed at the positions of (d) and (f) respectively, causing quite a mess. I would like to avoid to repeating the question's text after question.
    Here is my code:



    documentclass[11pt]{exam}
    usepackage{multicol}
    begin{document}
    begin{questions}
    question
    begin{parts}
    begin{multicols}{2}
    part answer
    part answer
    end{multicols}
    begin{multicols}{2}
    part answer
    part answer
    end{multicols}
    begin{multicols}{2}
    part answer
    part answer
    end{multicols}
    end{parts}
    end{questions}
    end{document}


    I understand that the parts environment is used as the text for question, but I can't understand why the output appears like that. How can I modify my code to fix this problem? And is using exam.cls inappropriate for this purpose?










    share|improve this question







    New contributor




    ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am creating an answer key booklet using exam.cls for a question sheet that I made for some students.



      Along with that, I've used the multicol package to create 2 columns within a question that is composed of multiple parts. However, I am faced with the issue of the part letters being in the wrong places:



      Picture of letters being in the wrong place



      As you can see, part (c) and (e) are placed at the positions of (d) and (f) respectively, causing quite a mess. I would like to avoid to repeating the question's text after question.
      Here is my code:



      documentclass[11pt]{exam}
      usepackage{multicol}
      begin{document}
      begin{questions}
      question
      begin{parts}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      end{parts}
      end{questions}
      end{document}


      I understand that the parts environment is used as the text for question, but I can't understand why the output appears like that. How can I modify my code to fix this problem? And is using exam.cls inappropriate for this purpose?










      share|improve this question







      New contributor




      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am creating an answer key booklet using exam.cls for a question sheet that I made for some students.



      Along with that, I've used the multicol package to create 2 columns within a question that is composed of multiple parts. However, I am faced with the issue of the part letters being in the wrong places:



      Picture of letters being in the wrong place



      As you can see, part (c) and (e) are placed at the positions of (d) and (f) respectively, causing quite a mess. I would like to avoid to repeating the question's text after question.
      Here is my code:



      documentclass[11pt]{exam}
      usepackage{multicol}
      begin{document}
      begin{questions}
      question
      begin{parts}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      begin{multicols}{2}
      part answer
      part answer
      end{multicols}
      end{parts}
      end{questions}
      end{document}


      I understand that the parts environment is used as the text for question, but I can't understand why the output appears like that. How can I modify my code to fix this problem? And is using exam.cls inappropriate for this purpose?







      multicol exam






      share|improve this question







      New contributor




      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 18 mins ago









      ShibaNeko

      1




      1




      New contributor




      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      ShibaNeko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          ShibaNeko is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461522%2fproblem-with-multicols-in-a-question-using-exam-cls%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          ShibaNeko is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          ShibaNeko is a new contributor. Be nice, and check out our Code of Conduct.













          ShibaNeko is a new contributor. Be nice, and check out our Code of Conduct.












          ShibaNeko is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461522%2fproblem-with-multicols-in-a-question-using-exam-cls%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)