Questions tagged [boxes]

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

1
vote
1answer
24 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): ...
0
votes
0answers
25 views

Programmatically get InputText of box structure without spaces

I am looking for a way to get something similar to the "Input Text" form of an arbitrary box structure, but without the extra whitespaces. Before I explain the requirements in a bit more detail, let'...
2
votes
1answer
66 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: ...
3
votes
0answers
42 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,...
6
votes
2answers
105 views

How to build a TemplateBox with dynamic length GridBox?

I have created the following TemplateBox Rule. ...
3
votes
2answers
86 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 ...
3
votes
0answers
42 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: ...
3
votes
2answers
58 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. ...
0
votes
0answers
70 views

How to rasterize huge fonts

If ...
0
votes
0answers
40 views

Is it possible to have something similar to a chatbot in mathematica?

I was thinking about doing something similiar to a chatbot, my idea was to work with CreateDialog, but in a way, that the follow up is conditional on the answer of the previous question and pops up ...
9
votes
1answer
156 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 ...
5
votes
2answers
151 views

Export Table with URL as HTML?

This is expression: ...
2
votes
0answers
59 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 ...
2
votes
1answer
101 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 ...
6
votes
1answer
159 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 ...
5
votes
4answers
344 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 <...
5
votes
0answers
185 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-...
4
votes
1answer
71 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.
3
votes
2answers
86 views

Correct 2D representation in a message string

Message knows how to convert an expression (taken as an argument) into a string before it is spliced into an actual message: If I run the following in my terminal ...
4
votes
1answer
110 views

How to make TeXForm use TemplateBox to generate code?

If I define the TraditionalForm formatting of myFunction without TemplateBox, then ...
5
votes
3answers
183 views

Dynamically updated AccountingForm

Bug introduced in 10.4 or earlier and persisting through 11.1.1 CASE:3918306 confirmed I freshly installed Wolfram Mathematica. I can't quite remember how to output a dynamically updated variable ...
4
votes
2answers
88 views

Is MakeBoxes applied recursively, or just at top level?

I ask because I'm trying to make Times[a, z^-1] //TraditionalForm display as $a z^{-1}$ rather than $a/z$. If I write ...
3
votes
1answer
92 views

MakeExpression can't deal with FE boxes riffled with whitespaces

Bug introduced in 10.4 or earlier and persisting through 11.3 CASE:3910218 When you input { 1 , 2 } (*spaces intended, retype them if you want to copy this*) ...
5
votes
2answers
350 views

Symbolize Does Not Work in `.m` Files or What?

I have a .nb (notebook) file which I should convert to a .m (mathematica package) file to run it remotely from command line of a ...
4
votes
1answer
65 views

How to hyperlink a plot output?

I would like to adapt the following instructions How to create a Hyperlink within the current Notebook? to have a hyperlink to an output of a simple plot such as ...
1
vote
1answer
125 views

Use of standard form in .wl package

In a .wl package, i use the package notation but it is presented as inputform and it is consequently not very easy to read. ...
4
votes
1answer
51 views

Custom MakeBoxes rule triggered in the Information of functions

Consider the following toy example: ...
4
votes
0answers
58 views

Is it possible to access FrontEnd's own conversion rules for boxes?

Before sending its output to the FrontEnd the Kernel converts it into boxes by applying MakeBoxes. But it is not the whole story. FrontEnd not just displays the box ...
0
votes
1answer
40 views

Specifiying infix operators in Style

This has certainly been asked on MSE somewhere before. Where it is has eluded me the past 50 or so minutes. I'm formatting some boolean expressions using ...
0
votes
1answer
63 views

Change cylinder box for a cube box

I have a vector field where all vectors are contained in a cylinder. I want to see the shape of this cylinder. I could see a cubic box if I would change ...
2
votes
1answer
178 views

How to make some RowBox to be string

GeneralUtilities`GetUsages["System`Sin"] I want to get $\color{red}{\textbf{1}}$ plain string,but this function actually will give me some ...
10
votes
2answers
348 views

What are the differences between using MakeBoxes and Interpretation?

Say I want to define a custom graphical representation for my function foo. I can do this using MakeBoxes as in the following: <...
1
vote
1answer
93 views

TemplateBox based controllers. Not editable InputFieldBox

The goal is to have controllers fully customizable from a stylesheet level. At the moment one can't add MouseAppearace to a ...
1
vote
0answers
75 views

Testing Notebook fails on Datasets

I have some functions that read in a .csv and convert them to a Dataset, and do some processing. I've written tests to validate that the correct transformations occur (so far very simple...like ...
1
vote
1answer
175 views

Remove the line of box

Just wondering, is it possible to remove certain 'line' of the box? ...
6
votes
1answer
206 views

This code crashes the FrontEnd - can I remove anything else?

Bug present in version 11.0.0 Thank you for contacting Wolfram Technical Support and for taking the time to report this issue. I have forwarded it to our development team. I want to file a ...
6
votes
1answer
94 views

How to work with BoxOptions (ButtonBoxOptions, PanelBoxOptions, etc.)

The main question is in the title. Here are subtopics I'd like to focus on: Is there a tutorial related to them anywhere in documentation? How can I check what are current values of e.g. ...
7
votes
1answer
143 views

Problem with conversion of UI controllers' boxes to expressions

Bug introduced in V10 and partially fixed in V11.1.1 TLDR Various of expressions which have fancy typeset form or are designed as UI elements won't survive ...
8
votes
2answers
88 views

MakeBoxes for Power not matching when inside Times?

If I try to define boxes for Power[x,-1] like this, MakeBoxes[Power[x, -1], TraditionalForm] := "matched"; it works as long ...
8
votes
0answers
118 views

What does the pair “\<” and “\>” in a string do? [duplicate]

What do \< and \> mean inside of a string? ...
7
votes
1answer
107 views

Why doesn't defined MakeBoxes display what is constructed in RHS?

Inspired by the @ybeltukov 's answer to this question, if I have the following polynomial poly = a^2 + (a^2 + b^2 - c^2)*x + b^2*x^2; var = x; this generates ...
5
votes
1answer
91 views

Strange problem with Derivative and BoxForm`MakeDerivativeBoxes

All of the following three lines should produce the same output, but the third variant produces an error on output. ...
1
vote
0answers
62 views

FormBox in pretty strings

My goal is to write usage messages in the same style as Mathematica's built-in ones, such as List::usage. This involves a mess of ...
6
votes
3answers
271 views

How to extract the displayed name of an entity

Entities are typically displayed in their elided form: It's useful when exploring the output of EntityList to have access to the canonical name of the ...
20
votes
0answers
192 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
8
votes
2answers
157 views

How to open and explore the codes of the system Palettes files

The built in Palettes of Mathematica are simply .nb files which can be found in the following place: ...
16
votes
0answers
161 views

Issue with undo after copying a string inside a string

Bug introduced in 10.0 and persisting through V11.3 Here's a small but annoying issue related to undo and copying of strings. Steps required to get the problem: Type ...
5
votes
2answers
121 views

Newline in code with MakeExpression

I start with f[x]. In boxes, this is RowBox[{"f", "[", "x", "]"}]. I apply ...
5
votes
1answer
116 views

How can I define MakeBoxes for Inactive forms of user-defined heads?

Here I define a MakeBoxes for Times: ...
8
votes
1answer
279 views

How to convert arbitrary raw boxes directly into String?

This question is motivated by the recent question about searching inside of the NB files. According to the Documentation, ToString expects a high-level WL ...