On 12/12/11 14:25, Peter Davis wrote:
[...]
> Thanks for the clarifying info. I managed to get BibTeX working for
> this purpose, a single paper with only about a dozen references, so
> doing it by hand wasn't too painful.
That's good news.
> I'm no expert, but it seems to be that styles should be a property of
> the document class, and not the bibliographic database.
That would certainly apply to individual journal document classes, where
the bib style is invariable. Probably also to publishers' book classes,
for the same reason. And possibly to thesis classes, modulo the
institution's degree of flexibility in allowing different styles for
different disciplines.
But the generic classes (article, book, report) need to be able to use
whatever the author specifies. And certainly the styles should never be
the property of the bib database, which has to remain style-free at all
times, to allow authors to re-use the entries in any style.
>> That could be because you are trying to run BIBTeX against a bibtex
>> file.
>
> Yup, that was it (at least one of the problems I was having.)
Aha. It would be hugely useful to those who write documentation to know
where you looked for help on this and didn't find it, because it means
that this aspect isn't being emphasised as it should.
> ;^) I meant my file, but the other info is useful too. I had the file
> open in emacs with AucTeX, and that provides a function to validate the
> syntax of the BibTeX file. It claimed everything was syntactically
> correct, even as I was getting the errors.
That's perfectly possible, if it's the bib style that is broken, rather
than your data. On the other hand, there are so many variables in
bibliographic work, that sometimes you'll hit a combination that simply
isn't provided for (eg a book with no author :-)
> Perhaps the problem was as simply as my not processing the right files
> in the right order. I found that:
>
> a) Trying to process in TeXWorks, with the typesetting process set to
> "pdfLaTeX, makeindex and bibtex" gave me these unbalanced environment
> errors. (See below.)
Leave makeindex out of the equation for the moment, as it doesn't have
any effect on the bibliography formatting (or at least, it shouldn't :-)
> b) I couldn't run bibtex from the command line (probably because I was
> trying to specify the BibTeX file instead of the LaTeX file.)
You mean the bibtex.exe program ran, but couldn't find any file with the
.aux filetype for the filename you gave it.
> c) I didn't see a way to run bibtex within Emacs, perhaps because I only
> looked while editing a BibTeX buffer, and not the LaTeX buffer.
Right. It's C-c TAB. Not very intuitable; C-c b would have made more sense.
>>> LaTeX *seems* to be complaining
>>> about \begin{APACrefURL} being terminated by \end{thebibliography}
>>> though, as I said, I've checked the balance of everything
>> repeatedly.
>>> The errors are:
>>>
>>> Runaway argument? {
http://dx.doi.org/10.1371\end {APACrefURL}
>>> \PrintBackRefs {\CurrentBib \ETC. ! Paragraph ended before \url was
>>> complete.<to be read again> \par l.278
>>
>> OK, that's something completely different. What is the entry in your
>> BIBTeX file that this refers to?
>
> I could not identify which entry was at fault.
You should be able to: it's the one with the DOI "
http://dx.doi.org/10.1371"
> Line 278 is past the last text in the BibTeX file.
It's the .bbl file that the error refers to. This is the formatted
output from BIBTeX that actually gets used in your document. This is a
LaTeX error -- at this stage BIBTeX has been and gone and done its stuff
and left behind the .bbl file for LaTeX to process.
If you look backwards from this error (in your LaTeX logfile or log
bufer or wherever it was you saw this error), you'll find the name of
the most recent file opened.
> Thanks to you and everyone who's responded here. I did manage to get it
> working, finally, and now I understand it a bit better for next time.
> Curiously, I've used LaTeX for years (since before there was a 2e, I
> think), but never used BibTeX before.
http://latex.silmaril.ie/formattinginformation/textuality.html#bib
///Peter