David L. Johnson wrote: > On Fri, 06 Jan 2006 16:19:03 -0700 > Fernando Perez <[EMAIL PROTECTED]> wrote: > >> I have a document with a bibtex-generated list of references, and when I >> try to export it to PDF or postscript (via the GUI or with 'lyx -e pdf2', >> for example), all the citations appear as [??] marks, though the >> references section is correctly generated. > > Typically with Latex the first run would generate missing references such > as > this. If I am running Latex manually, I simply run it twice. That way > the appropriate temporary files are generated so that the second run can > read them. > > I thought LyX would do the same thing.
It should, and sometimes it does, as I mention below. But the problem is that it misses many times, and requires a no-op fiddle with the bibtex box to realize that it has to make an extra pass. >> The only workaround I've been able to find is to click on the 'bibtex >> references' box at the end, make some trivial change (choose a different >> style, or check the 'add to TOC' box), and rerun the PDF/PS generation. >> THEN, the numbers appear, and I can revert my trivial change and >> continue. >> >> Needless to say, it is incredibly annoying to have to do this every time, >> and it breaks my makefile-based workflow (this is a document being >> developed in collaboration from many places, so I wrote a makefile to >> generate all the required PDFs without human intervention). > > Try adding a second Latex run into that makefile. Well, it's not that simple: the makefile calls lyx -e pdf2 master.lyx to make 'master.pdf'. This master file has many subdocuments, EPS figures, and more. To generate the final one manually, I'd have to write out the raw latex, convert all figures from .eps format to .pdf (pdflatex doesn't understand eps figures), etc. That's _precisely_ all the magic and convenience that lyx does for you when you say 'export PDF', but it's borking out on bibtex management. This is a lyx bug, I'm pretty convinced. I guess I should just take it up on lyx-dev... Cheers, f
