Questions tagged [boxes]

Boxes are the underlying representation of two-dimensional forms in notebooks.

Filter by
Sorted by
Tagged with
2 votes
1 answer
39 views

How can I prevent my self-introduced integral sign being multiplied into the numerator of the integrand when converting the expression into TeXForm?

Recently I have been doing a lot of double and triple integrals. To my disappointment, MMA does not have built-in integral signs for those advanced or special integrals. Fortunately, I have found out ...
user avatar
  • 289
4 votes
2 answers
132 views

Make very long equals sign

My goto in LaTeX is \stackrel{\text{by obviousness}}{=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=} where I stick together enough equals signs ...
user avatar
  • 2,578
0 votes
0 answers
24 views

For DisplayForm[ButtonBox[ _String ]], "2%" displays as "2 x %". How to prevent this?

Seems that the ButtonBox is visually (not functionally) treating the String as an Expression. ...
user avatar
  • 53
5 votes
1 answer
146 views

How to recover these TemplateBox into normal form?

I often use $\TeX$ editor by Insert→Inline TeX Input in PlotLabel to label graphics: I will get a well-formed plot label: But when I Copy As Input Text and paste ...
user avatar
  • 23.1k
0 votes
0 answers
19 views

Modify typesetting of ↪ with MMA equivalent of \raisebox

I was going to ask about the MMA equivalent of $\TeX$'s \raisebox, since the character ↪ is way too high up in inline cells: vs from TeX Then I found it: ...
user avatar
  • 2,578
14 votes
1 answer
201 views

How to create a general AttachedCell toolbar?

For example, when an image is displayed in the frontend, the image suggestion toolbar, which is an AttachedCell, pops up: It can can be found here, among other ...
user avatar
1 vote
1 answer
90 views

How do I make a symbol for a second derivative?

