0

This question already has an answer here:

When I make a cross reference with \ref inside the paragraph, resultant chapter includes extra vertical space after the reference line.

reference inside paragraph

When I make a \ref at the end of the paragraph, space between that paragraph and next paragraph becomes more than normal. So adding a cross reference adds extra vertical space in any case.

reference at the end of paragraph

When I add multiple cross references in a paragraph, this makes this vertical space bigger. For example 4 reference makes that space 4 times bigger.

multiple referemces

What would be the cause for this extra vertical space ?

You can find my example from following link https://www.overleaf.com/read/mvfqcpjxbcwx

marked as duplicate by egreg cross-referencing May 19 '18 at 21:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    You should show (small) examples on this site and not link to files which will be gone in a few days. – Ulrike Fischer May 19 '18 at 20:47
  • 1
    this question is archived forever and would not make sense if the example at the link changes – David Carlisle May 19 '18 at 20:51
  • 3
    better would have been to add the example code so people can run it. – David Carlisle May 19 '18 at 20:59
  • 2
    Wow! \def\thechapter{\vspace*{10pt} \arabic{chapter}} is one of the craziest things I've seen! – egreg May 19 '18 at 21:06
  • 1
    @Mark do you have to use this class file, it is not one I would choose. – David Carlisle May 19 '18 at 21:10
3

the class file has

\def\thechapter{\vspace*{10pt} \arabic{chapter}

which makes no sense and forced 10pt space on the line after any line that references a chapter number (including tables as they use the form chapter.table.

Just delete the \vspace*{10pt}

  • 2
    Instead of changing the class file, one can just add \renewcommand{\thechapter}{\arabic{chapter}} in the preamble. – egreg May 19 '18 at 21:11
  • 1
    @egreg true but the class file is just so blatently unusable, changing it rather than patching it in the document may help the next year's batch of students – David Carlisle May 19 '18 at 21:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.