3

I used this code to inset a mathematical formula in my two-columns text.

($Prob_{SVM}-Prob_{MLP}$)

enter image description here

Comparing to normal text, Isn't it a little big and inappropriate? How can i fix it?

3
  • 4
    I'd write$(Prob_{\text{SVM}} - ... )$ or better, you can define a new operator \Prob.
    – Sigur
    Apr 27, 2015 at 8:13
  • 4
    I suggest you follow @Sigur's suggestion because $Prob$ will show as the product of $P$, $r$, $o$, and $b$. You can define your own math operators with the \DeclareMathOperator macro, which is defined in the amsmath package. (Also see this presentation.)
    – user10274
    Apr 27, 2015 at 8:28
  • 3
    BTW, \text{Prob} also works, but creating a new operator improves the horizontal spacing. Apr 27, 2015 at 18:25

1 Answer 1

4

Here are a solution and some fakes codes with similar outputs.

\documentclass[11pt,a4paper]{report}
\usepackage{amsmath}
\DeclareMathOperator{\Prob}{Prob}
\begin{document}
% best way
$( \Prob_{\text{SVM}} - \Prob_{\text{MLP}} )$

% fake
$( \text{Prob}_{\text{SVM}} - \text{Prob}_{\text{MLP}} )$

% ugly: product of constants P r o b
$( Prob_{\text{SVM}} - Prob_{\text{MLP}} )$
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .