命令格式:
\newcommand{name}[num]{definition}
含义:
name:命令名称
num:参数个数,最大为9
definition:命令的具体定义
代码如下:
\documentclass[UTF8]{ctexart}
\newcommand{\helloword}[2]{ {\Huge 参数1:{#1} 参数2:{#2}}\\}
\begin{document}
\helloword{hello}{world}\\
\end{document}