Suppress points in exam class

Clash 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
exam
add a comment |Â
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
exam
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 adocumentclasscommand, have a minimal preamble and thenbegindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
â Andrew
2 hours ago
add a comment |Â
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
exam
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
exam
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 adocumentclasscommand, have a minimal preamble and thenbegindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.
â Andrew
2 hours ago
add a comment |Â
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 adocumentclasscommand, have a minimal preamble and thenbegindocument...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
add a comment |Â
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:

With answers:

add a comment |Â
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:

With answers:

add a comment |Â
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:

With answers:

add a comment |Â
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:

With answers:

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:

With answers:

answered 1 hour ago
Torbjørn T.
151k13243424
151k13243424
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password

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
documentclasscommand, have a minimal preamble and thenbegindocument...enddocument. The code should compile and be as small as possible to demonstrate your problem.â Andrew
2 hours ago