0

I would like to add a subscript to my equation. For example the following one:

W(P_{r}, P_{q}) = \min_{G} \max_{D \in \mathcal{D}} \mathbb{E}_{x \sim P_{r}}[D(x)]  - \mathbb{E}_{\hat{x} \sim P_{g}}[log(1 - D(\hat{x}))]

However, as it is the subscript to \mathbb{E} does not work beneath, but in the right down corner. I would like to achieve sth like:

enter image description here

How can I do so?

1 Answers1

2

Look with lot of attention to your formula...Use, for the future, \underset{}{} for \mathbb.

\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb}
\begin{document}
\[W(\mathbb{P}_{r}, \mathbb{P}_{q}) = \min_{G} \max_{D \in \mathcal{D}} \, \underset{x \sim \mathbb{P}_{r}}{\mathbb{E}}\log[D(x)]- \underset{\hat{x}\sim \mathbb{P}_{g}}{\mathbb{E}}[\log(1 - D(\hat{x}))]\]
\end{document}

enter image description here

Sebastiano
  • 54,118