Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What editor are you using? Emacs has "include-file" bound to "C-x C-i". It's better than copy and paste. If you would really rather have the text there than use \include, you could do that, however that's just a variant of copy/paste.
Unless you're already dedicated to vi, I would strongly recommend Emacs/XEmacs with AUCTEX. Jed also has a LaTeX mode.
I mostly use kile, or any other editor (PCTeX, or even pico) when I am not by my own computer. I used include to make the file easier to manage when putting together, but I need to send the project to another person, and 1 file is simpler to deal with than 10+.
In vim you could also read a file where you wanted it included, using :r <filename>. Since you are only doing this once for the file you are sending, if I were you I would use emacs or vim for assembling the file you want to send. We aren't saying you should use vim or emacs to write your documents.
For kile, you could open the chapter files in another tab, use CTRL-A to select everything and then copy.
You could also cat the chapters together.
Ex: cat chapter1.tex chapter2.tex chapter3.tex ... >allchapters.tex
Then you could use cut and past only once to include them where you want.
A zip or tarball could be used as well to package the files. If this is a paper you are submitting they may have instructions on what they require.
I don't know of any pure latex solution to output a "post include" latex file. But you probably know latex much better than I do. A search on the CTAN site might turn up a pure latex or tex solution.
[snip] We aren't saying you should use vim or emacs to write your documents.
[snip]
That's true, however I think you should at least check out the features of an editor with specific LaTeX modes (in the least). Does Kile have LaTeX modes? (that's a real question). AucTeX (under XEmacs) makes writing documents easier than any word processor ever did for me. Yes, Emacs/Xemacs are cumbersome and vi/m can be daunting, however you stand to gain a lot by considering it.
WHAT I WOULD DO: is concatenate the files like several others have suggested, if you really want all the text in the same file.
However, I use \include all the time, and since the documents I deal with often include figures and other auxiliary files, I would just tar up a directory and send it to somebody else. Remember, if you just tar the files, then they get spit out all over the destination directory. If you tar the directory, it makes a directory for the person untarring it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.