Bibtex's Odd Behavior in a Latex Document

I added the line "\ cite {test}" as a test for my working latex document. When I compiled bibtex "! Bibtex name_of_my_file", I got the expected error:

Warning - I did not find the database record for the "test"

Then I deleted the line and compiled bibtex again, hoping to run the Latex working file again. However, the same error occurs even when using a new shell. I do not understand this behavior. What is the logic? How can I get a Latex document again?

[Updated information] The problem suddenly disappeared when it appeared. I have no idea why, but now it works. Do you know the reason for the odd behavior?

+3
source share
4 answers

I think you are tripping over LaTex plus Bibtex multipass. If you look at Step 3 in this discussion , you will see the following:

The first run (via latex) generates an auxiliary file, paper.aux, containing information about citations (and other types of links), the bibliography style is used, and the name of the bibtex is the database. The second run (via bibtex) uses the information in the auxiliary file along with the data contained in the bibtex database to create the paper.bbl file. This file contains a bibliography environment with formatting \ bibitem according to the style of bibliography specified.

, , name_of_my_file.aux - placeholder \cite{test}. , :

latex name_of_my_file
bibtex name_of_my_file
latex name_of_my_file
latex name_of_my_file

[ ]. , .aux \cite{}. , latex, . latex, bibtex latex. , .

+9

latexmk, .

, (pdflatex blah.tex), . PDF.

+3

.

. , , , .tex, (aux, bbl, whatever...)

+2

, bib .bib, .tex. .tex, .bib, . tex, " " bib. , .

+1

Source: https://habr.com/ru/post/1706555/


All Articles