I would like to create a new environment to provide some LaTeX code (or from other languages)
So far, I tried the following code
\usepackage{bclogo} \newenvironment{code} { \begin{bclogo} [couleur = black!10, couleurBord = black!50, arrondi = 0.1, logo = \bccrayon] {Code \LaTeX :} \bigskip \begin{verbatim} } { \end{verbatim} \end{bclogo} } But, this creates an error during the compilation...
! File ended while scanning use of \next. \par <*> essai3.tex
I suspect you have forgotten a '}', causing me to read past where you wanted me to stop. I'll try to recover; but if the error is serious, you'd better type
E' orX' now and fix your file.! Emergency stop. <*> essai3.tex
*** (job aborted, no legal \end found)
Here is how much of TeX's memory you used:
...
! ==> Fatal error occurred, no output PDF file produced!
If someone have an idea to get through this error, I would sincerely say "Thank you very much, Master"


tcolorboxand itstcblistingfeature which provides nice boxes too combined with listings.