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 using the epigraphs package, but try to redefine the epigraphs environment (to later on add something to it, e.g. a page break before). So I thought I do it like this:

\let\internepigraphs\epigraphs
\renewenvironment{epigraphs}{\begin{internepigraphs}}{\end{internepigraphs}}

But I get a few errors:

l.4 \end{epigraphs}
LaTeX Error: \begin{minipage} on input line 1 ended by \end{epigraphs}.

l.4 \end{epigraphs}                   
Missing } inserted.

The code runs without the definition of renewenvironment, but otherwise not. Am I doing something wrong here?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

You have saved the begin code but not the end code of the original environment you need

\let\endinternepigraphs\endepigraphs
share|improve this answer
    
Ahhh! Thanks a lot! What a stupid mistake! I started with renewcommand and so I completely forgot about it! –  navige Jan 8 '13 at 11:52
add comment

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.