About

{import} is about the use of the import package or using the \input, \import, or \include commands for including text and code from other files.

is about the use of the import package or using the \input, \import, and \include commands for including text and code from other files. For importing graphics, also look at the tag.

The \input and \include commands allow the inclusion of one TeX file into another. This is extremely useful for large projects, where one file for dozens or hundreds of pages is impractical. The two commands differ slightly: \input can be nested, while \include cannot, and \include adds a page break, while \input does not. See also the , , and tags.

Frequently Asked Questions

  1. How can I import a csv file into LaTeX as a table?
  2. How can I include a text file so that the line spacing is consistent with LaTeX code?
  3. How can I most correctly use \import for files in different directories?
history | excerpt history