Reputation: 1
I am using $\pi(x|D)=\exp(-\mathcal{U}(x))$
this expression in overleaf, but I got the error "missing $". The problem is using the symbol "|", when I delete this character it works perfectly. How can I solve this problem?
Upvotes: 0
Views: 238
Reputation: 11
So, just did a quick check in my local MiKTeX installation. The line does indeed compile just fine. You may have some missing packages, or an error elsewhere in your document. Minimal working example:
\documentclass[a4paper,11pt]{article}
\begin{document}
$\pi(x|D)=\exp(-\mathcal{U}(x))$
\end{document}
Upvotes: 0