How to change position of marks in a question paper template

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am using exam document class for question paper setting. In the generated pdf marks are almost on the right boundary as I take printout. Can I shift it slightly left or at least at right-aligned with the text? MWE is given as:



documentclass[12pt]exam
usepackage[margin = 2.2cm]geometry
linespread1
usepackageamsmath
usepackageamsfonts
usepackageenumerate
begindocument
begincenter
textbfName of Institutionnewline
textbfName of Departmentnewline
textbfName of Examinationnewline
endcenter
textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline

beginquestions
pointsdroppedatright
question
beginparts
part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
beginenumerate[i.]
item Type question here XXXXXXX.
item YYYYYY.
item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
endenumerate
textbfdroppoints
endparts
question
beginparts
part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
textbfdroppoints
endparts
end questions
enddocument









share|improve this question

























    up vote
    1
    down vote

    favorite












    I am using exam document class for question paper setting. In the generated pdf marks are almost on the right boundary as I take printout. Can I shift it slightly left or at least at right-aligned with the text? MWE is given as:



    documentclass[12pt]exam
    usepackage[margin = 2.2cm]geometry
    linespread1
    usepackageamsmath
    usepackageamsfonts
    usepackageenumerate
    begindocument
    begincenter
    textbfName of Institutionnewline
    textbfName of Departmentnewline
    textbfName of Examinationnewline
    endcenter
    textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
    textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline

    beginquestions
    pointsdroppedatright
    question
    beginparts
    part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
    part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
    beginenumerate[i.]
    item Type question here XXXXXXX.
    item YYYYYY.
    item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
    endenumerate
    textbfdroppoints
    endparts
    question
    beginparts
    part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
    part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
    textbfdroppoints
    endparts
    end questions
    enddocument









    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am using exam document class for question paper setting. In the generated pdf marks are almost on the right boundary as I take printout. Can I shift it slightly left or at least at right-aligned with the text? MWE is given as:



      documentclass[12pt]exam
      usepackage[margin = 2.2cm]geometry
      linespread1
      usepackageamsmath
      usepackageamsfonts
      usepackageenumerate
      begindocument
      begincenter
      textbfName of Institutionnewline
      textbfName of Departmentnewline
      textbfName of Examinationnewline
      endcenter
      textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
      textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline

      beginquestions
      pointsdroppedatright
      question
      beginparts
      part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
      part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
      beginenumerate[i.]
      item Type question here XXXXXXX.
      item YYYYYY.
      item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
      endenumerate
      textbfdroppoints
      endparts
      question
      beginparts
      part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
      part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
      textbfdroppoints
      endparts
      end questions
      enddocument









      share|improve this question













      I am using exam document class for question paper setting. In the generated pdf marks are almost on the right boundary as I take printout. Can I shift it slightly left or at least at right-aligned with the text? MWE is given as:



      documentclass[12pt]exam
      usepackage[margin = 2.2cm]geometry
      linespread1
      usepackageamsmath
      usepackageamsfonts
      usepackageenumerate
      begindocument
      begincenter
      textbfName of Institutionnewline
      textbfName of Departmentnewline
      textbfName of Examinationnewline
      endcenter
      textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
      textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline

      beginquestions
      pointsdroppedatright
      question
      beginparts
      part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
      part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
      beginenumerate[i.]
      item Type question here XXXXXXX.
      item YYYYYY.
      item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
      endenumerate
      textbfdroppoints
      endparts
      question
      beginparts
      part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
      part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
      textbfdroppoints
      endparts
      end questions
      enddocument






      exam






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      Ehsa

      5922415




      5922415




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote













          Just redefine droppoints.



          documentclass[12pt]exam
          usepackage[margin = 2.2cm]geometry
          linespread1
          usepackageamsmath
          usepackageamsfonts
          usepackageenumerate

          makeatletter
          defdroppoints%
          leavevmodeunskipnobreakhfill
          rlaphskiprightmargin % Defined by the list environment
          llappadded@point@block%
          % rlap
          par

          makeatother


          begindocument
          begincenter
          textbfName of Institutionnewline
          textbfName of Departmentnewline
          textbfName of Examinationnewline
          endcenter
          textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
          textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


          beginquestions
          pointsdroppedatright
          question
          beginparts
          part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
          part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
          beginenumerate[i.]
          item Type question here XXXXXXX.
          item YYYYYY.
          item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
          endenumerate
          textbfdroppoints
          endparts
          question
          beginparts
          part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
          part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
          textbfdroppoints
          endparts
          end questions
          enddocument





          share|improve this answer




















          • Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
            – Skillmon
            34 mins ago

















          up vote
          2
          down vote













          Just a minor improvement over @JesseopdenBrouw's answer (seriously if anyone upvotes this answer, consider upvoting his as well, all the work is done by him, I only included a feasible break point).



          The following does jump to the next line and print the points there if in the last line of the question is not enough space (2em plus the space taken by the points). Also I included the textbf into the definition of droppoints. In the following MWE one can see the effects of this changes in question 1.a.



          documentclass[12pt]exam
          usepackage[margin = 2.2cm]geometry
          linespread1
          usepackageamsmath
          usepackageamsfonts
          usepackageenumerate

          makeatletter
          newboxdroppoints@box
          defdroppoints%
          leavevmodeunskipnobreakhfillpenalty50hskip2em
          nullnobreakhfill
          textbfpadded@point@block%
          par

          makeatother


          begindocument
          begincenter
          textbfName of Institutionnewline
          textbfName of Departmentnewline
          textbfName of Examinationnewline
          endcenter
          textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
          textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


          beginquestions
          pointsdroppedatright
          question
          beginparts
          part[3] Type question here. Type question here Type question here Type question
          here Type question here Type question here Type question here Type question here
          Type questdroppoints
          part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
          beginenumerate[i.]
          item Type question here XXXXXXX.
          item YYYYYY.
          item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
          endenumerate
          droppoints
          endparts
          question
          beginparts
          part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here droppoints
          part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
          droppoints
          endparts
          end questions
          enddocument


          enter image description here






          share|improve this answer





























            up vote
            0
            down vote













            a variation of nice Jesse op den Brouw's answer:



            • different position of droppoints


            • some off-topic changes of code



              documentclass[12pt]exam
              usepackage[showframe, % in real document remove this option
              margin=22mm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumitem
              setlist[enumerate]label=roman*.,after=vspace-0.5baselineskip
              makeatletter
              defdroppoints%
              leavevmodeunskipnobreakhfill
              rlaphskipmarginparseppadded@point@block%

              makeatother


              begindocument
              begincenterbfseries
              Name of Institution\
              Name of Department\
              Name of Examination
              endcenter
              textbfCourse Code:XXX (YYYYYY) hfilltextbfSemester: 4th \
              textbfTime: 2 Hrs hfill Max. Marks: 50 \

              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              textbfdroppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              endparts
              end questions


            enter image description here






            share|improve this answer




















              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: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453046%2fhow-to-change-position-of-marks-in-a-question-paper-template%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Just redefine droppoints.



              documentclass[12pt]exam
              usepackage[margin = 2.2cm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumerate

              makeatletter
              defdroppoints%
              leavevmodeunskipnobreakhfill
              rlaphskiprightmargin % Defined by the list environment
              llappadded@point@block%
              % rlap
              par

              makeatother


              begindocument
              begincenter
              textbfName of Institutionnewline
              textbfName of Departmentnewline
              textbfName of Examinationnewline
              endcenter
              textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
              textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate[i.]
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              textbfdroppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              endparts
              end questions
              enddocument





              share|improve this answer




















              • Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
                – Skillmon
                34 mins ago














              up vote
              2
              down vote













              Just redefine droppoints.



              documentclass[12pt]exam
              usepackage[margin = 2.2cm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumerate

              makeatletter
              defdroppoints%
              leavevmodeunskipnobreakhfill
              rlaphskiprightmargin % Defined by the list environment
              llappadded@point@block%
              % rlap
              par

              makeatother


              begindocument
              begincenter
              textbfName of Institutionnewline
              textbfName of Departmentnewline
              textbfName of Examinationnewline
              endcenter
              textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
              textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate[i.]
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              textbfdroppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              endparts
              end questions
              enddocument





              share|improve this answer




















              • Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
                – Skillmon
                34 mins ago












              up vote
              2
              down vote










              up vote
              2
              down vote









              Just redefine droppoints.



              documentclass[12pt]exam
              usepackage[margin = 2.2cm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumerate

              makeatletter
              defdroppoints%
              leavevmodeunskipnobreakhfill
              rlaphskiprightmargin % Defined by the list environment
              llappadded@point@block%
              % rlap
              par

              makeatother


              begindocument
              begincenter
              textbfName of Institutionnewline
              textbfName of Departmentnewline
              textbfName of Examinationnewline
              endcenter
              textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
              textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate[i.]
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              textbfdroppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              endparts
              end questions
              enddocument





              share|improve this answer












              Just redefine droppoints.



              documentclass[12pt]exam
              usepackage[margin = 2.2cm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumerate

              makeatletter
              defdroppoints%
              leavevmodeunskipnobreakhfill
              rlaphskiprightmargin % Defined by the list environment
              llappadded@point@block%
              % rlap
              par

              makeatother


              begindocument
              begincenter
              textbfName of Institutionnewline
              textbfName of Departmentnewline
              textbfName of Examinationnewline
              endcenter
              textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
              textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate[i.]
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              textbfdroppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here textbfdroppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              textbfdroppoints
              endparts
              end questions
              enddocument






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 46 mins ago









              Jesse op den Brouw

              279118




              279118











              • Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
                – Skillmon
                34 mins ago
















              • Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
                – Skillmon
                34 mins ago















              Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
              – Skillmon
              34 mins ago




              Just a tip for the future: It is usually a good idea to include an image of the new output. This way any future visitors (and the OP of the question) can quickly verify that this is what they wanted/were looking for. On Linux you can convert a PDF to an image with pdftocairo or imagemagick's convert.
              – Skillmon
              34 mins ago










              up vote
              2
              down vote













              Just a minor improvement over @JesseopdenBrouw's answer (seriously if anyone upvotes this answer, consider upvoting his as well, all the work is done by him, I only included a feasible break point).



              The following does jump to the next line and print the points there if in the last line of the question is not enough space (2em plus the space taken by the points). Also I included the textbf into the definition of droppoints. In the following MWE one can see the effects of this changes in question 1.a.



              documentclass[12pt]exam
              usepackage[margin = 2.2cm]geometry
              linespread1
              usepackageamsmath
              usepackageamsfonts
              usepackageenumerate

              makeatletter
              newboxdroppoints@box
              defdroppoints%
              leavevmodeunskipnobreakhfillpenalty50hskip2em
              nullnobreakhfill
              textbfpadded@point@block%
              par

              makeatother


              begindocument
              begincenter
              textbfName of Institutionnewline
              textbfName of Departmentnewline
              textbfName of Examinationnewline
              endcenter
              textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
              textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


              beginquestions
              pointsdroppedatright
              question
              beginparts
              part[3] Type question here. Type question here Type question here Type question
              here Type question here Type question here Type question here Type question here
              Type questdroppoints
              part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              beginenumerate[i.]
              item Type question here XXXXXXX.
              item YYYYYY.
              item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
              endenumerate
              droppoints
              endparts
              question
              beginparts
              part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here droppoints
              part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
              droppoints
              endparts
              end questions
              enddocument


              enter image description here






              share|improve this answer


























                up vote
                2
                down vote













                Just a minor improvement over @JesseopdenBrouw's answer (seriously if anyone upvotes this answer, consider upvoting his as well, all the work is done by him, I only included a feasible break point).



                The following does jump to the next line and print the points there if in the last line of the question is not enough space (2em plus the space taken by the points). Also I included the textbf into the definition of droppoints. In the following MWE one can see the effects of this changes in question 1.a.



                documentclass[12pt]exam
                usepackage[margin = 2.2cm]geometry
                linespread1
                usepackageamsmath
                usepackageamsfonts
                usepackageenumerate

                makeatletter
                newboxdroppoints@box
                defdroppoints%
                leavevmodeunskipnobreakhfillpenalty50hskip2em
                nullnobreakhfill
                textbfpadded@point@block%
                par

                makeatother


                begindocument
                begincenter
                textbfName of Institutionnewline
                textbfName of Departmentnewline
                textbfName of Examinationnewline
                endcenter
                textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
                textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


                beginquestions
                pointsdroppedatright
                question
                beginparts
                part[3] Type question here. Type question here Type question here Type question
                here Type question here Type question here Type question here Type question here
                Type questdroppoints
                part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                beginenumerate[i.]
                item Type question here XXXXXXX.
                item YYYYYY.
                item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                endenumerate
                droppoints
                endparts
                question
                beginparts
                part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here droppoints
                part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                droppoints
                endparts
                end questions
                enddocument


                enter image description here






                share|improve this answer
























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Just a minor improvement over @JesseopdenBrouw's answer (seriously if anyone upvotes this answer, consider upvoting his as well, all the work is done by him, I only included a feasible break point).



                  The following does jump to the next line and print the points there if in the last line of the question is not enough space (2em plus the space taken by the points). Also I included the textbf into the definition of droppoints. In the following MWE one can see the effects of this changes in question 1.a.



                  documentclass[12pt]exam
                  usepackage[margin = 2.2cm]geometry
                  linespread1
                  usepackageamsmath
                  usepackageamsfonts
                  usepackageenumerate

                  makeatletter
                  newboxdroppoints@box
                  defdroppoints%
                  leavevmodeunskipnobreakhfillpenalty50hskip2em
                  nullnobreakhfill
                  textbfpadded@point@block%
                  par

                  makeatother


                  begindocument
                  begincenter
                  textbfName of Institutionnewline
                  textbfName of Departmentnewline
                  textbfName of Examinationnewline
                  endcenter
                  textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
                  textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


                  beginquestions
                  pointsdroppedatright
                  question
                  beginparts
                  part[3] Type question here. Type question here Type question here Type question
                  here Type question here Type question here Type question here Type question here
                  Type questdroppoints
                  part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                  beginenumerate[i.]
                  item Type question here XXXXXXX.
                  item YYYYYY.
                  item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                  endenumerate
                  droppoints
                  endparts
                  question
                  beginparts
                  part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here droppoints
                  part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                  droppoints
                  endparts
                  end questions
                  enddocument


                  enter image description here






                  share|improve this answer














                  Just a minor improvement over @JesseopdenBrouw's answer (seriously if anyone upvotes this answer, consider upvoting his as well, all the work is done by him, I only included a feasible break point).



                  The following does jump to the next line and print the points there if in the last line of the question is not enough space (2em plus the space taken by the points). Also I included the textbf into the definition of droppoints. In the following MWE one can see the effects of this changes in question 1.a.



                  documentclass[12pt]exam
                  usepackage[margin = 2.2cm]geometry
                  linespread1
                  usepackageamsmath
                  usepackageamsfonts
                  usepackageenumerate

                  makeatletter
                  newboxdroppoints@box
                  defdroppoints%
                  leavevmodeunskipnobreakhfillpenalty50hskip2em
                  nullnobreakhfill
                  textbfpadded@point@block%
                  par

                  makeatother


                  begindocument
                  begincenter
                  textbfName of Institutionnewline
                  textbfName of Departmentnewline
                  textbfName of Examinationnewline
                  endcenter
                  textbfCourse Code:XXX (YYYYYY) hspace1cm textbfSemester: 4th newline
                  textbfTime: 2 Hrs hspace3cm hspace7cm Max. Marks: 50newline


                  beginquestions
                  pointsdroppedatright
                  question
                  beginparts
                  part[3] Type question here. Type question here Type question here Type question
                  here Type question here Type question here Type question here Type question here
                  Type questdroppoints
                  part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                  beginenumerate[i.]
                  item Type question here XXXXXXX.
                  item YYYYYY.
                  item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                  endenumerate
                  droppoints
                  endparts
                  question
                  beginparts
                  part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here droppoints
                  part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                  droppoints
                  endparts
                  end questions
                  enddocument


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 9 mins ago

























                  answered 16 mins ago









                  Skillmon

                  18.6k11637




                  18.6k11637




















                      up vote
                      0
                      down vote













                      a variation of nice Jesse op den Brouw's answer:



                      • different position of droppoints


                      • some off-topic changes of code



                        documentclass[12pt]exam
                        usepackage[showframe, % in real document remove this option
                        margin=22mm]geometry
                        linespread1
                        usepackageamsmath
                        usepackageamsfonts
                        usepackageenumitem
                        setlist[enumerate]label=roman*.,after=vspace-0.5baselineskip
                        makeatletter
                        defdroppoints%
                        leavevmodeunskipnobreakhfill
                        rlaphskipmarginparseppadded@point@block%

                        makeatother


                        begindocument
                        begincenterbfseries
                        Name of Institution\
                        Name of Department\
                        Name of Examination
                        endcenter
                        textbfCourse Code:XXX (YYYYYY) hfilltextbfSemester: 4th \
                        textbfTime: 2 Hrs hfill Max. Marks: 50 \

                        beginquestions
                        pointsdroppedatright
                        question
                        beginparts
                        part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                        textbfdroppoints
                        part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                        beginenumerate
                        item Type question here XXXXXXX.
                        item YYYYYY.
                        item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                        endenumerate
                        textbfdroppoints
                        endparts
                        question
                        beginparts
                        part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                        textbfdroppoints
                        part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                        textbfdroppoints
                        endparts
                        end questions


                      enter image description here






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        a variation of nice Jesse op den Brouw's answer:



                        • different position of droppoints


                        • some off-topic changes of code



                          documentclass[12pt]exam
                          usepackage[showframe, % in real document remove this option
                          margin=22mm]geometry
                          linespread1
                          usepackageamsmath
                          usepackageamsfonts
                          usepackageenumitem
                          setlist[enumerate]label=roman*.,after=vspace-0.5baselineskip
                          makeatletter
                          defdroppoints%
                          leavevmodeunskipnobreakhfill
                          rlaphskipmarginparseppadded@point@block%

                          makeatother


                          begindocument
                          begincenterbfseries
                          Name of Institution\
                          Name of Department\
                          Name of Examination
                          endcenter
                          textbfCourse Code:XXX (YYYYYY) hfilltextbfSemester: 4th \
                          textbfTime: 2 Hrs hfill Max. Marks: 50 \

                          beginquestions
                          pointsdroppedatright
                          question
                          beginparts
                          part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                          textbfdroppoints
                          part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                          beginenumerate
                          item Type question here XXXXXXX.
                          item YYYYYY.
                          item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                          endenumerate
                          textbfdroppoints
                          endparts
                          question
                          beginparts
                          part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                          textbfdroppoints
                          part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                          textbfdroppoints
                          endparts
                          end questions


                        enter image description here






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          a variation of nice Jesse op den Brouw's answer:



                          • different position of droppoints


                          • some off-topic changes of code



                            documentclass[12pt]exam
                            usepackage[showframe, % in real document remove this option
                            margin=22mm]geometry
                            linespread1
                            usepackageamsmath
                            usepackageamsfonts
                            usepackageenumitem
                            setlist[enumerate]label=roman*.,after=vspace-0.5baselineskip
                            makeatletter
                            defdroppoints%
                            leavevmodeunskipnobreakhfill
                            rlaphskipmarginparseppadded@point@block%

                            makeatother


                            begindocument
                            begincenterbfseries
                            Name of Institution\
                            Name of Department\
                            Name of Examination
                            endcenter
                            textbfCourse Code:XXX (YYYYYY) hfilltextbfSemester: 4th \
                            textbfTime: 2 Hrs hfill Max. Marks: 50 \

                            beginquestions
                            pointsdroppedatright
                            question
                            beginparts
                            part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            beginenumerate
                            item Type question here XXXXXXX.
                            item YYYYYY.
                            item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                            endenumerate
                            textbfdroppoints
                            endparts
                            question
                            beginparts
                            part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            endparts
                            end questions


                          enter image description here






                          share|improve this answer












                          a variation of nice Jesse op den Brouw's answer:



                          • different position of droppoints


                          • some off-topic changes of code



                            documentclass[12pt]exam
                            usepackage[showframe, % in real document remove this option
                            margin=22mm]geometry
                            linespread1
                            usepackageamsmath
                            usepackageamsfonts
                            usepackageenumitem
                            setlist[enumerate]label=roman*.,after=vspace-0.5baselineskip
                            makeatletter
                            defdroppoints%
                            leavevmodeunskipnobreakhfill
                            rlaphskipmarginparseppadded@point@block%

                            makeatother


                            begindocument
                            begincenterbfseries
                            Name of Institution\
                            Name of Department\
                            Name of Examination
                            endcenter
                            textbfCourse Code:XXX (YYYYYY) hfilltextbfSemester: 4th \
                            textbfTime: 2 Hrs hfill Max. Marks: 50 \

                            beginquestions
                            pointsdroppedatright
                            question
                            beginparts
                            part[3] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            part[7] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            beginenumerate
                            item Type question here XXXXXXX.
                            item YYYYYY.
                            item Type question here Type question here Type question here Type question here Type question here Type question here Type question here Type question here
                            endenumerate
                            textbfdroppoints
                            endparts
                            question
                            beginparts
                            part[5] Type question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            part[5] Type part 2 of question here. Type question here Type question here Type question here Type question here Type question here Type question here
                            textbfdroppoints
                            endparts
                            end questions


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 14 mins ago









                          Zarko

                          113k862151




                          113k862151



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453046%2fhow-to-change-position-of-marks-in-a-question-paper-template%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              Confectionery