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.

I am using a style file prescribed by Riton Press to write an article. They have a bibliography format (described in their style file as):

\renewenvironment{thebibliography}[1]
        {\frenchspacing
         \small\rm\baselineskip=11pt
         \begin{list}{\arabic{enumi}.}
        {\usecounter{enumi}\setlength{\parsep}{0pt}     
%          \setlength{\leftmargin 12.7pt}{\rightmargin 0pt}%FOR 1--9 ITEMS
         \setlength{\leftmargin 17pt}{\rightmargin 0pt}  %FOR 10--99 ITEMS
%         \setlength{\leftmargin 22pt}{\rightmargin 0pt}   %FOR 100+ABOVE ITEMS
         \setlength{\itemsep}{0pt} \settowidth
          {\labelwidth}{#1.}\sloppy}}{\end{list}}

However, this keeps giving the following error while compiling the tex file:

! Package calc Error: `0' invalid at this point.

See the calc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.1 \begin{thebibliography}{10}

? 
! Missing number, treated as zero.
<to be read again> 
                   \protect 
l.1 \begin{thebibliography}{10}

? 
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \protect 
l.1 \begin{thebibliography}{10}

? 

! LaTeX Error: \begin{list} on input line 1 ended by \end{thebibliography}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.136 \end{thebibliography}

? 
) [32

]

But if I ignore these errors, all the references are displayed. It displays the text "pt!" in the references page.

here

Kindly help me know how I can avoid the errors from the bibliography part.

share|improve this question
1  
We'll need a link to try this out, but \setlength{\leftmargin 17pt}{\rightmargin 0pt} is out-and-out wrong (although it doesn't fail if calc is not loaded). Looks like a bug in the class to me. –  Joseph Wright Aug 14 '13 at 9:16
    
I presume you asked for a link to the style file containing the above \setlength{...}{...} command. Here is a zip file containing the style file: rintonpress.com/style/QIC-latex2e.zip . When I use the package qic with amsmath,amssymb,xfig,algorithm} it is giving the error I had mentioned. –  Pavithran Iyer Aug 14 '13 at 9:53
    
Yes, that was the one: it's horrible! –  Joseph Wright Aug 14 '13 at 10:17

1 Answer 1

up vote 10 down vote accepted
 \setlength{\leftmargin 17pt}{\rightmargin 0pt}

(tries to) set a length register called \leftmargin17pt to the value \rightmargin0pt

By an accident of the original definition of \setlength this does not generate an error and sets \leftmargin to 17pt and \rightmargin to 0pt by luck.

If you load calc your luck changes.

share|improve this answer
    
Thanks. I learn from your post that the solution is either to not load the calc package or to not use \setlength{\leftmargin 17pt}{\rightmargin 0pt} . However, I have not loaded calc explicitly nor is it loaded on the style file. Is there any way of explicitly un-loading the calc package ? –  Pavithran Iyer Aug 14 '13 at 9:45
1  
@PavithranIyer whether you load calc or not you should fix \setlength{\leftmargin 17pt}{\rightmargin 0pt} as it is just wrong. You can't Unload" a package once it is loaded. –  David Carlisle Aug 14 '13 at 9:47
    
God bless you for figuring this out before me; I am also trying to use qic.sty and they haven't fixed it yet. I will send them a note. –  user41292 Nov 19 '13 at 15:37

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.