Here is a complete example of the input/include command at work:
The example consists of 3 files in a folder structure as follows:
fig.jpg is just an ordinary jpg image file. The contents of
file1.tex are as follows:
Note the inclusion of the (relative) path as well as the filename of
The contents of file2.tex are
file2.tex does not have its own preamble, document class,
\input as having a similar effect to you manually copying and pasting whatever is in
file1.tex: no need to include anything you wouldn't want to copy in this fashion. Following through this copying/pasting logic: note also that the path to
fig.jpg needs to be relative to
fig.jpg is in the same folder as
file1.tex this means that we don't have to specify any path.
Saving this file/folder structure and compiling
file1.tex results in a document with
fig.jpg included in it.