Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| I noticed today that bibtex-supported citations do not work (giving
| [?]) when doing the first View>DVI. The reason is simple: LyX runs
| latex, then bibtex, then latex again. Therefore, since bibliography is
| at the end of the document, the \cite macros do not see the correct
| values from BibTeX's .bbl file.
| 
| A natural way of doing this would be to see whether the .aux file has
| changed. It turns out that this aux file is explicitely not tracked:
| 
|       // (2) foundfile is in the tmpdir
|       //     insert it into head
|       if (fs::exists(onlyfile)) {
|               static regex unwanted("^.*\\.(aux|log|dvi|bbl|ind|glo)$");
|               if (regex_match(onlyfile, unwanted)) {
|                       lyxerr[Debug::DEPEND]
|                               << "We don't want "
|                               << onlyfile
|                               << " in the dep file"
|                               << endl;
| 
| Is there a reason for doing this? Is it a remnant from the time when
| we compared modification times only?
| 
| Now that we have CRC, looking for updated aux file seems to be the
| best way to see whether LaTeX should be re-run.
| 
| Am I missing something?

I cannot really remember why it ended up like it is now, but I suspect
that there is some issues with the .aux file.

I though latex gave a message that thre is unresolved citations? We
should trigger on that and do another latex run.

-- 
        Lgb

Reply via email to