Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

\include in latex without page breaks

1,647 views
Skip to first unread message

cormac...@gmail.com

unread,
Jul 11, 2007, 6:15:02 AM7/11/07
to
Can \include be used in latex to include a paragraph without a
pagebreak after the included text? For example, we would like to write
a large document with many small sections, write each section as a
separate file, and simply include them all in the main file. However,
\include{section_filename} results in a pagebreak after the included
section.

Ulrike Fischer

unread,
Jul 11, 2007, 6:17:10 AM7/11/07
to

Pouya D. Tafti

unread,
Jul 11, 2007, 7:07:08 AM7/11/07
to
[<cormac...@gmail.com>]

Use \input instead.

--
Pouya D. Tafti
<p dot d dot tafti at i triple e dot org>

Ulrich Diez

unread,
Jul 11, 2007, 8:22:29 AM7/11/07
to
cormac...@gmail.com wrote:

No. The main difference between \input and \include/\includeonly
is that with the \include-feature you get separate aux-files for
each included file wherein counter-values and the like are stored
for the associated portion of your document so that omitting other
portions of your document won't affect counting/won't yield
decreased counter-values.

These aux-files get created on the fly in terms of \immediate\openout.
You cannot have the aux-file of the current document-portion closed
and have opened up a new one for the next document-portion without
first getting all stuff written that was done in terms of delayed \writes
(e.g. \labels or toc-entries and the like) as otherwise the delayed stuff
which belongs to the current document-portion might erroneously end
up in the aux-file of the next portion.

Performing delayed \write usually is only done by the output-routine
when it comes to shipping a new page.

Be aware that if you use \input instead of \include, omitting material
will affect counting within remaining material.

Ulrich

0 new messages