Message Boards Message Boards

1
|
7678 Views
|
8 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Making a half closed bracket for display?

Posted 11 years ago
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?
POSTED BY: Laurence Forshaw
8 Replies
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.
POSTED BY: Silvia Hao
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.
POSTED BY: Sander Huisman
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.
POSTED BY: Szabolcs Horvát
'To expand' ?
Do you have an photo of an example of how you would like it?
POSTED BY: Sander Huisman
That's passible,  although getting the [ and ) to expand the standard eclosing parentheses would be nice.
POSTED BY: Laurence Forshaw
What about specifiying a Format:
Format[HalfClosed[a__]]:=Row[{"[",Sequence@@Riffle[{a},","],")"}]
HalfClosed[3,x^2]
Is that what you want?
POSTED BY: Sander Huisman
Does not work if I want it to be part of a more complex expression.
POSTED BY: Laurence Forshaw
I think it would be easier to create a string "[a,b)"
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract