![]() Sometimes the compilation error is cryptic but you have no idea of what is causing it and where it could be. A simple wrong search & replace in the whole document can ruin your project for days.ĭebugging. ![]() Especially if you are not using a version control systems, this avoid than you can damage accidentally all your work while editing only a small part. If the editor can show some type of outline is a minor problem, but find some piece of text searching a keyword could be annoying because in a large document is also found elsewhere, outside of the target section. Tasks as find some sentence is just easier in a short text. Otherwise, before or after you will end will distracted with something else after/before the target. You can focus in the content of this section. Edit a short text with only a chapter or section or even a minor chuck o LaTeX code have some advantages: In these cases, using \include can save your time.Īs apostill to the other answers, for me an important reason to still split long documents is not always gain time in compilation previews or reusability (although often these are enough reasons) or sharing with other authors, but the easy of edition. With a modern computer, the times needed to typeset a chapter or an entire book are not very different, unless the book is very large, or it has many graphics using TikZ or PSTricks that slow down the process. Not a big deal, of course, but when the chapters are many, it might be a nuisance on the other hand, writing and reading from. It's easy to comment out some lines in a well-structured main file, but the same can be said about strings passed to \includeonly however using \input and commenting doesn't require to duplicate the list of files. Personally I don't mind if some references are not solved during trial typesetting sessions, when I'm more interested in the overall shape than in precise line and page breaks. (See also CountZero's answer for another use.) ![]() It has its uses now also, because it can solve cross references even when the chapter is not \included. \include was born when computers were slow and typesetting a complete book could be a good occasion for having a coffee, maybe two. The choice between \include and \input is very subjective. Splitting a large document into parts is A Good Thing with today's front-ends or editors it's quite easy to jump from one part to the other.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |