5

This is a follow up to: Using the xr package in LyX (for cross-referencing an external LyX document)

I have two LyX documents, called draft.lyx and supplement.lyx. I need to compile them into separate documents and be able to cross reference from the supplement to the draft. I am attempting to use xr per the instruction linked to above.

Normally, I use a little python script to call LyX sequentially to compile each file from the command line. However, it seems that the temp folder only persists while LyX is running, so the necessary .aux file is deleted before it can be referenced. Is there a way to automatically copy the .aux file or to force the temp directory to persist?

  • 2
    I don't have time to look into this, but you might find some useful information in Help > Customization. In particular, read the section on "copiers" and perhaps the flag "needaux" (for "converters"). – scottkosty Sep 24 '13 at 23:12
  • Thanks @scottkosty. I took a look but the documentation seems to be specific to Linux/Unix. Do you know if there is documentation for windows? – mbwong Sep 26 '13 at 22:45
  • 1
    I'm not sure. You could try sending an email to lyx-users@lists.lyx.org – scottkosty Sep 27 '13 at 0:15
  • 1
    This cross-referencing problem might be solved without copying .aux files and by using the GUI: All text can be put into one document using "branches". A detailed description can be found in my answer of the question "Lyx cross-referencing between branches". – e-birk Jan 29 '14 at 16:47
  • I have the exact same question as the OP. Is there a solution that does not make use of branches? – RoyalTS Jun 22 '18 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.