LaTeX Adjusting Vertical Spacing & \pointsdroppedatright in Exam Document Class

AI Thread Summary
The discussion focuses on two main issues encountered while using the exam document class in LaTeX for producing an exam paper. The first issue is related to adjusting the vertical spacing between questions, parts, and subquestions. Suggested solutions include using the \vspace or \addvspace commands, with the option to apply negative values for reduced spacing. The second issue involves positioning the marks correctly, specifically wanting the "(7 marks)" notation to align at the right edge of the text range rather than in the margin. A proposed solution for this includes using the \hbox command to create a horizontal box of a specified length, allowing for better control over the placement of the marks.
manchung214
Messages
2
Reaction score
0
I am currently producing an exam paper. My friend suggests me using the exam document class. It's quite convenient most the time and I almost finish my work. But there are 2 things that I am not satisfied with:

(1)the default spacing between questions, parts, subquestions

How can I adjust the vertical spacing between questions, parts, subquestions?

(2)the \pointsdroppedatright function

I use the following 3 lines of commands to place the marks at the rightmargin of the textwhen a "\droppoints" is placed.

\pointsdroppedatright
\pointpoints{mark}{marks}
\marginpointname{ \points}

But actually I want the " (7 marks) " go to the rightmost of the text text range but not outside it and in the margin.
e.g.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx?
_______________________space______________________(7 marks)

How can I do this?
 
Physics news on Phys.org


Hi there,

I have never used the exam.cls in LaTeX, so I cannot help you there.

But I can try to give some ideas that you might not have tried yet.

For your first problem, the vertical spacing in LaTeX can be done with the \vspace or \addvspace commands. You can use a negative value in this, if you want the spacing to be less than default.

Something like this:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

\vspace{-10cm}

yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

For your second problem, I don't know the \pointsdroppedatright, but from the example your are giving, you might want to try something like this:

\hbox to 6cm{\leaders\hrule\hfil}

which gives a bottom line of 6cm long.

Hope this helps.

Cheers
 
Back
Top