This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

AdjustmentBox

AdjustmentBox[box, opts]
is a low-level box construct which displays with the placement of box adjusted using the options given.
  • In the notebook front end, AdjustmentBox objects can typically be inserted and modified using Alt+LeftArrow, Alt+RightArrow, Alt+UpArrow and Alt+DownArrow (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
BoxBaselineShiftuphow much the baseline should be shifted relative to those of neighboring boxes
  • Horizontal motion specifications are in ems; vertical ones in x-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.
  • 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 subboxes.
Display letters with different amounts of baseline shift:
In[1]:=
Click for copyable input
Out[1]//DisplayForm=
 
Display letters with different amounts of margin:
In[1]:=
Click for copyable input
Out[1]//DisplayForm=
 
Display a letter with different margins on different sides:
In[1]:=
Click for copyable input
Out[1]//DisplayForm=
 
Adjustments are typically ignored when an AdjustmentBox form is interpreted as input:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//FullForm=
New in 3