In my script, I want the second derivative of a function to be a symbol that I can manipulate (i.e. give a value to, use in an expression, etc.). So I want to build a box for the expression:$$\frac{d^...
user avatar
  • 1,481
1 vote
2 answers
88 views

Generating PlotLabel with mathematical formatting

What's a good pattern to insert properly formatted matrices into PlotLabel? I'm trying to insert something like the following into my plot, where the matrix is ...
user avatar
0 votes
1 answer
37 views

How to change style/content of cell that is programmatically generated, using a checkbox?

I am programmatically generating some cells that have a checkbox along with some text. The following code creates a button which when clicked, creates such cells. ...
user avatar
  • 483
1 vote
0 answers
76 views

Whole 2 line code, producing a bug (infix operator)

Copy the following code, and create new 0 byte file, and paste the code and save it to TEST.nb ...
user avatar
  • 2,411
2 votes
1 answer
54 views

Can you use boxes to create a primed variable?

I want to use a symbol to distinguish $\lambda$ in one coordinate set from another $\lambda$ in another set. Traditionally, we'd use a prime symbol ' to do this (e.g. $\lambda'$). I tried using this ...
user avatar
  • 1,481
3 votes
1 answer
89 views

Panel, Pane, and Framed Alignment - Clipped Images, Negative Margins, ContentPadding

I'm trying to tightly wrap some expressions in containers (could be Panel, Pane, maybe Framed...
user avatar
  • 555
4 votes
3 answers
208 views

Is there a way to print simple roots as Root objects?

I like the typesetting of Root objects. For example: 3-Sqrt[2]+Sqrt[3]//RootReduce But can I get the same root object with its typesetting for simple roots like ...
user avatar
  • 8,075
5 votes
1 answer
105 views

Boxes with autocompletion

Entities have this nice autocompletion of properties: How do I define autocompletion for my own boxes that behave the same way?
user avatar
  • 7,075
3 votes
1 answer
44 views

How to make boxes independent from those cell-formatting options?

In a cell whose LanguageCategory option is "Input", boxes will be syntax-highlighted. Is there any way to diasble such ...
user avatar
  • 553
3 votes
0 answers
107 views

Is there any way to change the box-formatting behavior thoroughly?

Background The box-formmating behavior is affected by the downvalues of the symbol MakeBoxes. But the formatting behavior is not exactly ...
user avatar
  • 553
4 votes
1 answer
84 views

Custom object display in Dataset using MakeBoxes

The below code defines a couple "objects" in the Mathematica sense using a convention consisting of so-called Q-functions for creating types and data validation, ...
user avatar
  • 572
5 votes
3 answers
101 views

How do I turn off StandardForm formatting for Piecewise, KroneckerDelta and ConditionalExpression?

I find the StandardForm formatting for Piecewise, KroneckerDelta, and ...
user avatar
2 votes
0 answers
33 views

What's going on with \> and \< in strings? [duplicate]

What exactly do \> and \< do in Mathematica strings (e.g. "ab\>c")? They ...
user avatar
  • 7,604
3 votes
1 answer
174 views

Symbolized, Subscripted Variable Doesn't Look Pretty

Background I'm trying to programmatically generate a subscripted variable in a way that makes it appear "pretty". Here is a minimal working example that shows some strange behavior I'm ...
user avatar
  • 493
0 votes
0 answers
52 views

Boxes Bug in 10.0.2.0

Mathematica 10.0.2.0, specifically: 10.0 for Mac OS X x86 (64-bit) (December 4, 2014) ReleaseID 10.0.2.0 (5206630, 2014120404), PatchLevel 0 appears to have a bug in handling boxes. The ...
user avatar
  • 339
3 votes
1 answer
123 views

TagBox Column and comments

This provides a useful input format, extendable with Ctrl+Enter: ...
user avatar
  • 264k
6 votes
1 answer
145 views

Convert between string and expression representation of boxes

Boxes may be represented as expressions or as strings. How can I convert between the two forms? In particular, how can I convert from the string representation to the expression representation? ...
user avatar
  • 224k
2 votes
0 answers
47 views

Why does Parenthesize add parentheses here?

I've been playing around with the Notation` package and box forms for some custom notation recently. I discovered a nifty function named ...
user avatar
1 vote
0 answers
297 views

Unknown Box Name (ToBoxes) Error

I'm getting the following error in Mathematica What is going on? How do I avoid such an error? In order to roughly understand how I'm getting this error, here is a bit of context: I'm using ...
user avatar
  • 4,138
1 vote
0 answers
45 views

How to do indentation of nesting of Associations, Lists and other heads?

I was looking at the presentation about Wolfram's Symbolic ERP Project and in this video, they had functions to do nice indentation of nested Associations, ...
user avatar
  • 8,075
1 vote
0 answers
60 views

How do Mathematica processes DynamicBox? [closed]

I've heard that Mathematica uses a session ad hoc to process DynamicBox, but I don't know any detail. I am using DynamicBox in ...
user avatar
7 votes
1 answer
137 views

Quick way to preview and tweak styles?

I find the old stylesheet UI clunky and hard to use: FrontEndExecute @ FrontEndToken @ "EditStyleDefinitions" There's also the clunky style previewer as well: ...
user avatar
  • 30.2k
0 votes
0 answers
78 views

How can I programmatically extract the text content from a Notebook's cell definition? [duplicate]

Given the Notebook cell definition below from the Wolfram Function Repository as an example: ...
user avatar
3 votes
1 answer
58 views

How define boxes to avoid parenthesis

The following definition for boxes in TraditionalForm formats as $\{a,b\}\{c,d\}$ (for simplicty, it matches only if the arguments literally are ...
user avatar
3 votes
1 answer
160 views

Updating a Dynamic variable based on another variable's change

In a dynamic interface, I am using a custom replacement for InputField that tracks two things separately: The value of the variable that is input. The boxes that ...
user avatar
  • 2,209
0 votes
1 answer
47 views

How to generate a list (or even a sequence or a string) containing {x[1]==0&&x[2]==0&&...&&x[10]==0?

I need to solve a bunch of systems of n equations in n unknowns where n varies. I can do ...
user avatar
  • 411
2 votes
2 answers
138 views

InterpretationBox problem with symbolic expressions

Related to this question, Why does this InterpretationBox construct work when x, y are ...
user avatar
  • 14.8k
17 votes
1 answer
325 views

How to make version 12 print Root objects to screen normally as in earlier versions?

From clean kernel, when typing result = Reduce[2 d^2 == -((2*(1 + d) + ((4 d^3)/(1 - d)))*(d - 1)),d] Here what version 12 displays on the screen, compared to ...
user avatar
  • 108k
1 vote
1 answer
53 views

Setting Editable and Selectable False within Notation

Using the Notation package, I have a custom notation defined for chemical reactions. A minimal example is below (I will explain the commented-out part in a moment): ...
user avatar
  • 2,209
2 votes
1 answer
93 views

SubsuperscriptBox and SuperStar

I have a notational reason (using the Notations package) to have some symbols display as C*60 (with the 60 lined up under the *). Internally, this is represented in Mathematica as: ...
user avatar
  • 2,209
3 votes
0 answers
58 views

Are there any good tutorials on Boxes?

I am fairly competent in Mathematica, but I admit that I am baffled by Boxes, both making boxes and converting boxes back into expressions. I want to educate myself,...
user avatar
  • 3,236
6 votes
2 answers
243 views

How to build a TemplateBox with dynamic length GridBox?

I have created the following TemplateBox Rule. ...
user avatar
  • 8,075
3 votes
2 answers
220 views

Show additional box border in 3D plot

How to best draw an additional box boder at {x, y, 0} as indicated by the red arrow below? PlotRange is ...
user avatar
  • 591
4 votes
0 answers
60 views

How to make custom attached menubars? [duplicate]

I would like to understand how to build an attached menubar. For example, Image has the following bar - an attached cell that arises when clicked on: ...
user avatar
  • 30.2k
4 votes
2 answers
294 views

Using Symbolize to Convert Multiple Variables at Once

So, I have created a list of subscripted and overdotted variables that I would like to symbolize, so I run them through a for loop. Seems to me that this would work? Any help is appreciated. ...
user avatar
  • 125
0 votes
0 answers
82 views

How to rasterize huge fonts

If ...
user avatar
  • 1,094
9 votes
1 answer
192 views

How to defer creating/displaying boxes in front end until requested?

If the size of an output expression is larger than threshold ByteCount, the front end will display an abbreviated version of it by producing an ...
user avatar
6 votes
2 answers
265 views

Export Table with URL as HTML?

This is expression: ...
user avatar
  • 6,656
2 votes
0 answers
75 views

Why doesn't the low-level box representation of a graph with VertexLabels use GraphicsComplex?

Compare following two low-level box representations of a graph without VertexLabels and one with VertexLabels set to ...
user avatar
  • 677
2 votes
1 answer
139 views

ToExpression and RowBox -- orderings

With: ToExpression[RowBox[{"c", ToBoxes[Plot[Sin[x], {x, -2, 2}]], "a"}]] I get the three elements of the array, but with "a" and then "c" at the beginning. I ...
user avatar
6 votes
1 answer
239 views

TagBox + InterpretationBox vs ConvertTo/StandardForm

There appears to be a problem with a menu command Convert To / StandardForm (Crtl+Shift+N) with respect to InterpretationBox ...
user avatar
  • 132k
7 votes
4 answers
479 views

Make a custom object look like MatrixForm of a matrix?

Let's say I have a custom object that I denote Obj[a,b,c,...] There are always n^2 entries in the object for some integer <...
user avatar
  • 11.5k
5 votes
0 answers
294 views

How to prevent formatting as Mathematica code in inline cells?

We can start a new inline cell using Insert → Typesetting → Start Inline Cell. This is often used to insert mathematical formulae in text cells. Instead, I want to use it to insert small bits of non-...
user avatar
  • 224k
6 votes
1 answer
226 views

How to display fractional expression like this?

For example: The default output is I want to the output display like I noticed that FractionBoxOptions, but couldn't find a appropriate options.
user avatar
  • 6,510