Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
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. –  Kurt Sep 9 '12 at 14:43
    
Related: tex.stackexchange.com/questions/5657/… –  lockstep Sep 9 '12 at 14:56

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
    
It doesn't work for article document class. Why? –  Edy Jo May 13 at 16:03
    
@EdyJo You have to say \renewenvironment{abstract} with article. –  egreg May 13 at 16:08

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}
share|improve this answer
    
you oversee the second \clearpage in the environment –  Kurt Sep 9 '12 at 14:49
    
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
    
@Kurt: already done, but thanks anyway :-) –  Chris 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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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