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'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

share|improve this question
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. –  tohecz Apr 4 '12 at 14:44

1 Answer 1

up vote 4 down vote accepted

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}
share|improve this answer
    
Solution suggested by @tohecz worked perfectly... –  Vairis Apr 4 '12 at 14:54

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.