I have a weird and complicated problem, and I am not sure if the BibTeX forum is the right one at all because the problem is probably not caused by BibTeX - but it origins in something that I do in BibTeX so I need help by someone who is firm in BibTeX also.
Situation
- multiple bibliographies (planned) with multibib-sty
- at this moment one .bib-File (bib-alltest.bib) and one .bst-File (bib-alltest.bst) which I implemented myself
- compiling via MikTeX from TeXnic Center
The source code ist generated in the file all.bbl and seems alright to me. In the source code which I generate via the bib-alltest.bst there is a \providecommand line which generates a command which is named according to some labels in the bib-alltest.bib entry. That is: In bib-alltest.bib there is a label 'author' and a label 'yearalph', and the resulting name of the command is \<author>Y<yearalph>.
(In the example it is \KneserYaijd - please do not care about the strange name.)
And now what I do:
I am using the bib-alltest.bst-File also for the formatting of the reference form, and for that reason I generate the new (or provided) command which produces the reference form that I want.
[The reason is the international standard family called 'Harvard Style' which demands different forms for the first and the further references, and I need to reimplement this myself, because I need a special form of the Harvard Style.]
And now the problem:
- If I look into the all.bbl the code seems allright. The \providecommand generates the command I want, and it also works.
- There is *NO* message from that MikTeX about a *LaTeX* error
(like "command \KneserYaijd already defined")
So the compiler accepts the \providecommand and accepts that the command is already there when it reaches this point for the second time.
- No!! There ist a TeX error message. The whole message text is:
Code: Select all
\c@KneserYaijd=\count92
) (all.bbl
! LaTeX Error: Command \c@KneserYaijd already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.16 ...nelse{\equal{571-625}{}}{}{, S. 571-625}.}
Your command was ignored.
By the way: the "l.16" is line 16 in all.bbl, and there is no \providecommand at all in this line ...
Please, can anyone help me ??
As attachment you will find
1) the mainfile Test.tex
2) the file with the literature bib-alltest.bib and the file all.bbl which was generated
[they are together in one file, because I can add only 3 attachments]
3) the file bib-alltest.bst (which is a little bit longer, I am afraid)
Yours,
Nico, Frankfurt, Germany