Redefining latex macro using same name

后端 未结 1 504
后悔当初
后悔当初 2020-12-30 05:32

Currently I use a \\mytodo macro, which just calls \\todo[inline]:

\\newcommand{\\pbtodo}[1]{\\todo[inline]{#1}}

相关标签:
1条回答
  • 2020-12-30 06:31

    I often see advice on the web along the lines of:

    \let\Oldtodo\todo
    \renewcommand{\todo}[1]{\Oldtodo[inline]{#1}}
    

    for this situation. I believe that \let is a plain TeX feature.

    0 讨论(0)
提交回复
热议问题