|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
AdjustmentBox
AdjustmentBox[box, opts]
is a low-level box construct which displays with the placement of box adjusted using the options given.
DetailsDetails
- In the notebook front end, AdjustmentBox objects can typically be inserted and modified using Alt+
, Alt+
, Alt+
, and Alt+
(Ctrl on Macintosh). These keys move your current selection by one pixel at the current screen magnification. - The following options can be given:
-
BoxMargins {{left,right},{bottom,top}} margins to leave around the contents of the box BoxBaselineShift up how much the baseline should be shifted relative to those of neighboring boxes - Horizontal motion specifications are in ems; vertical ones are in
-heights. - Motion specifications can be either positive or negative numbers.
- Positive margin specifications increase the spacing around box; negative ones decrease it.
- Moving the baseline affects, for example, vertical alignment in a RowBox.
- Top and bottom margins affect, for example, placement in a FractionBox or an OverscriptBox.
- In StandardForm and InputForm input, AdjustmentBox is by default ignored, so that AdjustmentBox[box, opts] is interpreted just as box would be.
- Inserting an explicit spacing character such as \[ThinSpace] can have the same effect for display as AdjustmentBox, but the spacing character by default affects interpretation.
- AdjustmentBox[box, opts] uses the options given only to adjust the position of box itself. Unlike StyleBox, it does not propagate the options to sub-boxes.
ExamplesExamplesopen allclose all
Basic Examples (4)Basic Examples (4)
Display letters with different amounts of baseline shift:
| In[1]:= |
Out[1]//DisplayForm= | |
Display letters with different amounts of margin:
| In[1]:= |
Out[1]//DisplayForm= | |
Display a letter with different margins on different sides:
| In[1]:= |
Out[1]//DisplayForm= | |
Adjustments are typically ignored when an AdjustmentBox form is interpreted as input:
| In[1]:= |
| Out[1]= |
| In[2]:= |
Out[2]//FullForm= | |
New in 3
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
