6

I'm writing master thesis and working on LaTeX template for the successors ...

The standard of the university requires abstract in every language to be formed as unnumbered Chapter:

\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
...
\chapter*{Résumé}
\addcontentsline{toc}{chapter}{Résumé}
...

Is it possible to customize the abstract environment (or to use other workaround) to be able to write:

{
\selectlanguage{russian}
\begin{abstract}
    This is ABSTRAAAAACT!!!
\end{abstract}
}
{
\selectlanguage{french}
\begin{abstract}
    This is ABSTRAAAAACT!!!
\end{abstract}
}

So that the titles would still appear in the ToC as unnumbered chapters?

P.S. I'm using the report class

1
  • 1
    Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. I removed the "thanks" from your post, since we do not include it. You can thank the answerers by up-voting and acepting their answers.
    – yo'
    Commented Apr 4, 2012 at 14:44

1 Answer 1

6

This just makes abstract include a chapter named with the command \abstractname, which is provided by babel and is re-defined for each language.

The lipsum package and \lipsum command are used only to provide some dummy text.

\documentclass{book}

\usepackage{lipsum}
\usepackage[english,french]{babel}

%% START HERE %%
\def\abstract{
  \chapter*{\abstractname} % start chapter
  \addcontentsline{toc}{chapter}{\abstractname} % table of contents line
  \markboth{\MakeUppercase{\abstractname}}{} % header mark
}
\def\endabstract{\clearpage}
%% END HERE %%

\begin{document}

\selectlanguage{english}

\tableofcontents

\begin{abstract}
\lipsum[1-20]
\end{abstract}

\selectlanguage{french}

\begin{abstract}
\lipsum[1-20]
\end{abstract}

\end{document}
1
  • Solution suggested by @tohecz worked perfectly...
    – Vairis
    Commented Apr 4, 2012 at 14:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .