# How to remove \left( \right)

latex(2^(3*x)) gives 2^{3\, x} this is fine, but

latex(e^(3*x)) gives e^{\left(3\, x \right)}.

How can i change this behaviour?

Thanks for help

How to remove \left( \right)

latex(2^(3*x)) gives 2^{3\, x} this is fine, but

latex(e^(3*x)) gives e^{\left(3\, x \right)}.

How can i change this behaviour?

Thanks for help

add a comment

0

This is *not* an answer, but just diagnosing.

```
sage: a = e^(3*x)
sage: b = 2^(3*x)
sage: a.operands()
[3*x]
sage: b.operands()
[2, 3*x]
sage: a.operator()
exp
sage: b.operator()
<built-in function pow>
```

We treat the exponential function differently, because it's considered a function in that sense. Since there are no extra operands, our LaTeX method senses the need for parentheses. This would have to be fixed at the Pynac level, if one were to consider it a bug.

Asked: **
2012-03-06 22:30:06 -0500
**

Seen: **105 times**

Last updated: **Mar 07 '12**

"showing" both input and output

Variant Greek letters in "latex_name"

Error in mathjax_sage.js. What's wrong with my configuration?

Is there a function to render latex or html in a notebook from a string ?

Typesetting text in TeX view()

latex typesetting for derivatives like g'

How to give latex names to generators of polynomial rings?

Read from csv-file, write results in new columns in the same csv-file

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.