4

I have the following MWE, using REVTeX:

\documentclass[aps, prl, twocolumn]{revtex4-1}

\begin{document}
    \title{Title} 
    \author{Dog} 
    \date{\today}

    \begin{abstract}
        \include{abstract}
    \end{abstract} 

    \maketitle

    \include{text}

\end{document}

When I use \include, then the page is skipped before inserted text. When I just write the directly without using \include, then the text is placed there as expected, without any \newpage.

Why is that?

BillyJean
  • 1,743

1 Answers1

4

The \include instruction is made for big chunks of text so as to allow compilation without really inputting the files; it's mostly useful during preparation of large documents.

In order to work properly, it must issue a \clearpage command. So it's not really useful for your problem.

\documentclass[aps, prl, twocolumn]{revtex4-1}

\begin{document}
    \title{Title} 
    \author{Dog} 
    \date{\today}

    \begin{abstract}
        \input{abstract}
    \end{abstract} 

    \maketitle

    \input{text}

\end{document}

should be the preferred form.

See Redefining \include, Splitting a large document into several files, or Removing whitespaces caused by separate source files for more information

egreg
  • 1,121,712