AdjustmentBox

AdjustmentBox[box,opts]

is a low-level box construct which displays with the placement of box adjusted using the options given.

Details

  • In the notebook front end, AdjustmentBox objects can typically be inserted and modified using , , , and ( on Macintosh). These keys move your current selection by one pixel at the current screen magnification.
  • The following options can be given:
  • BaseStyle{}the style to use
    BoxBaselineShiftuphow much the baseline should be shifted relative to those of neighboring boxes
    BoxMargins{{left,right},{bottom,top}}margins to leave around the contents of the box
    StripOnInputTruewhether to strip the box on evaluation
  • 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.

Examples

Basic Examples  (4)

Display letters with different amounts of baseline shift:

Display letters with different amounts of margin:

Display a letter with different margins on different sides:

Adjustments are typically ignored when an AdjustmentBox form is interpreted as input:

Wolfram Research (1996), AdjustmentBox, Wolfram Language function, https://reference.wolfram.com/language/ref/AdjustmentBox.html.

Text

Wolfram Research (1996), AdjustmentBox, Wolfram Language function, https://reference.wolfram.com/language/ref/AdjustmentBox.html.

BibTeX

@misc{reference.wolfram_2021_adjustmentbox, author="Wolfram Research", title="{AdjustmentBox}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/AdjustmentBox.html}", note=[Accessed: 05-December-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_adjustmentbox, organization={Wolfram Research}, title={AdjustmentBox}, year={1996}, url={https://reference.wolfram.com/language/ref/AdjustmentBox.html}, note=[Accessed: 05-December-2021 ]}

CMS

Wolfram Language. 1996. "AdjustmentBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AdjustmentBox.html.

APA

Wolfram Language. (1996). AdjustmentBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AdjustmentBox.html