\documentclass{article} \usepackage{pdfrack} \usepackage{verbatim} \usepackage{amsfonts} \newcommand{\Rset}{\mathbb{R}} \newcommand{\Fset}{\mathcal{F}} \newcommand{\Gset}{\mathcal{G}} \title{Test and example of the handling of included file} \begin{document} \maketitle \section{Example} A figure in the document itself. \begin{figure}[htbp] \centering \psfrag{f:R2R}{$f: \Rset \mapsto \Rset$} \pdfrackincludegraphics[width=.3\linewidth]{fR2R} \caption{The figure in the document master file} \label{fig:indoc} \end{figure} \input aSubFile.tex \clearpage \subsection{Code of the example} \verbatiminput{withInclude.tex} \end{document}