I'm starting with LaTeX, and there are things that puzzle me. I'm trying to set a length that's the \textwidth minus (let's say for example) two inches. In the preamble, I wrote:
\newlength{\bplen}
\setlength{\bplen}{\textwidth}
\addtolength{\pblen}{-2in}
The compiler tells me:
! Undefined control sequence. <argument> \pblen
l.21 \addtolength{\pblen}{-2in}
! You can't use `blank space ' after \advance.
\addtolength #1#2-<\advance #1
#2\relax
l.21 \addtolength{\pblen}{-2in}
! LaTeX Error: Missing \begin{document}.
I've just defined \bplen and what's that about a missing \begin{document}? Aren't I allowed to set lengths in the preamble?
pblena typo you made in the document? – Seamus Nov 26 '10 at 17:41\thetrick which I'd forgotten about, so that's value added. But I am going to spend the next week trawling through all your posts on this site and downvoting every single one. – Seamus Nov 26 '10 at 18:56