Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Can't use `\spacefactor' in vertical mode

__/ [ Robin Fairbairns ] on Friday 24 March 2006 13:16 \__

>  Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> writes:
>>Greetings, group. A confernece has provided everyone with a template that
>>does not seem to work with my LaTeX installation, not even the example TeX
>>file. When running pdflatex, I get the following for each occurence of
>>citation in the text:
>>
>>,----[ Quote ]
>>| ! You can't use `\spacefactor' in vertical mode.
>>| \@cite ...r \ifx \@tempa \@zero@skip \spacefactor
>>|                                                 1001 \fi \par \ifnum
>>| \spac...
>>| l.124 ...ist of references: Journal~\cite{bulpitt}
>>`----
>>
>>The corresponding file called cite.sty contains:
>>
>>,----[  ]
>>| \def\@cite#1#2{\leavevmode
>>| 
>>|   \@tempskipa\lastskip \edef\@tempa{\the\@tempskipa}\unskip
>>| 
>>|   \ifnum\lastpenalty=\z@ \penalty\@highpenalty \fi
>>| 
>>|  \ifx\@tempa\@zero@skip \spacefactor1001 \fi % if no space before, set
>>|  flag
>>| 
>>|   \ifnum\spacefactor>\@m \ \else \hskip\@tempskipa \fi
>>| 
>>|   \citeleft{#1\if@tempswa \citemid #2\fi
>>| 
>>|   \spacefactor\@m % punctuation in note doesn't affect outside
>>| 
>>|   }\citeright}
>>| 
>>| \edef\@zero@skip{\the\z@skip}
>>`----
>>
>>I am not too good with raw LaTeX, so could somebody please assist? I have
>>tried many things already, all in vain.
> 
> looks like that copy of cite.sty has a blank line in between any two
> lines of text.  if that's really the case, it would explain the
> problem, since you'ld go into vertical mode after the \leavevmode on
> the first line of the macro.
> 
> remove those blank lines (actually, all blank lines) in the copy of
> cite.sty

I now notice that the site adds: "We recommend that you download the zip
archive, as this will give you all the files listed above. When unzipping
onto a computer running Unix or Linux, ensure that text files are converted
from Dos format to Unix format."

This was rather frustrating...

Thanks for the help,

Roy

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index