Take the tour ×  I want to change color of particular
environment in document. For example wherever I found verbatim
environment or equation environment appears in my tex file. With
some global settings, I want to change it to some particular
color effect should be limited to that document.  For example
all the verbatim should change to yellow background. All of the
math mode should have text color red.  Doing it for each of the
text or modifying the environment is possible, how ever I am
interested in setting it once in preamble.  share|improve this
question Welcome to TeX.sx! I removed the beamer references in
your question because I'm pretty sure what you want to achieve
can be done in beamer just like in any other document. Hence,
the question could be made more widely applicable, which is
desirable on tex.sx. –  doncherry Feb 5 '12 at 12:08 add comment
2 Answers  up vote 11 down vote accepted  There is no general
solution. It depends on the enviroment. Some have dedicated
hooks, other you will have to r