1

This is my code:

$$
\mathcal{P}_{\left\{ \resizebox{0.02\textwidth}{!}{$\displaystyle 
\begin{array}{l}
\mathcal{B} \\
\mathcal{F}
\end{array}$} \right\}} 
\Psi\left(\vec{r}_{1}, \vec{r}_{2}, \ldots, \vec{r}_{N}\right):=\frac{1}{N !} \sum_{P} \xi^{P} \Psi\left(\vec{r}_{P 1} \vec{r}_{P 2} \ldots \vec{r}_{P N}\right)
$$

enter image description here

however, notice how the curly brackets in the subscript are way too big and font way to small. My goal is to obtain something like this:

enter image description here

Thanks in advance

campa
  • 31,130
  • 1
    Welcome to TeX.SE! Please make your given code snippet be compilable, then we do not have to guess what you are doing ... – Mensch Mar 11 '24 at 11:22
  • Why are you using resize box in math in the first place? Most users should forget about ever having heard \resizebox. I'd use use Bsmallmatrix from mathtools. – daleif Mar 11 '24 at 11:26
  • 2
    never use resizebox on tables or other text it produces inconsistent font sizes, as you show – David Carlisle Mar 11 '24 at 11:41

1 Answers1

1

For a single occurrence you can (ab)use \substack from amsmath.

\documentclass{article}
\usepackage{amsmath}
\providecommand*{\coloneq}{\mathrel{\mathop:}=}
\begin{document}
\[
\mathcal{P}_{\left\{ \substack{\mathcal{B}\\[.5ex]\mathcal{F}} \right\}}
\Psi(\vec{r}_{1}, \vec{r}_{2}, \ldots, \vec{r}_{N})
\coloneq
\frac{1}{N !} \sum_{P} \xi^{P} \Psi(\vec{r}_{P 1} \vec{r}_{P 2} \ldots \vec{r}_{P N})
\]
\end{document}

enter image description here

Alternatively, if you need this kind of construct often you can define an appropriate macro based on \genfrac:

\documentclass{article}

\usepackage{amsmath} \makeatletter \newcommand{\foo}{\genfrac{}\z@{}} \makeatother \providecommand{\coloneq}{\mathrel{\mathop:}=}

\begin{document} [ \foo{\mathcal{B}}{\mathcal{F}}, \quad \mathcal{P}{\foo{\mathcal{B}}{\mathcal{F}}} \Psi(\vec{r}{1}, \vec{r}{2}, \ldots, \vec{r}{N}) \coloneq \frac{1}{N !} \sum_{P} \xi^{P} \Psi(\vec{r}{P 1} \vec{r}{P 2} \ldots \vec{r}_{P N}) ]

\end{document}

enter image description here

Use a better name than \foo.

In both cases I removed the useless occurrences of \left and \right, and replaced := by an appropriate macro with better alignment.

Please read also Why is \[ ... \] preferable to $$ ... $$?

campa
  • 31,130
  • 1
    Nice solution. For completeness Oberdiek wrote a package years back for ``:=and friends, at ctan ascolonequals. ` – yannisl Mar 11 '24 at 14:39