gives me this

\rho _{1,4} \left(-\gamma _a\right)

Is there a way to get Latex output without brackets? I want minus at the beginning.

-\rho _{1,4} \gamma _a

This is only part of very large expression.

  • 3
    $\begingroup$ Apply HoldForm before applying TeXForm. $\endgroup$
    – Szabolcs
    Mar 16, 2021 at 19:20
  • $\begingroup$ Thank you for answering, it works like this TeXForm[HoldForm[-Subscript[[Gamma], a]*Subscript[[Rho], 1, 4]]] but this is problem pp=-Subscript[[Gamma],a]*Subscript[[Rho],1,4] TeXForm[HoldForm[pp]] gives me \text{pp} do I have to copy-paste inside TeXForm[HoldForm[...]] every time? $\endgroup$
    – Jelena
    Mar 17, 2021 at 14:25
  • $\begingroup$ You can inject into HoldForm using With. With[{a=b}, HoldForm[a]] gives HoldForm[b]. $\endgroup$
    – Szabolcs
    Mar 17, 2021 at 14:40
  • 1
    $\begingroup$ great, that works With[{pp = -Subscript[[Gamma], a]*Subscript[[Rho], 1, 4]}, TeXForm[HoldForm[pp]]] but this too pp = -Subscript[[Gamma], a]*Subscript[[Rho], 1, 4] TeXForm[StandardForm[pp]] thanks a lot :) $\endgroup$
    – Jelena
    Mar 17, 2021 at 15:00


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.