Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing a paper in LyX, of which there are two versions -- a short and a long version. I've created two branches in the (single) LyX file, and will switch them on and off appropriately.

I'd like to make statements in the short version of the form, "For details, please look at theorem [ref] in the full paper." The problem is that some theorems may be missing from the short version, and so the numbering may be off.

What is the recommended practice (in LyX) of solving this problem, i.e. making cross-references to external documents / different branches of the same document?

There is a previous question on this for LaTeX (Cross-referencing between different files ), but I don't see an immediate way to porting this solution to LyX. That is, use package xr, and have a short version branch inset containing \externaldocument{longversion} in ERT. But now, actually doing the compile will involve first exporting the long version to LaTeX, and then building the short version (and remember that LyX does the build in a temporary folder somewhere else). Or export both versions to LaTeX, and then manually invoke pdflatex. That leaves a bunch of temporary files in my pristine work folder, and kind of defeats all I like about LyX.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.