来源:https://en.wikibooks.org/wiki/LaTeX/Macros
方括号中的参数其实就是默认参数。
使用方法:
\newcommand{name}[num][default]{definition} |
例子:
\newcommand{\wbalTwo}[2][Wikimedia]{ |
输出:
This is the Wikibook about LaTeX supported by Wikimedia and John Doe! |
来源:https://en.wikibooks.org/wiki/LaTeX/Macros
方括号中的参数其实就是默认参数。
使用方法:
\newcommand{name}[num][default]{definition} |
例子:
\newcommand{\wbalTwo}[2][Wikimedia]{ |
输出:
This is the Wikibook about LaTeX supported by Wikimedia and John Doe! |
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo