Suppress points in exam class

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











up vote
3
down vote

favorite












How do I globally suppress the display of points (for questions and for parts) in exam class?



I like to have the points display on the question sheet, but not on the answer (questions+solutions) sheet.



I tried nopointsinmargin but that did not work. It only shifted the displayed points to another location.



A minimum working example:



documentclass[answers]exam
%documentclassexam
%pointsinrightmargin
nopointsinrightmargin
begindocument
beginquestions
question[5]
How long is a piece of string?
beginparts
part[2] Define "piece".
beginsolution
A piece is dots
endsolution
part[3] Define string.
beginsolution
A string is dots
endsolution
endparts
droppoints
endquestions
enddocument









share|improve this question



















  • 1




    Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
    – Andrew
    2 hours ago














up vote
3
down vote

favorite












How do I globally suppress the display of points (for questions and for parts) in exam class?



I like to have the points display on the question sheet, but not on the answer (questions+solutions) sheet.



I tried nopointsinmargin but that did not work. It only shifted the displayed points to another location.



A minimum working example:



documentclass[answers]exam
%documentclassexam
%pointsinrightmargin
nopointsinrightmargin
begindocument
beginquestions
question[5]
How long is a piece of string?
beginparts
part[2] Define "piece".
beginsolution
A piece is dots
endsolution
part[3] Define string.
beginsolution
A string is dots
endsolution
endparts
droppoints
endquestions
enddocument









share|improve this question



















  • 1




    Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
    – Andrew
    2 hours ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











How do I globally suppress the display of points (for questions and for parts) in exam class?



I like to have the points display on the question sheet, but not on the answer (questions+solutions) sheet.



I tried nopointsinmargin but that did not work. It only shifted the displayed points to another location.



A minimum working example:



documentclass[answers]exam
%documentclassexam
%pointsinrightmargin
nopointsinrightmargin
begindocument
beginquestions
question[5]
How long is a piece of string?
beginparts
part[2] Define "piece".
beginsolution
A piece is dots
endsolution
part[3] Define string.
beginsolution
A string is dots
endsolution
endparts
droppoints
endquestions
enddocument









share|improve this question















How do I globally suppress the display of points (for questions and for parts) in exam class?



I like to have the points display on the question sheet, but not on the answer (questions+solutions) sheet.



I tried nopointsinmargin but that did not work. It only shifted the displayed points to another location.



A minimum working example:



documentclass[answers]exam
%documentclassexam
%pointsinrightmargin
nopointsinrightmargin
begindocument
beginquestions
question[5]
How long is a piece of string?
beginparts
part[2] Define "piece".
beginsolution
A piece is dots
endsolution
part[3] Define string.
beginsolution
A string is dots
endsolution
endparts
droppoints
endquestions
enddocument






exam






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago

























asked 3 hours ago









user1583209

28716




28716







  • 1




    Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
    – Andrew
    2 hours ago












  • 1




    Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
    – Andrew
    2 hours ago







1




1




Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
– Andrew
2 hours ago




Welcome to TeX.SX!! Rather than posting code fragments it is better to give a full minimal working example. Currently we have to guess what packages etc you are using and this makes it really hard to help you. A MWE should start with a documentclass command, have a minimal preamble and then begindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
– Andrew
2 hours ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










You could add



ifprintanswerspointformatfi


to the preamble. The pointformat macro is used to define the formatting of the printed points, by leaving it empty nothing is printed. ifprintanswers means that pointformat is only used if the answers option is added to the class options.



Complete code, using an example from the manual.



documentclass[
% answers
]exam
ifprintanswerspointformatfi
begindocument
beginquestions
question[7] Who was the fifth Beatle? answerline[Murray the K]
question[5] What is the answer to the ultimate question of life, the
universe, and everything? answerline[42]
endquestions
enddocument


Without answers option:



enter image description here



With answers:



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%2f452067%2fsuppress-points-in-exam-class%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    You could add



    ifprintanswerspointformatfi


    to the preamble. The pointformat macro is used to define the formatting of the printed points, by leaving it empty nothing is printed. ifprintanswers means that pointformat is only used if the answers option is added to the class options.



    Complete code, using an example from the manual.



    documentclass[
    % answers
    ]exam
    ifprintanswerspointformatfi
    begindocument
    beginquestions
    question[7] Who was the fifth Beatle? answerline[Murray the K]
    question[5] What is the answer to the ultimate question of life, the
    universe, and everything? answerline[42]
    endquestions
    enddocument


    Without answers option:



    enter image description here



    With answers:



    enter image description here






    share|improve this answer
























      up vote
      2
      down vote



      accepted










      You could add



      ifprintanswerspointformatfi


      to the preamble. The pointformat macro is used to define the formatting of the printed points, by leaving it empty nothing is printed. ifprintanswers means that pointformat is only used if the answers option is added to the class options.



      Complete code, using an example from the manual.



      documentclass[
      % answers
      ]exam
      ifprintanswerspointformatfi
      begindocument
      beginquestions
      question[7] Who was the fifth Beatle? answerline[Murray the K]
      question[5] What is the answer to the ultimate question of life, the
      universe, and everything? answerline[42]
      endquestions
      enddocument


      Without answers option:



      enter image description here



      With answers:



      enter image description here






      share|improve this answer






















        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        You could add



        ifprintanswerspointformatfi


        to the preamble. The pointformat macro is used to define the formatting of the printed points, by leaving it empty nothing is printed. ifprintanswers means that pointformat is only used if the answers option is added to the class options.



        Complete code, using an example from the manual.



        documentclass[
        % answers
        ]exam
        ifprintanswerspointformatfi
        begindocument
        beginquestions
        question[7] Who was the fifth Beatle? answerline[Murray the K]
        question[5] What is the answer to the ultimate question of life, the
        universe, and everything? answerline[42]
        endquestions
        enddocument


        Without answers option:



        enter image description here



        With answers:



        enter image description here






        share|improve this answer












        You could add



        ifprintanswerspointformatfi


        to the preamble. The pointformat macro is used to define the formatting of the printed points, by leaving it empty nothing is printed. ifprintanswers means that pointformat is only used if the answers option is added to the class options.



        Complete code, using an example from the manual.



        documentclass[
        % answers
        ]exam
        ifprintanswerspointformatfi
        begindocument
        beginquestions
        question[7] Who was the fifth Beatle? answerline[Murray the K]
        question[5] What is the answer to the ultimate question of life, the
        universe, and everything? answerline[42]
        endquestions
        enddocument


        Without answers option:



        enter image description here



        With answers:



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        Torbjørn T.

        151k13243424




        151k13243424



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452067%2fsuppress-points-in-exam-class%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            White Anglo-Saxon Protestant

            BuddyTV

            Conflict (narrative)