> On 21 Jul 2024, at 17:48, Murat Yildizoglu <myi...@gmail.com> wrote: > > Dear friends, > > I am importing a LaTeX file from an old LyX file after Claude translated it > to English from French (a very good translation of all text in French while > preserving the LaTeX instructions). > > The LaTeX file looks good and I can typeset it manually with pdflatex. But, I > want to re-edit it in LyX, and I am meeting a problem with the last version > of LyX 2.4.1 and MacTeX 2024 (they are not necessarily the culprit but I have > just updated them before doing these operations so they may be relevant in my > problem): > > When I compile my imported file, some elements get duplicated in the LaTeX > file in the temp folder. In particular, I find duplicated references and > bibdata and bibstyle commands in the AUX file. My LyX file has only one > bibliography field at the end of the document. Latex generates warnings about > these duplications but when I click « Show the output anyway », I get a > readable PDF. > > Do you know why compilation duplicates (in fact, triplicates) these elements > in the AUX file? > > Thank you very much! > > Murat
I have solved this problem: The source was the default overlay configuration in my preamble. For the slide containing the Bibliography, I changed it to <1>, and the duplication problem has been solved, but now I have another problem: all references point to one of the documents I cite. FTI: I use natbib andthe authordate3 style I tried to locate the problem by hand: 0/ I delete AUX and bbl files (also the blg one) 1/ I pdflatex the first time: no strange errors on the logs, I get the standard "Package natbib Warning: Citation `XXX' on page 70 undefined on input line 377 errors and Package natbib Warning: There were undefined citations.. The AUX file contains: \citation{Binmore99} \citation{Giraud00} \citation{Umbhauer02} and also \bibcite{} commands for them (is this normal?) 2/ I run bibtex: no errors in the blg and the bbl contains the correct references 3/ I run pdflatex again: Now I continue to have the citation commands but all bibcite commands point to the same reference: \bibcite{Binmore99}{{1}{1999}{{Binmore}}{{}}} \bibcite{Giraud00}{{2}{1999}{{Binmore}}{{}}} \bibcite{Umbhauer02}{{3}{1999}{{Binmore}}{{}}} and I only get this reference in the PDF of course, instead of full reference set. I am quite perplexed now about the potential origin of this problem and I am a rather obsessive guy :) Have you met this problem or do you have any idea about it? FYI information: when I switch the presentation to beamer Koma script document class, the references are compiled correctly. My preamble contains (but I have been using it for some time in other documents, but not very recently): \mode<presentation> { \usetheme{Warsaw} \usecolortheme{lily} \setbeamercovered{invisible} \setbeamertemplate{navigation symbols}{} } \beamerdefaultoverlayspecification{<+->} \AtBeginSection[] { \begin{frame}<beamer> \frametitle{Sections :} \tableofcontents[currentsection] \end{frame} } and the slides with references and the bibliography have the overlay specification <1> in Lyx. > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users