Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 5478

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

3
votes
Thanks to jkuczm for an idea: https://mathematica.stackexchange.com/a/159407/5478: MakeBoxes[ActuarialSurvivalProbability[x_, t_], StandardForm] := With[{row = Table[Slot[i], {i, 2, Length[x] + 1}] …
answered Dec 10 '18 by Kuba
2
votes
I hate situations when MMA is forcing me to create such inelegant solutions. It is how I am dealing with it: The basic idea is to govern the margins by outerFrame FrameMargins. One good thing here is …
answered Jun 21 '13 by Kuba
5
votes
Palette button CreatePalette[ Button["Compact Part", Do[ With[{ celldata = NotebookRead[cell], pattern = RuleDelayed[ RowBox[{h__, "[", RowBox[{"[", spec___, "]"}], "] …
answered Oct 29 '15 by Kuba
0
votes
A support case with the identification [CASE:3706792] was created. InputField [...] This is an issue with ToExpression. I have brought it to the attention the relevant developers and they …
answered May 10 '17 by Kuba
2
votes
Slightly different approach, based on "fixing" boxes too: DynamicModule[{}, Button["Close lines", fix @ InputNotebook[]] , Initialization :> ( fix[nb_NotebookObject] := fix …
answered Nov 21 '15 by Kuba
3
votes
How can I get the unchanged Box form of an arbitrary expression? toBoxes = MathLink`CallFrontEnd[ FrontEnd`UndocumentedTestFEParserPacket[#, True] ][[1]] & How to convert arbitrary raw boxes
answered Feb 24 '17 by Kuba
4
votes
Conversion to explicit boxes: ClearAll[expr, myStyle, string]; expr = ("\!\(" ~~ Longest[Except["\!"]] .. ~~ "\)"); plain = (Except[{"\*", "\)"}] ..); myStyle[string_] := StringReplace[string …
answered May 3 '14 by Kuba
2
votes
You can prevent evaluation/reordering using methods in a linked community topic but since we have an additional feedback here: This whole thing gets fed back into CellGroup[ExpressionCell[ ... ]]. …
answered Mar 14 '18 by Kuba
7
votes
This answer may seem slightly off but it was posted before recent updates. The bottom line holds though. It symbolizes boxes, not expressions, it is not Subscript which is now special but … SubscriptBox. You are supposed to use $x_1$ in your code but if you can't use StandardForm/2d typesetting then you have to make a round trip to boxes and back to expression: roundtrip = Function[expr …
answered May 31 '17 by Kuba
2
votes
I'm not sure how to do this with PasteButton, here's ordinary one: Button["Inputs", NotebookWrite[InputNotebook[], Cell[BoxData[RowBox[{MakeBoxes[a = 1;], "\n", MakeBoxes[b = 1;]}]] …
answered May 15 '14 by Kuba
3
votes
You can't / it is not worth using Notation` package with .m/.wl files. You can develop your package in a .nb file if you are going to only work with the FrontEnd. See NotebookEvaluate and be aware o …
answered May 29 '18 by Kuba
8
votes
InterpretationBox will take care of making safe round trip from boxes to expression but we need to take extra care during condition checking and partition not to evaluate Obj's arguments. It does …
answered Nov 6 '17 by Kuba
2
votes
a workaround is to put whole InputFieldBox as a parameter and set options via StyleBox: RawBoxes @ TemplateBox[ { ToBoxes @ InputField[Dynamic[x]] }, "MyInput", DisplayFunction :> ( TagBox[ …
answered Feb 7 '17 by Kuba
13
votes
You can put it to the last cell and evaluate, it will resize all images from InputCells to the width of 100px. You can of course change affected cell set and output parameters. Do[ With[{nr = Note …
answered Jan 12 '15 by Kuba
17
votes
You can use this to create a functionality which will fit your need the best. Here's how you can preview your input cell with c highlighted Red. CellPrint[ NotebookRead @ PreviousCell[] /. "c" - …
answered Jul 30 '15 by Kuba