2

I'm using a working template containing this line below and am wondering what unit is used? I'd expect at least e.g. 3.18pt to be necessary.

\vspace{3.18\baselineskip}
  • 4
    \baselineskip is already a "length" and contains the units inside it! If you use something else like a number or a variable that is a number you HAVE to include the units too inside the \vspace command as you expect. PS:You can print its value by using the command \the\baselineskip – koleygr Jul 15 at 12:07
6

The control sequence \baselineskip in that context denotes “whatever value is currently stored in the parameter \baselineskip”.

Internally this is just a number, but it's convenient to think it as expressed in unit pt.

So you are asking TeX to multiply that length by the factor 3.18; if \baselineskip happens to be 12pt, the result will be a vertical space of 38.16pt.

  • In conclusion I understood if only a digit is used, pt is the (default) unit, is that correct? Grepping through the complete file didn't reveal any baselineskip <> pt relation – AikenCura Jul 15 at 13:46
  • 3
    @AikenCura No, pt is not implied as a default: \baselineskip refers to a length and it's immaterial if it is stored in points, millimeters or yards. You're just multiplying that length by 3.18. – egreg Jul 15 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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