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.

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

\documentclass{minimal}
\usepackage{setspace}
\doublespacing

\begin{document}

doublespace

these

lines

\end{document}

First error is

! Undefined control sequence.

\setstretch ...ef \baselinestretch {#1}\@currsize 
share|improve this question

2 Answers 2

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
2  
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:

\makeatletter
\let\@currsize\normalsize
\makeatother
share|improve this answer

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.