0

There's something really wrong with this combination:

\documentclass{article}
\usepackage{libertine}
\usepackage{MnSymbol}
\usepackage[libertine]{newtxmath}

\begin{document} sdfsdfsldkfsld skdj sldkf sdsd \begin{equation} \overbrace{p(\theta | x)}^{\text{posterior}} = \frac{\overbrace{p(x | \theta)}^{\text{likelihood}}; \overbrace{p(\theta)}^{\text{prior}}}{p(x)}, \end{equation} \end{document}

Instead of overbraces, some integrals occur:

Bayes' theorem with wrong formatting

How do I fix this?

  • Are you sure you need MnSymbol? – Davislor Oct 18 '20 at 17:01
  • @Davislor I have already decided I don't :) I just didn't like the product symbol with only Libertine & newtxmath and was trying out things. But I thought it'd make a useful answer anyway. – phipsgabler Oct 18 '20 at 17:07
  • Then this might be useful as well: https://tex.stackexchange.com/questions/174814/how-to-get-only-one-symbol-from-a-symbol-package/565640#565640 – Davislor Oct 18 '20 at 17:49
  • 1
    Thanks, I do in fact use a similar method described here: https://tex.stackexchange.com/a/246205/46356, with some tweaking for getting text and display variants right. – phipsgabler Oct 18 '20 at 17:53
  • MnSymbol is specific for use with Minion as text font. – egreg Oct 18 '20 at 22:28

1 Answers1

1

To work together correctly, newtxmath needs to be loaded before MnSymbol:

\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage{MnSymbol}