MathOverflow will be down for maintenance for approximately 3 hours, starting Monday evening (06/24/2013) at approximately 9:00 PM Eastern time (UTC-4).
show/hide this revision's text 8 deleted 308 characters in body

I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.

The best

A simple example with a solutionso far (suggested below):

  • create a file say "book.tex" which only use "\include{chapter-1}...\include{chapter-n}" after "\begin{document} "

  • for each chapter create an extra tex-file, say "the-chapter-i.tex" which contains only: "\includeonly{chapter-i}\input{book}"

  • to keep xrefs between chapters add "\externaldocument{the-chapter-1,...,the-chapter-n}" to each "the-chapter-i.tex" and use package "xr-hyper" in "book.tex"based on answers below) can be found here

show/hide this revision's text 7 added 55 characters in body

I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.

The best solution so far (suggested below):

  • create a file say "book.tex" which only use "\include{chapter-1}...\include{chapter-n}" after "\begin{document} "

  • for each chapter create an extra tex-file, say "the-chapter-i.tex" which contains only: "\externaldocument{the-chapter-1,...,the-chapter-n}\includeonly{chapter-i}\input{book}"

  • then latex book, \includeonly{chapter-i}\input{book}"

  • to keep xrefs between chapters add "\externaldocument{the-chapter-1,...,the-chapter-n}" to each "the-chapter-i.tex" and all chaptrers use package "xr-hyper" in order (twice)"book.tex"

show/hide this revision's text 6 added 8 characters in body

I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.

The best solution so far (suggested below):

  • create a file say "book.tex" which only use "\include{chapter-1}...\include{chapter-n}" after "\begin{document} "

  • for each chapter create an extra tex-file, say "the-chapter-i.tex" which contains only: "\externaldocument{chapter-1,...,chapter-n}\includeonly{chapter-i}\input{book}"\externaldocument{the-chapter-1,...,the-chapter-n}\includeonly{chapter-i}\input{book}"

  • then latex book, and all chaptrers in order (twice)

show/hide this revision's text 5 added 20 characters in body
show/hide this revision's text 4 deleted 647 characters in body; added 27 characters in body
show/hide this revision's text 3 added 353 characters in body
    Post Closed as "off topic" by Scott Morrison
show/hide this revision's text 2 added 271 characters in body
show/hide this revision's text 1