17

I'd place in the same page two abstract section.One created using my own language and one in english language. If I tried this:

\selectlanguage{italian}
\begin{abstract}
    \lipsum[1]
\end{abstract}

\selectlanguage{english}
\begin{abstract}
    \lipsum[1]
\end{abstract}

but they are placed into two different pages

Edit:

this is my environment definition:

\newenvironment{abstract}{
    \clearpage
    \vspace*{\fill}
    \begin{center}%
        \bfseries\abstractname
    \end{center}}%
    {\vfill\clearpage}
  • I'm using book class and even if abstract is not supported I created an environment – Mazzy Sep 9 '12 at 14:34
  • post edited...I add the definition of environment abstract – Mazzy Sep 9 '12 at 14:38
  • 3
    You have a \clearpage in your environment. This is the reason for the next page. Delete it and use it, if necceccary, in your code and not in the environment. – Mensch Sep 9 '12 at 14:43
  • Related: tex.stackexchange.com/questions/5657/… – lockstep Sep 9 '12 at 14:56
11

That definition is good for one abstract only. For more than one I suggest something like this:

\documentclass[a4paper]{book}

\usepackage[english,italian]{babel}

\newenvironment{abstractpage}
  {\cleardoublepage\vspace*{\fill}\thispagestyle{empty}}
  {\vfill\cleardoublepage}
\newenvironment{abstract}[1]
  {\bigskip\selectlanguage{#1}%
   \begin{center}\bfseries\abstractname\end{center}}
  {\par\bigskip}

\usepackage{lipsum}

\begin{document}

\begin{abstractpage}
\begin{abstract}{italian}
    \lipsum[1]
\end{abstract}

\begin{abstract}{english}
    \lipsum[1]
\end{abstract}
\end{abstractpage}

\end{document}

You are of course responsible that the abstracts are short enough to stay in one page only.

  • It doesn't work for article document class. Why? – Edy Jo May 13 '14 at 16:03
  • 6
    @EdyJo You have to say \renewenvironment{abstract} with article. – egreg May 13 '14 at 16:08
5

The \clearpage in the environment definition causes the page break. There are several ways to deal with that. I suggest a simple approach: take the \clearpage out of the abstract environment like shown (using your code): Replacement for the abstract environment definition:

\newenvironment{abstract}{
  \vspace*{\fill}
  \begin{center}%
    \bfseries\abstractname
  \end{center}}%
  {\vfill}

Example for the application:

\clearpage

\selectlanguage{italian}
\begin{abstract}
  \lipsum[1]
\end{abstract}

\selectlanguage{english}
\begin{abstract}
  \lipsum[1]
\end{abstract}
  • yeah now it worked... – Mazzy Sep 9 '12 at 14:50
  • I should insert only a clearpage or a clearpage after the second abstract? – Mazzy Sep 9 '12 at 14:51
  • @Mazzy: Depends on what comes after the abstract page. If you need the pagebreak and it's not automatically inserted by your subsequent code (e. g. a \chapter), then use another \clearpage after the second abstract. \clearpage is similar to adding a pagebreak, but it performs some other tasks like shipping out figures. – Chris Sep 9 '12 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.