Discussion:
BibTeX and Acronym conflict?
(too old to reply)
Robert
2006-05-24 05:30:03 UTC
Permalink
I have a paper I've been working on for awhile, using both BibTeX and
the acronym package. Eveyrthing's been going fine, but I just tried to
add a new article to the .bib file, and when I include any citation to
that article, acronym breaks completely -- the acronyms don't appear in
the document, and *every* acronym produce an "Package acronym Warning:
Acronym `<whatever>' is not defined on input line <whatever>" error
message.

If I take the citation to that one article out and recompile (latex,
bibtex, latex, latex), the acronyms work fine. If I put the citation
back in and recompile, the acronyms break again.

I've tried playing around with the format of the Bib entry, the
placement of the citation, even replacing it with \nocite, and nothing
works. I'm at my wits end -- any ideas?

I've appended the problem Bib entry below. (The title line may wrap
below, but it doesn't wrap in my .bib file.)

Thanks!

--Robert



@Article{Diamond2006,
author = {Diamond, Jr., Arthur M.},
title = {The Relative Success of Private Funders And Government
Funders in Funding Important Science},
journal = {European Journal of Law and Economics},
year = 2006,
volume = 21,
number = 2,
pages = {149--161},
month = {April}
}
Robin Fairbairns
2006-05-24 10:06:26 UTC
Permalink
Post by Robert
I have a paper I've been working on for awhile, using both BibTeX and
the acronym package. Eveyrthing's been going fine, but I just tried to
add a new article to the .bib file, and when I include any citation to
that article, acronym breaks completely -- the acronyms don't appear in
Acronym `<whatever>' is not defined on input line <whatever>" error
message.
If I take the citation to that one article out and recompile (latex,
bibtex, latex, latex), the acronyms work fine. If I put the citation
back in and recompile, the acronyms break again.
I've tried playing around with the format of the Bib entry, the
placement of the citation, even replacing it with \nocite, and nothing
works. I'm at my wits end -- any ideas?
I've appended the problem Bib entry below. (The title line may wrap
below, but it doesn't wrap in my .bib file.)
i can't think of any reason this might happen, with the information
you've presented.

i think we need a minimal example: create a document (using the same
class) with an acronym in it, and a citation to this bibtex item.

if that doesn't fail, elaborate (one package at a time, additional
acronyms, bibtex items, as required).

if the process of creating such a document hasn't highlighted
something for you, post your minimal document with necessary bibtex
info, so someone else can look at something concrete.
--
Robin Fairbairns, Cambridge
Robert
2006-05-25 04:45:48 UTC
Permalink
Robin: Great idea! Here's what I did.

My document in broken up into separate files for each section, and put
together with \input{filename} statements. I commented out all the
input statements, the \bibliographystyle and \bibliography statements,
and the \input{acronyms} statement.

Then, I typed a sentence with the problem reference, uncommented the
\bibliographystyle and \bibliography statements, and compiled (latex,
bibtex, latex, latex). It worked fine. I added a sentence with a
single acronym, and uncommented the \input{acronyms} statement and
recompiled. Again, it worked fine.

I then started uncommenting the \input statement for each section,
recompiling after each one. Until I got to the last one, which
produced the same problem I described above (the acronyms all broke).

I then re-commented-out that last \input statement, recompiled to make
sure it was still working, and then uncommented the \clearpage
statement I had before the \bibliographystyle statement to put the
references on a separate page. This broke the acronyms.

I then re-commented-out ALL the \input statements, and recompiled my
2-sentence document. Worked fine. I uncommented the \clearpage
statement, recompiled, and it worked fine. I then went back to the
version with all the input statements (in the above paragraph), which
was broken, and removed the citation to the problem reference. The
acronyms worked fine again. I tried this both with the reference in
the text where it was originally, and in a single sentence at the
beginning of the document. Same result either way.

Any ideas? Is is possible that there is some issue involving the size
of the document or the number of pages -- or the number of citations?
Maybe a stack allocation issue? This would be odd, since I've
actually cut the document from it's original size -- thought it didn't
have the particular reference that appears to be problematic.

I would be perfectly glad to have an ugly hack; I just need to get
this document out -- I could hardcode the reference as text, but then
the cited paper won't appear in the bibliography. I tried hardcoding
the reference in the text and then using \nocite to put it in the
bibliography, and this broke the acronyms.

Thanks to everyone who reads this. Your suggestions are are all
appreciated.

Thanks!

--Robert
Will Robertson
2006-05-25 10:00:00 UTC
Permalink
Post by Robert
Robin: Great idea! Here's what I did.
Unfortunately, a description doesn't help as much as an example. Trim
down your document to the very bare minimum required such that
commenting/uncommenting a single line (or block of lines) will fix your
problem or break your document. Then post it here.

If possible, get rid of having to do that BibTeX run. Copy from the
.bbl file the actual bibliography BibTeX has produced and paste that in
instead of \bibliography{...}.

It does sound like a subtle problem, though.

Will

Loading...