Hi
My name is Ole and is a LaTeX user for more than two decades. I use LaTeX for writing math, but I do also rely heavily on LaTeX in my programming projects - most of these are web applications, but LaTeX do a far better job on printed matter that anything else I know of.
It is in connection with one of these projects, that gave rise to the question I am posting here - however, nothing happens without purpose, maybe this was the incentive I needed for participating here.
But to the question: When you are about to upload a manuscript to some publisher or send to somewhere, having \input's and \includes for separating chunks of your documents, becomes pretty inconvenient. I am pretty sure that I've read somewhere about some option or package, that makes LaTeX produce one big document, suitable for mailing or uploading. Did a lot of researching on the web and in LaTeX books, but I still haven't refound this information. Can anybody help?
Thanks in advance for any attention!
0le Peter Smith
IME, UFG - Brazil
General ⇒ Joining inlcude/input into main Document
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Joining inlcude/input into main Document
My favorite tool for this is VIM's :r command, but if you don't use VIM that's not as helpful. I could probably write a shell script to do this very easily, but I haven't done it yet.
I found these two solutions which may help:
http://tex.stackexchange.com/questions/ ... 1840#21840
http://tex.stackexchange.com/questions/ ... e-in-place
The first one has links to three CTAN-available scripts/programs that do what you seem to want to do. They may or may not process \bibliography, \tableofcontents, etc. properly to include those files as well, but perhaps that's not necessary.
I found these two solutions which may help:
http://tex.stackexchange.com/questions/ ... 1840#21840
http://tex.stackexchange.com/questions/ ... e-in-place
The first one has links to three CTAN-available scripts/programs that do what you seem to want to do. They may or may not process \bibliography, \tableofcontents, etc. properly to include those files as well, but perhaps that's not necessary.
Re: Joining inlcude/input into main Document
Dear Kaiserkarl
Thanks for your response, to make a script to do the job others has appointed me to the three links you suggested. Thought them all cool, however, thought the c-code that included the bibliographies superior in terms of completeness, but what I had in mind, apparently is not available, bein' it some switch to latex. This, since I am trying to incorporate this thing into my humble framework (in php) - a branch where one of you difficulties is having minimum access to external commands.
Before asking, I had thought of 'doing it by hand' - but after the responses on my request, I think the most universal solution might be implement this task by hand/internal script; this way I need not ask for access to external commands.
Seems that sometimes you need somebody else's answer to your question, before you are able to see the 'reality' as it is.
Thank you for enlightening me.
0le
Thanks for your response, to make a script to do the job others has appointed me to the three links you suggested. Thought them all cool, however, thought the c-code that included the bibliographies superior in terms of completeness, but what I had in mind, apparently is not available, bein' it some switch to latex. This, since I am trying to incorporate this thing into my humble framework (in php) - a branch where one of you difficulties is having minimum access to external commands.
Before asking, I had thought of 'doing it by hand' - but after the responses on my request, I think the most universal solution might be implement this task by hand/internal script; this way I need not ask for access to external commands.
Seems that sometimes you need somebody else's answer to your question, before you are able to see the 'reality' as it is.
Thank you for enlightening me.
0le
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Joining inlcude/input into main Document
Did you see the first answer on the second link? It gives a TeX-based solution to the problem (which may or may not help).