|
8
|
|
edited Nov 20 2009 at 21:51
|
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
|
|
|
|
7
|
|
edited Nov 19 2009 at 17:03
|
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"
|
|
|
|
6
|
|
edited Nov 19 2009 at 4:31
|
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)
|
|
|
|
5
|
|
edited Nov 19 2009 at 4:26
|
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} "\include{chapter-1}...\include{chapter-n}" after \begin{document} "\begin{document} "
for chapter-i make each chapter create an extra tex-file, say the-chapter-i.tex "the-chapter-i.tex" which contains only: \externaldocument{chapter-1,...,chapter-n}\includeonly{chapter-i}\input{book}"\externaldocument{chapter-1,...,chapter-n}\includeonly{chapter-i}\input{book}"
then latex book; latex chapter-1;...,latex chapter-n, and all chaptrers in order (twice)
|
|
|
|
4
|
|
edited Nov 19 2009 at 4:19
|
I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.
So far I can do the following:
latex file and then split output using pdftk. But there are two problems:
(as it suggested below) make one tex-file for each chapter and us xr or xr-hyper package to make xrefs from one file to an other. The problem
- This way I do not have automatic numeration (of sections/chapters/theorems) as in the book.
A better way (also suggested below)
make below):
create a file say book.tex "book.tex" which only use \include{chapter1}\include{chapter2} include{chapter-1}...\include{chapter-n} after \begin{document}
for chapter2 chapter-i make extra tex-file, say the-chapter2.tex the-chapter-i.tex which contains only: \externaldocument{chapter1,chapter2}\includeonly{chapter1}\input{book}
if you need chpter 2 externaldocument{chapter-1,...,chapter-n}\includeonly{chapter-i}\input{book}
latex the-chapter2book; latex chapter-1;...,latex chapter-n
|
|
|
|
3
|
|
edited Nov 19 2009 at 3:28
|
I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.
So far I can do the following:
latex file and then split output using pdftk. But there are two problems:
- All cross-references from one chapter to an other die (the cross-references from chapter to it-self survive)
- I do not see a way to make it automatic --- so far I need to find range of pages for each chapter and then use pdftk.
(as it suggested below) make one tex-file for each chapter and us xr or xr-hyper package to make xrefs from one file to an other. The problem
- This way I do not have automatic numeration (of sections/chapters/theorems) as in the book.
A better way (also suggested below)
make a file say book.tex which only use \include{chapter1}\include{chapter2} after \begin{document}
for chapter2 make extra tex-file, say the-chapter2.tex which contains only: \externaldocument{chapter1,chapter2}\includeonly{chapter1}\input{book}
if you need chpter 2 latex the-chapter2
|
|
|
| |
|
Post Closed as "off topic" by Scott Morrison♦
|
occurred Nov 19 2009 at 3:12
|
|
|
|
|
|
2
|
|
edited Nov 19 2009 at 2:15
|
I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.
So far I can do the following:
latex file and then split output using pdftk. But there are two problems:
- All cross-references from one chapter to an other die (the cross-references from chapter to it-self survive)
- I do not see a way to make it automatic --- so far I need to find range of pages for each chapter and then use pdftk.
(as it suggested below) make one tex-file for each chapter and us xr or xr-hyper package to make xrefs from one file to an other. The problem
- This way I do not have automatic numeration (of sections/chapters/theorems) as in the book.
|
|
|
|
1
|
|
asked Nov 19 2009 at 0:58
|
Splitting book into chapters
I need a way to split output pdf-file (a book) into chapters on such a way that cross-references will survive.
So far I can latex file and then split output using pdftk. But there are two problems:
- All cross-references from one chapter to an other die (the cross-references from chapter to it-self survive)
- I do not see a way to make it automatic --- so far I need to find range of pages for each chapter and then use pdftk.
|
|
|