
我正在嘗試對我的一個符號進行編碼,這樣我就不想每次需要引入新序列時都重複。我想這樣編碼
\documentclass{article}
\usepackage{mathtools}
\DeclarePairedDelimiter\sequence1{\{}{\}_{i=1}^{n}}
\begin{document}
\[\sequence1{X_i}\]
\end{document}
由於某種原因,這對我不起作用。有人可以幫忙嗎
我期待著編碼\sequence1{X_i}
,它給了我$\{X_i\}_{i=1}^{n}
乳膠。
感謝您的協助