so I have been trying to learn how to compile multiple files into a single pdf using Latex. I am working on Windows 10, with TexMaker.
I have the organized in the following manner:
Dropbox
-Main
--Main.tex
-File1
--File1.tex
-File2
--File2.tex
which hopefully is easy to understand. Not sure if there is a standard way to denote file nesting.
I started off by trying to just have one Latex file which pulls in all the other ones, but I couldn't get it to work out. From what I've gathered I believe this is due to my files not being written to be pieces of a bigger main file.
So instead I decided to use \includepdf to take the outputs of my separate files (each produces its own outputs) and put them all together. This worked out more or less, but my issue is I can't get my compiler to look in directories other than the one my main file is in. So I was wondering if I could have my File1.tex put a pdf in both File1 and Main? This would keep me from having to copy paste all the time.
If you could be very specific I would be most appreciative, because I am fairly new to manipulating Latex like this. I am also open to any other suggestions you may have.
Thanks.
File1.texandFile2.texare.tex- documents of their own and `\include{File1} etc. doesn't work then – Aug 08 '15 at 14:20main.tex, you could try thecombinepackage. Otherwise,\includepdfis perhaps the besser way – Aug 08 '15 at 14:22\input... You can't just use\inputfor full.texfiles – Aug 08 '15 at 14:46file*.texincludes something like\documentclassor\usepackage. However, I don't know why the answer in the link is UNIX based. Assigning superior directories like../Dropbox/FIle1/FIle1worked on my Windows (and of course on OS X too). – Merzong Aug 08 '15 at 15:05main.texandfile1.texas you claimed in your question. You shouldn't ask maked-up question. Also why don't you try first the exact setup as in your guide? When it works you can adapt (slowly) it to your real needs. – Ulrike Fischer Aug 08 '15 at 15:38cd D:\partenD\subPD\Dropbox\File1 & pdflatex File1.tex & copy File1.pdf ..\Mainhere I supposeDropboxin DiqueD:-->partenD-->subPD– touhami Aug 08 '15 at 17:19