# Avoid issue with bracket size?

**URL:** <https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395>\
**Category:** Questions\
**Tags:** ui-ux-and-ide\
**Created:** [December 3, 2018, 10:30pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395 "2018-12-03T22:30:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![morganbourgeois](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@morganbourgeois](https://community.wolfram.com/u/morganbourgeois)\
**Post date:** [December 3, 2018, 10:30pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/1 "2018-12-03T22:30:52Z")

</div>

Hello,

I try to write a basic expression in mathematica.  
]-pi/2,pi/2[  
When I use open close brackets, their size match the size of the expression :

![1.jpg](https://global.discourse-cdn.com/wolfram/original/2X/9/90650198ac9a9beb84b3ed3f62e63d35d4459ef3.jpeg)

When I use open bracket on the left and close on the right, it is the same :

![2.jpg](https://global.discourse-cdn.com/wolfram/original/2X/c/c47f85ddba5551858d888335c10288b84e260f9d.jpeg)

But as soon as I want to use open bracket on the right of the expression, the right bracket display in small :

![3.jpg](https://global.discourse-cdn.com/wolfram/original/2X/8/8f815c0de75cafb0cdaa26830f71a740903873ba.jpeg)

Do you please have an idea how to fix this ?  
Thank you for kind help  
best Regards

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [December 4, 2018, 1:06am UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/2 "2018-12-04T01:06:41Z")

</div>

It is not clear exactly what you are trying to fix. Instead of images, please provide code that exhibits the problem.

---

<div class="post-metadata">

**Author:** ![morganbourgeois](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@morganbourgeois](https://community.wolfram.com/u/morganbourgeois)\
**Post date:** [December 4, 2018, 6:24am UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/3 "2018-12-04T06:24:30Z")

</div>

Hello,

in that case, code would not help understanding, only the image can help to understand, the images represent 3 Intervals. And as you may see, in the 3 one the size of character “[” does not match the size of the expression with pi/2.

the “[” is smaller it does not adapt to the expression between “[” and “]” … this is what I try to solve, not more.

When I have “[pi/2, pi/2]” “close/ close” the size ôf brackets adapt to the expression

When I have “]pi/2, pi/2 ]” open/close" the size of brackets adapt to the expression

When I have “[pi/2, pi/2[” close/open or “]pi/2,pi/2[” open, open, the size of the second bracket DOES NOT adapt. In other words, when I input and interval, the second bracket does not adapat the size of expression when it is open.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [December 4, 2018, 3:02pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/4 "2018-12-04T15:02:58Z")

</div>

Why would you expect the bracket sizes to change when the input is not valid syntax?

```
[Pi/2, Pi/2]
Syntax::tsntxi: "[Pi/2,Pi/2]" is incomplete; more input is needed.

] Pi/2, Pi/2]
Syntax::bktmop: Expression "]Pi/2" has no opening "[".

[Pi/2, Pi/2[
Syntax::bktmcp: Expression "2[" has no closing "]".

] Pi/2, Pi/2[
Syntax::bktmop: Expression "]Pi/2" has no opening "[".

```

---

<div class="post-metadata">

**Author:** ![morganbourgeois](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@morganbourgeois](https://community.wolfram.com/u/morganbourgeois)\
**Post date:** [December 4, 2018, 3:22pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/5 "2018-12-04T15:22:53Z")

</div>

Dear Rohit,

Please kindly read before answering 🙂

I don’t know how you tried to reproduce what I did but as I mentioned, when I input the interval with [a,b] it works cf., the bracket has the correct size (cf. the first screen shot on the first post), when I do ]a,b] it works as well (cf. the second screen shot on the first post).

Only when the second bracket is open do I have an issue (cf. the 3rd screen shot)

Showing the result is exactly the reason why I sent screen shots and not code in that case.

I’m not having any error message like yours it is a usual notation for an interval, that is why I expect the second bracket to have the same size as the expression.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [December 4, 2018, 4:48pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/6 "2018-12-04T16:48:04Z")

</div>

Hi Morgan,

Clearly there is some miscommunication here. 🙂

To reproduce what I reported in my last response, in a notebook Input cell type `[Pi/2,Pi/2]` and then Shift+Return to evaluate it.

The only explanation is that you are working in a Text cell, not an Input cell. For your third screenshot example the size of the left square bracket is determined by the size of what follows it

 ![ScreenShot2018-12-04at10.45.41.png](https://global.discourse-cdn.com/wolfram/original/3X/6/b/6b02d4235955b5c718866b699f2f07df1769c421.png)  
.

I do not know how to change that. Perhaps someone more familiar with typesetting can help.

Rohit

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [December 4, 2018, 6:11pm UTC](https://community.wolfram.com/t/avoid-issue-with-bracket-size/13395/7 "2018-12-04T18:11:38Z")

</div>

Not very satisfying, but here is a workaround:

```
With[{h = 35},
 DisplayForm[
  RowBox[{Style["[", h], "\[NegativeMediumSpace]", -Pi/2, ",", Pi/2, 
    "\[NegativeMediumSpace]", Style["[", h]}]]]

```
