1

What I want to do is to include two lines at the begging in an one-line equation, just like in the following picture.

enter image description here

Does anyone have any idea in order to achieve it? Thanks a lot.

2 Answers2

3

enter image description here

Please always post a complete document not just a fragment:

\documentclass[12pt]{article}

\begin{document}


\[
\max_{x\in\mathcal{J}(k)}\left\{ \sum_a^b something \middle| something\right\}
\]

\end{document}
David Carlisle
  • 757,742
  • I'd say that the outer fences a excessively large and the \middle| needs spacing around it. My solution to a similar problem http://tex.stackexchange.com/a/167749/3929 – daleif Apr 02 '14 at 14:04
  • @daleif yes, agreed. and something shouldn't be set in math italic, but I decided not to address those here and concentrate on the question about the subscript to max. – David Carlisle Apr 02 '14 at 14:09
1

Using mathtools (that loads amsmathanyway) and its DeclarePairedDelimiterX command, you can have a better spacing for |, and a better control on the size of the braces:

    \documentclass[12pt,a4paper,leqno]{article}

\usepackage[utf8]{inputenc}
\usepackage{amssymb, mathtools}
\usepackage{textcomp} 

\DeclarePairedDelimiterX{\set}[2]{\{}{\}}{#1 \delimsize\vert #2}
\newcommand*\Set[1]{\set*{#1}}
\DeclarePairedDelimiter\abs{\lvert}{\rvert}

\let\emptyset\varnothing    

\begin{document} 
\begin{align}
\tag*{With \texttt{\textbackslash Big}:}       &  \max_{\mathbf x \in \mathcal J(\mathbf K)}\!{\set[\Big]{\sum_{i\in I}\mathcal G_{i  \abs{C_i}}(\mathbf{\Pi}_i, y_i, \emptyset)}{(\mathbf\Pi, y_i)\in \mathcal N(\mathbf x_i)}} \\
\tag*{With \texttt{\textbackslash bigg}:}       & \max_{\mathbf x \in \mathcal J(\mathbf K)}\!{\set[\bigg]{\sum_{i\in I}\mathcal G_{i  \abs{C_i}}(\mathbf{\Pi}_i, y_i, \emptyset)}{(\mathbf\Pi, y_i)\in \mathcal N(\mathbf x_i)}}\\
\tag*{With an implicit \texttt{\textbackslash left}:}        & \max_{\mathbf x \in \mathcal J(\mathbf K)}\!{\Set{\sum_{i\in I}\mathcal G_{i  \abs{C_i}}(\mathbf{\Pi}_i, y_i, \emptyset)}{(\mathbf\Pi, y_i)\in \mathcal N(\mathbf x_i)}}
\end{align}

\end{document} 

enter image description here

Bernard
  • 271,350