GeneralLaTeX Error: Command \AtBeginEnvironment already defined

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

LaTeX Error: Command \AtBeginEnvironment already defined

Post by manojg »

Hi,

I wanted to use mdframed for text shadow. After installing it, it required me to install l3packages, l3kernel, l3experimental and etoolbox. However, after installing etoolbox packages, I got following error:

Code: Select all

 LaTeX Error: Command \AtBeginEnvironment already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1657   \csgappto{@begin@#1@hook}}
I am sure it is a conflict between two packages but I don't know how to fix this. Any suggestion?

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX Error: Command \AtBeginEnvironment already defined

Post by Stefan Kottwitz »

manojg wrote:I am sure it is a conflict between two packages
That's possible. While installed packages don't matter, it's important which packages you load in your document. So check your document preamble, or post it here. We could see the packages then. Usually, it's a good idea to post a Infominimal working example which produces the error.

Stefan
LaTeX.org admin
Post Reply