[texhax] textwidth question take two

Robert E. Harvey, M.D. rharvey at cox-internet.com
Mon Jun 2 22:32:09 CEST 2003

I'm having some problems with the syntax of   
\setlength{\texdtwidth}{lengthcm} as documented in "A Guide to Latex", 
third edition by Kopka and Daly.

If I enter

I get this error on compiling:

This is TeX, Version 3.14159 (Web2C 7.3.1)
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, 
ngerman, i
talian, nohyphenation, loaded.
Document Class: book 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk12.clo)) (bomlesson1.aux)
! Missing number, treated as zero.
<to be read again>
l.6 \setlength\textwidth=
If I enter

I get no error messages on compiling but the text is not extended to the 
desired length.

Changing \setlength{\textwidth}{18cm} to \setlength{\textwidth}{6 in} 
gives me the same results.  What is the correct literal way to define 


Bob Harvey

More information about the texhax mailing list