Generalwhat's difference between \include and \input

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
alwayssmile68
Posts: 5
Joined: Wed Oct 01, 2008 4:35 pm

what's difference between \include and \input

Post by alwayssmile68 »

we always use \include or \input to import external texts into current file. Please say something about their differences! Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

what's difference between \include and \input

Post by gmedina »

\include will always start a new page. With \include you have the \includeonly command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

what's difference between \include and \input

Post by Stefan Kottwitz »

Hi,

perhaps this text might be helpful for you: Structuring Large Documents.

Stefan
LaTeX.org admin
Post Reply