数学模式中需要虚线或点线可扩展右括号

数学模式中需要虚线或点线可扩展右括号

如何在“cases”环境中排版右括号,使其与左括号的缩放方式相似,并且同时为虚线或点线?下面的代码几乎没问题——除了花括号不是虚线。在下面的图片中,它是手动虚线。缩放括号内的数学对象是两到三行不同高度的数组。(来自虚线或点线括号或方括号很难自动获得与前面的右括号相同的大小和相同的垂直位置。至少我不知道如何做到这一点。)

\documentclass[twocolumn,a4paper]{article}
\usepackage{mleftright,amsmath}
\begin{document}
\(\ldots\text{some consequence}\ldots\ \Leftarrow\)
{\abovedisplayskip=0ex\belowdisplayskip=0ex%
\begin{equation}\label{A}
\mleft.\mleft(
\begin{array}{c}
\text{some condition in the 1st line}\\
\text{another condition in the 2nd line}
\end{array}
\mright).\quad \mright\}
\end{equation}}\vspace{\belowdisplayskip}

Later we refer to \eqref{A}.
\end{document}

目标

答案1

我可以做到,但方法略有不同。我定义\dashlbrc\dashrbrc使用 OP 所引述的问题,然后使用 \scaleleftright{}{}{}我的scalerel包中的方法来让它们缩放到中心材料的大小。

\documentclass[twocolumn,a4paper]{article}
\usepackage{mleftright,amsmath,tikz,scalerel}
\usetikzlibrary{decorations.pathreplacing}
\def\dshlbrc{\tikz{%
  \draw [dashed, decorate, decoration={brace, amplitude=10pt}] (0,0) -- (0,2);
  }%
}
\def\dshrbrc{\tikz{%
  \draw [dashed, decorate, decoration={brace, amplitude=10pt}] (2,2) -- (2,0);
  }%
}
\begin{document}
\(\ldots\text{some consequence}\ldots\ \Leftarrow\)
{\abovedisplayskip=0ex\belowdisplayskip=0ex%
\begin{equation}\label{A}
\scaleleftright{.}{\mleft(
\begin{array}{c}
\text{some condition in the 1st line}\\
\text{another condition in the 2nd line}
\end{array}
\mright).\quad}{\dshrbrc}
\end{equation}}\vspace{\belowdisplayskip}

Later we refer to \eqref{A}.
\end{document}

在此处输入图片描述

相关内容