Open GoogleCodeExporter opened 9 years ago
For anyone else trying to do this, this is how it can be achieved:
Have a main document using \documentclass{book}. Whenever you want to include
the contents of another document, use \input{Ref} where Ref is the ID for a
document that you've ticked in Project > Project Resources.
When editing the document that you want to include, DON'T use any
\documentclass{}'s, \begin{document}s, etc. Just start with \chapter{Chapter
Name} (assuming it's an entire chapter) and then write the chapter using
standard LaTeX syntax. Before you can preview the chapter you'll need to tick
the main document for the entire book in Project > Project Resources, and then
in that dialogue choose that document as the Primary Resource (rather than
"Current Document"). For some reason that setting isn't saving in my test
document, and so I need to follow those steps in Project > Project Resources
every time I edit a chapter. Still, once I've done that the results are fairly
satisfactory. I can preview the entire book, but clickable line numbers only
appear in the preview for the section that I'm currently editing and they work
just as you'd expect them to.
In short, the document you select as Primary Resource in Project > Project
Resources is the file that will be rendered in the Preview. \input is how you
can include code from other files, thus neatly dividing a book into chapters.
Original comment by markd...@gmail.com
on 20 Jul 2011 at 10:51
Original issue reported on code.google.com by
markd...@gmail.com
on 11 Jun 2011 at 4:06