I just finished my Ph.D thesis using LaTeX and I create it in a structured way with several folders and .tex documents inside. I have a master main.tex file and add the different chapters, sections etc. with
\input in the master file.
Now I want to create only one
.tex file with all my thesis. I wonder if there is a what to do that (not cropping or copy/paste) maybe using some package or a script? I appreciate any information.