I would like to display some formulae in a Mathematica notebook. For this I would like to have a function like
DisplayLaTeX[latex_String] := Module[{modlatex}, modlatex:=StringReplace[latex,"\\"->"\\\\"]; CellPrint@Cell[BoxData[ToBoxes[DisplayForm@ToExpression[modlatex, TeXForm, HoldForm]]], "Text"] ]; taking regular LaTeX syntax (with only single backslashes) as an input.
With the above approach, Mathematica already evaluates escape sequences like \f, \s, ... before doing the StringReplace and thus renders expressions like
DisplayLaTeX["\zeta(n_1,\ldots,n_r)=\sum_{0<k_1<\cdots<k_r}\frac{1}{k_1^{n_1}\cdots k_r^{n_r}}"] incorrectly. What would be the correct way to achieve a proper rendering?