Any way to make my equations look better, more Latex like?
Typesetting in Text cells
Cell[TextData[Cell[BoxData[
FormBox[
RowBox[{
FractionBox["1", "N"],
RowBox[{
UnderoverscriptBox["\[Sum]",
RowBox[{"i", "=", "1"}], "N"],
FractionBox[
RowBox[{
SubsuperscriptBox[
OverscriptBox["x","~"],
"j", "i"],
"(",
RowBox[{"k", "|", "k"}], ")"}],
SqrtBox[
RowBox[{
SubscriptBox["P", "jj"], "(",
RowBox[{"k", "|", "k"}], ")"}]]]}]}],
TraditionalForm]]]], "Text",
UnderoverscriptBoxOptions->{LimitsPositioning->False},
OverscriptBoxOptions->{DiacriticalPositioning->True},
FractionBoxOptions->{AllowScriptLevelChange->False}]
gives
This was typeset in a text cell by starting with Ctrl-9 and then typing
The default ScriptLevel
for inline cells is 1 so I set that to 0 in a private style (Format > Edit Stylesheet):
The additional UnderoverscriptBox
, OverscriptBox
and FractionBox
options were set via the option inspector. You can do additional tweeking by nudging terms around via Insert > Typesetting.
Typesetting in Input cells
Wrapping TraditionalForm
around your expression, as per your updated question, is intended to render the output as traditional form. However your question seems to be framed around having traditional looking equations that -- based on your update -- can be evaluated.
If you want all you input and output to appear like this then set this globally in your preferences:
Then in your input cells you can type the equation and it will appear in traditional form:
If you only want to convert certain cells then either make the changes via the menu Cell > Convert To or via a right click:
which produces:
You can use MaTeX to get $\LaTeX$ formatting directly:
MaTeX["\\frac{1}{N}{\\sum _{i=1}^N \\frac{\\tilde{x}_j^i(k|k)}{\\sqrt{P_{\\text{jj}} (k|k)}}}"]
MaTeX
can also be applied directly to Mathematica expressions, but then you'll get the non-ideal translation to $\LaTeX$ code you mention yourself because MaTeX uses Mathematica's builtin TeXForm
for this.