
什麼?
我想將環境的定義「儲存」figure
到其中,\something
以便以下邏輯可以運作:
% the following line is what I am looking for
store(figure, \something)
% and then I want to achieve what follows
\renewenvironment{figure}{}{}
{}
\doalotofstuff
\renewenvironment{figure}
{get_the_initial_definition_from(\something)}
{get_the_final_definition_from(\something)}
% now I can again use \begin{figure}...\end{figure} with its usual definition
這可能並且容易實現嗎?
但為什麼?
我想禁用文件中某些部分的環境figure
,然後能夠再次取得環境figure
。這個問題與這個帖子(如果環境處於活動狀態,則該解決方案不起作用figure
)。