<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 3/27/21 5:43 AM, Wolfgang Engelmann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:31de0ea8-0787-aea5-464d-c178206bb873@uni-tuebingen.de">
<br>
<br>
Am 25.03.21 um 18:56 schrieb Wolfgang Engelmann:
<br>
<blockquote type="cite">If I have two bib files in the
bibliography; is the second one only used, if the citation is
NOT in the first one?
<br>
Wolfgang
<br>
</blockquote>
Perhaps I explained badly:
<br>
I have two relatively large bib files.
<br>
The first one contains (among many others) most of the needed
references for my book.
<br>
The second one (among many others) those which are missing in the
first one.
<br>
I would like to get those into my document.
<br>
But I do not want to have any references of the first one to be
replaced by the same references in the second bib file.
<br>
</blockquote>
<p>If you have two entries with the same key, then you will get
errors, and LyX will abort the compilation. I just ran a test,
with the same entry (Heck:SolveFrege) repeated between two files,
and get:</p>
<p>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.197:
The style file: plainnat.bst</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.198:
Database file #1: 0_home_rikiheck_files_bibtex_test-a.bib</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.202:
Database file #2: 1_home_rikiheck_files_bibtex_test-b.bib</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.202:
Repeated entry---line 1 of file
1_home_rikiheck_files_bibtex_test-b.bib</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.203:
: @article{Heck:SolveFrege</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.203:
: ,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.204:
I'm skipping whatever remains of this entry</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.204:
(There was 1 error message)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.205:
bibtex "test"</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.301:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020)
(preloaded format=pdflatex)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
restricted \write18 enabled.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
entering extended mode</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
(./test.tex</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
LaTeX2e <2020-02-02> patch level 5</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
L3 programming layer <2020-04-06></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.302:
pdflatex "test.tex"Systemcall.cpp (291): Systemcall: 'bibtex
"test"' finished with exit code 2</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">10:11:17.504:
Error while exporting format: PDF (pdflatex)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">In LaTeX,
you get the same error when running bibtex. It is up to you
whether to proceed! The first included entry is what appears in
the bbl file (as the second is ignored). And yes, LyX does output
the bib files in the order in which they are included in the
dialog. (Note that the dialog allows them to be re-ordered for
this reason.)<br>
</p>
<p>Riki</p>
<p><br>
</p>
</body>
</html>