TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to have my "Problem Description" to have the same look/layout as abstract. Any way I can "clone" the the abstract command?


share|improve this question
don't use explicitly the pdftex option; the packages needing it are usually able to provide it implicitly. – egreg Jun 14 '11 at 12:48
@egreg Ok, uni. template.. – latexmp Jun 14 '11 at 12:56
up vote 6 down vote accepted
  {\renewcommand{\abstractname}{Problem Description}%

In this way you can also use the normal abstract environment.

If many kinds of this generalized abstract environment are needed, one can do the following

     % no optional argument
     % provide the desired title

The calls can then be

<regular abstract>

\begin{genabstract}[Problem Description]
<problem description>

Don't feed \abstractname as the optional argument, as this would cause infinite recursion (it would be possible to avoid this, but it seems overkill).

share|improve this answer
Even better would be to put \renewvommand{\abstractname}{Abstract} in the endcode I think? Or is there reason this would not work? – romeovs Jun 14 '11 at 13:21
@romeovs: every environment forms a group, so that \renewcommand would have no effect, because the "end part" is evaluated before the group ends. – egreg Jun 14 '11 at 13:27
hmm, okay don't know about groups. Just seemed logical to change it back. You mean that it will only be changed inside the group then? – romeovs Jun 14 '11 at 14:01
@romeovs: the redefinition of \abstractname in the "begin part" will be undone anyway when the environment ends, because it's made inside a group. – egreg Jun 14 '11 at 14:04
okay, all I needed to know! – romeovs Jun 14 '11 at 15:09

{\renewcommand\abstractname{Problem Description}%


share|improve this answer

Your Answer


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.