1
\documentclass[a4paper,12pt]{article}   
\usepackage{mathtools}

\begin{document}
\begin{equation}
    \mathcal{A}(x) \coloneqq \left\{
    \pi(t) \text{ prog. mbl. } \bigg \vert \: \begin{split}
        & E(U(X^{\pi,x}(T))^-) < \infty, X^{\pi,x}(T) \geq B \text{ a.s.}, \\
        & \int_0^{T} \Vert \pi(t)X^{\pi,x}(t)\Vert^2 dt < \infty a.s.
    \end{split}  \right\}
\end{equation}

\end{document}

produces

thisShit

Is there a way to adapt the vertical line s.t. it spans across both lines, separated by \split? Thanks.

1
  • 1
    Since you're using left/right use middle instead of bigg. Also I'd probably used aligned instead of split, but that is just a personal preference. Since you're using mathtools see the manual for a Set construction with automatic sizing of the vertical bar, that's what 7 normally use instead of doing this by hand
    – daleif
    Nov 18, 2019 at 17:10

2 Answers 2

2

You want to use \middle and aligned:

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

\begin{document}
\begin{equation}
\mathcal{A}(x) \coloneqq 
\left\{
    \pi(t) \text{ prog. mbl.} 
\;\middle\vert\;
\begin{aligned}
  & E(U(X^{\pi,x}(T))^-) < \infty, X^{\pi,x}(T) \geq B \text{ a.s.}, \\
  & \int_0^{T} \lVert \pi(t)X^{\pi,x}(t)\rVert^2 \,dt < \infty \text{ a.s.}
\end{aligned}
\right\}
\end{equation}

\end{document}

enter image description here

Note \lVert and \rVert rather the unqualified \Vert. The correct spacing for relations is \;.

In this particular case, you can fool TeX into thinking that the equation number fits, see https://tex.stackexchange.com/a/348745/4427

\documentclass[a4paper,12pt]{article}   
\usepackage{mathtools,showframe}

\begin{document}
\begin{equation}
\mathcal{A}(x) \coloneqq 
\left\{
    \pi(t) \text{ prog. mbl.} 
\;\middle\vert\;
\begin{aligned}
  & E(U(X^{\pi,x}(T))^-) < \infty, X^{\pi,x}(T) \geq B \text{ a.s.}, \\
  & \int_0^{T} \lVert \pi(t)X^{\pi,x}(t)\rVert^2 \,dt < \infty \text{ a.s.}
\end{aligned}
\right\}
\hspace{10000pt minus 1fil}
\end{equation}

\end{document}

I added showframe just to see that the equation still fits in the margins.

enter image description here

2

with use of the array environment:

\documentclass[a4paper,12pt]{article}
\usepackage{mathtools}
\DeclarePairedDelimiter\norm{\lVert}{\rVert}

\begin{document}
\begin{equation}
    \mathcal{A}(x) \coloneqq \left\{
    \pi(t) \text{ prog. mbl.} \;
    \begin{array}{| l @{}}
    E(U(X^{\pi,x}(T))^-) < \infty,\, X^{\pi,x}(T) \geq B \text{ a.s.}, \\
    \int\limits_0^{T} \norm*{\pi(t)X^{\pi,x(t)}}^2 dt  < \infty  \text{ a.s.}.
    \end{array}  \right\}
\end{equation}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .