6

Built-in functions in formulas copied as $\LaTeX$ code from output cells are sometimes messy. I'd like to find a way to simplify the way this code is generated.

There is one concrete instance that I'd like to raise:

**"Conjugate" is an exponent of blank, and adds brackets**: The expression $g_1^* g_2$, which produces `Out: Conjugate[Subscript[g, 1]] Subscript[g, 2]`

is copied as

```
g_2 \left(g_1\right){}^*
```

There is no need to use parentheses, or the exponent of blank. All this extra code just makes the expression more cluttered.

How can I personalize the way "Conjugate" is translated to Latex? My expected output would be "g_1^* g_2"

1

You are looking for customizing the output of TeXForm. There have been questions on this in the past, and you can find solutions like this one: https://mathematica.stackexchange.com/a/180460/12 Unfortunately, TeXForm does not officially support customization, so solutions you find here may not be fully robust or may break in future versions.

– Szabolcs – 2020-05-19T06:55:13.820Another one: https://mathematica.stackexchange.com/questions/47417/format-and-texform-does-not-work-as-expected

– Szabolcs – 2020-05-19T06:55:44.473