Linked Questions
24 questions linked to/from Replace \input{fileX} by the content of fileX automatically
11 votes
2 answers
4k views
Build one single .tex file from a .tex file with multiple \input
Edit: I think this question is sufficiently distinct from this question because I am specifically asking for a method within TeX itself, i.e. not running some Perl script separately to do this, but ...
6 votes
1 answer
3k views
Generate a merged LaTeX file, with \input code in place?
I'm currently working on an experiment that involves re-typesetting a digitized physical book from OCRed images. For various reasons involving the workflow, the resulting project architecture is a "...
12 votes
1 answer
2k views
Make a "standalone" version of multiple files: all document in one .tex file
Disclaimer: this question is not related to the standalone package. When writing an article, I split the content between several files, to ease the versionning notably. At the time of writing, most ...
9 votes
1 answer
510 views
TeX equivalent to #line
In C there is #line which allows stating the origin of a particular line of code. This is useful for autogenerated C source files: The (unreadable) code in the generated file is mapped back to the ...
1 vote
1 answer
883 views
Best-practice project architecture for creating a LaTeX3 package / class
I would like to take my .cls file and refactor it into a locally used package. Specifically I would like to: Divide it into multiple files for easier readability (separation of concerns). Have it ...
0 votes
1 answer
623 views
build index from more \include{file} files
is there any easy way (Iʼm not a programmist) how to build and print Czech-sorted index in document which contains more \include files? I donʼt know how to put here a minimal example. so Iʼm working ...
2 votes
1 answer
532 views
Is there any possibility to print a single tex file from a multifile project using a LaTeX compiler?
I would like to retain the multifile structure of my LaTeX projects, but journals usually require a single .tex file. Is there any way to print such a combined document as a 'cached' file with the ...
2 votes
1 answer
256 views
Exporting LyX file to TeX, with child documents (TeX codes)
I need to export a LyX document to TeX. The LyX document has child documents (I use input{} to refer to some .tex-files). These child documents have other child documents themselves (I again use \...
0 votes
0 answers
245 views
Slow/Buggy Compilation with \input
I've been noticing that some of my files take a really long time to compile. It'll often be sluggish to compile and then produce an "invalid or corrupted file" error for a long time before ...