This question already has an answer here:

This is my first attempt to define my own environment. I fail with the number of parameters. LateX complains Illegal parameter number in definition of endperformance. This should be a standard textbook example but I can't see what I am doing wrong.

{} &   {Return} & {Annua Return} & {Volatility} & {Sharpe Ratio} & {Max DD} & {YTD}  & {2015}\\

marked as duplicate by egreg environments Jan 22 '16 at 13:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can not use the arguments in the end code, but you can save the caption: start the begin code with


then replace your existing \caption{#1} in the end code with \savedcaption

Not the answer you're looking for? Browse other questions tagged or ask your own question.