Merging files together based on latex syntax.
I have a latex code file which links itself to many other latex files. The syntax is as follows:
\input{*path of file to be inputed*} The path is relative to the current working directory, so if my file is stored in /home/kevin/mybook.tex and I want to include a file in /home/kevin/latexstuff/copyleft.tex I simply write: \input{latexstuff/copyleft.tex} The latex compiler includes these files just as if they had been copied and pasted into the main latex file at the point specified. My problem is that I have a document which depends on quite a bit of these \input commands, but I am trying to use a latex preprocessor (ratexdb, adds database fields to your latex documents) which does not support \input commands, leaving my file only half processed. So I was wondering: is there any easy way to parse through my main file, detect only the \input commands, interpret the syntax and include the files specified (where specified), and produce a second, populated file, which can then be processed by ratexdb? I've seen amazing things done with makefiles, bash scripts, grep, cat, perl, etc., but I'm not quite sure how to use these tools to solve my problem. |
Post your problem in the texlive mailing list.
|
Quote:
Code:
#! /bin/sh |
All times are GMT -5. The time now is 11:08 PM. |