TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just curious why \doublespacing seems broken in a minimal document. It works ok when the documentclass is set to article.







First error is

! Undefined control sequence.

\setstretch ...ef \baselinestretch {#1}\@currsize 
share|improve this question
up vote 9 down vote accepted

setspace depends on \@currsize being set by the documentclass to set the current font size. The minimal document class is very minimal and doesn't contain this macro. It doesn't even have things like \large.

share|improve this answer
Indeed, the minimal class is unfortunately pretty bad at supporting a lot of standard stuff, hence the recommendation that minimal examples should not use it! – Joseph Wright May 12 '11 at 16:29

The UC Berkeley thesis class (and apparently others) have this problem as well. A workaround is to include the following code before using the spacing commands from setspace:

share|improve this answer

Your Answer


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.