Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is plus0pt and minus0pt automatically added if I write, e.g.,

\setlength{\abovedisplayskip}{1em}
\setlength{\jot}{0pt}
\setlength{\parsep}{0pt}
...
share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

Only if TeX expects a glue. Lengths with skip in the name are always glues (unless the programmer is a bit crazy). But there are some other length "variables". For example \hsize accepts a ⟨dimen⟩, for example \hsize 4in. There the plus and minus do not apply. Charles has shown the example of \hbox that accepts a ⟨dimen⟩ as well.

See chapter 24 of the TeXbook for a complete definition.

share|improve this answer
add comment

Semantically, yes, but not syntactically: \hbox to 10pt doesn't expand to \hbox to 10pt plus 0pt minus 0pt.

share|improve this answer
2  
Well, \hbox doesn't expand at all. But note that you can use a skip register to specify a dimension. The plus and minus parts are simply ignored: `\skip0 2cm plus 5cm minus 2cm \hbox to\skip0{This works, but is overfull.}' –  TH. Sep 23 '10 at 0:34
    
@TH.: Right, and good point about casting skips to dimens. I could make this answer more precise, but Patrick's answer covers the ground. I'd have deleted it for being redundant, but his answer refers to this one. –  Charles Stewart Sep 23 '10 at 6:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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