Adjusting Vertical Spacing & \pointsdroppedatright in Exam Document Class

  • Context: LaTeX 
  • Thread starter Thread starter manchung214
  • Start date Start date
  • Tags Tags
    Class Exam Vertical
Click For Summary
SUMMARY

This discussion focuses on adjusting vertical spacing and the use of the \pointsdroppedatright function in the LaTeX exam document class. Users can modify vertical spacing between questions and subquestions using the \vspace or \addvspace commands, including negative values for reduced spacing. To correctly position the "(7 marks)" notation at the right margin without extending into the margin, the suggested command is \hbox to 6cm{\leaders\hrule\hfil}. These methods enhance the formatting of exam papers created with the exam.cls class.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Understanding of the exam document class in LaTeX
  • Knowledge of LaTeX spacing commands such as \vspace and \addvspace
  • Experience with LaTeX box commands like \hbox
NEXT STEPS
  • Research LaTeX exam document class features and customization options
  • Learn how to use \vspace and \addvspace for vertical spacing adjustments
  • Explore the use of \hbox and other box commands in LaTeX for layout control
  • Investigate additional formatting techniques for exam papers in LaTeX
USEFUL FOR

This discussion is beneficial for LaTeX users, particularly educators and students creating exam papers, as well as anyone looking to refine document formatting in the exam document class.

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
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
11K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K