I have a manuscript and its revision report. I need to put some sentences of this manuscript to the revision report as excerpts. Instead of defining excerpts as macros or putting the excerpts in another file and then including them, is there a better solution to use the text of the manuscript in the revision report?
I expect a solution like:
Contents of manuscript.tex:
...
Pragraph is starting.
\begin{externalize}[excerpt1]
Part that must be both in the manuscript and the revision report.
\end{externalize}
Paragraph ends.
...
Contents of revisionReport.tex:
...
Here we include the following excerpt from the revised manuscript:
\externalizedtext{excerpt1}
...
\begin{filecontents}...\end{filecontents}were allowed to be used in the body of the document. I got this error for your code:! LaTeX Error: Can be used only in preamble.– Kadir Mar 19 '14 at 06:54\usepackage{filecontents}should overcome these restrictions. You might have forgotten to put it in your preamble, or do not have the package installed. Have you tried to compile the MWEs? – Martin - マーチン Mar 19 '14 at 07:14