我试图创建一个构建列向量的环境,并将行之间距离的比例因子作为输入:
\newenvironment{VEC}[1]{\begin{Bmatrix}\renewcommand{\arraystretch}{#1}}
{\end{Bmatrix}} 我知道\newenvironment命令只接受输入字符串,所以我尝试使用\value{#1}没有成功的结果。任何帮助都将不胜感激。
发布于 2022-10-23 13:57:34
与newenvironment或参数无关,只需切换顺序:
\documentclass{article}
\usepackage{mathtools}
\newenvironment{VEC}[1]{\renewcommand{\arraystretch}{#1}\begin{Bmatrix}}
{\end{Bmatrix}}
\begin{document}
\[
\begin{VEC}{3}
4\\
6\\
\end{VEC}
\]
\end{document}https://stackoverflow.com/questions/74171620
复制相似问题