I'm using the class: tufte-handout and I need a new coloured environment for data, examples and details that I want to highlight.
I found this question (with answer) that is literally what I want. It create a coloured rectangle with a caption.
If I copy and paste the code, I actually obtain the result that I want with a working caption, but the software shows an error message at the end of the compilation: "Undefined control sequence. \end{example}" and "Missing number, treated as zero. \end{example}". The error message (both combined) is repeated like 3 times.
The MWE is (the answer from Gonzalo Medina):
Caption placement for new float in tufte-book class
(The second one, with the code for the colouration integrated in the definition of the new environment.)
If I copy the MWE provided in the answer, the result is good and without error, if I change only the class (handout instead of book) I obtain the same result but with the error message.
The pdf is ok, but the message itself annoys me. I would have commented on the other discussion, but I haven't the point to that...
There is a way to solve this or to block the showing of the error message?
Thanks,
Drew