![具有多个参数的函数](https://linux22.com/image/353590/%E5%85%B7%E6%9C%89%E5%A4%9A%E4%B8%AA%E5%8F%82%E6%95%B0%E7%9A%84%E5%87%BD%E6%95%B0.png)
答案1
答案2
以下是改变文本样式和显示样式大小的实现:
\documentclass{article}
\usepackage{amsmath,mathtools,xparse}
\NewDocumentCommand{\hyper}{mommmm}{%
\IfValueTF{#2}{\prescript{}{#2}{#1}^{}_{#3}}{#2^{}_{#3}}%
\innerhyper{{#4}{#5}{#6}}
}
\makeatletter
\newcommand{\innerhyper}[1]{\mathpalette\inner@hyper{#1}}
\newcommand{\inner@hyper}[2]{\inner@@hyper{#1}#2}
\newcommand{\inner@@hyper}[4]{%
\ifx#1\displaystyle\!\left(\else\bigl(\fi
\begin{\ifx#1\displaystyle\else small\fi matrix}
#2 \\ #3
\end{\ifx#1\displaystyle\else small\fi matrix}
\ifx#1\displaystyle\;\middle|\;\else\bigm|\fi
#4
\ifx#1\displaystyle\right)\else\bigr)\fi
}
\makeatother
\begin{document}
$\hyper{\phi}[2]{1}{az,a/z}{ab}{q,\frac{bt}{a}}$
\[
\hyper{\phi}[2]{1}{az,a/z}{ab}{q,\frac{bt}{a}}
\]
\end{document}