When I attempt to make a half closed interval [a,b) in DisplayMath(Not for computation) Mathematica does not recognize that the bracket is paired with the parenthesis and the sizing gets funny. Anybody know a way to make it recognize this?
I think it would be easier to create a string “[a,b)”
Does not work if I want it to be part of a more complex expression.
What about specifiying a Format:
Format[HalfClosed[a__]]:=Row[{"[",Sequence@@Riffle[{a},","],")"}]
HalfClosed[3,x^2]
Is that what you want?
That’s passible, although getting the [ and ) to expand the standard eclosing parentheses would be nice.
‘To expand’ ?
Do you have an photo of an example of how you would like it?
I think what he means is that the sizing is not good with e.g. HalfClosed[3, x^2/2]. The brackets should grow to match the size of the enclosed content.
DisplayMath is LaTeX right?
You can use \left and \right commands, and also the \big, \Big, \bigg, \Bigg commands. or pair them with invisible braces \right. \left. (notice the extra dot).
Again, without a proper example this is really hard to answer.
I think you can achieve that by adding an option to the DisplayFormula cells, or simply add it to the stylesheet. Just click Format → Edit Stylesheet, find the styles you want to modify, add the following option to them:
SpanMaxSize -> Infinity
Also you can refer to this detailed video I recorded about how to edit the stylesheet.