括号内为几行

括号内为几行

有人可以展示一种在乳胶中写类似内容的方法吗? 在此处输入图片描述

答案1

这是用户的近距离截图@arman haghighi。对于数学模式中的斜体无衬线字体,请参阅此链接:如何在数学模式下获得斜体无衬线?

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}


\begin{document}
\[\mathrm{Pr}\left[\begin{array}{l}
\mathsf{pp}, A_0\in\mathbb{G}\overset{\$}{\leftarrow}\textbf{\textit{Setup}}(\lambda)\\ 
A(x,w_x,w_y,u_x)\overset{\$}{\leftarrow}\mathcal{A}(\mathsf{pp},A_0)\\
\textbf{\textit{VerMem}}(A,x,w^{t}_{x})\wedge \textbf{\textit{VernotMem}}(A,x,u^{t}_{x})\end{array}\right]=\mathsf{negl}(\lambda)\]
\end{document}

在此处输入图片描述

答案2

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath}

\begin{document}
  \[
    X(m,n) = \left\{\begin{array}{lr}
        x(n), & \text{for } 0\leq n\leq 1\\
        x(n-1), & \text{for } 0\leq n\leq 1\\
        x(n-1), & \text{for } 0\leq n\leq 1
        \end{array}\right\} = xy
  \]
\end{document}

https://tex.stackexchange.com/a/240870/197451

或者

\documentclass{mwrep}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{matrix,decorations.pathreplacing}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Proin nibh augue, 
suscipit a, scelerisque sed, lacinia in, mi.
\begin{equation}
\bar{P}= 
\begin{tikzpicture}[baseline = (M.center),% center with respect to the matrix center
        every left delimiter/.style={xshift=1ex},%tighter delimiter spacing
        every right delimiter/.style={xshift=-1ex}]
\matrix (M) [matrix of math nodes,left delimiter={[},right delimiter={]} 
        ]{ 
                              0.3 & 0.1 & 0.6 & 0.0 & 0.0 & 0.0 & 0.0 \\
                              0.2 & 0.1 & 0.7 & 0.0 & 0.0 & 0.0 & 0.0 \\
                              0.3 & 0.4 & 0.3 & 0.0 & 0.0 & 0.0 & 0.0 \\
                              0.0 & 0.0 & 0.0 & 0.2 & 0.8 & 0.0 & 0.0 \\
                              0.0 & 0.0 & 0.0 & 0.3 & 0.7 & 0.0 & 0.0 \\
                              0.0 & 0.4 & 0.1 & 0.0 & 0.0 & 0.2 & 0.3 \\
                              0.0 & 0.0 & 0.1 & 0.0 & 0.3 & 0.1 & 0.5 \\
};
\node[anchor=south east] (cornernode) at (M-1-1.north west) {state}; %Position this more 
                                                                     %precisely if desired
\foreach[count=\xi] \x in {1,2,4,3,6,5,7}{ %\xi is the counter \x is the value
\node (M-\xi-0) at (cornernode |- M-\xi-1) {\x}; %Gets the left most column
\node (M-0-\xi) at (cornernode -| M-1-\xi) {\x}; % Gets the top row 
}
\draw[decoration=brace,decorate,blue] (M-0-1.north west) -- (M-0-3.north east)%
 node[midway,above] {$S_1$};
\draw[decoration=brace,decorate,blue] (M-0-4.north west) -- (M-0-5.north east)%
 node[midway,above] {$S_2$};
\end{tikzpicture}
\end{equation}
\end{document}

在此处输入图片描述 如何将 Tikz 绘图的尺寸添加到方程的尺寸中?(第 2 部分)

相关内容