如何修复定义中的非法参数

如何修复定义中的非法参数

我的较大文档中的这小段代码不起作用

\def\saliva#1#2{%
\makebox[\textwidth]{\mbox{\parbox{\textwidth}{
\event{#1}{$\hbar$}{Collect saliva  \underline{in sleep laboratory suite}} \newline
Obtain the Salivette for \textbf{\underline{saliva sample \##2}} for each subject \newline
Also collect a cotton swab for each subject \newline
\underline{Verify that you have the correct tubes!} {\textbf{This is saliva sample \##2}} \newline
Refer to saliva collection procedures posted on the board in sleep lab kitchenette \newline
Have participants place swab \textbf{under the tongue} and collect saliva for \textbf{2 minutes} \newline
At the end of 2 minutes, ask each subject if the cotton swab feels saturated \newline
If the swab is \textbf{not saturated}, collected saliva for an additional minute and note in protocol \newline
Quickly take the Salivettes to the exam room and give to the trained RA for processing}}}}

它给出了以下错误:

Illegal parameter number in definition of \saliva#1#2

代码已经过测试,其他方面运行良好。有人能帮忙吗?

相关内容