Wrap Long Lines

Wrap Text

To wrap text to a notebook window size, select View > Wrap To Window. If you use text wrapping and resize your notebook, MuPAD® automatically adjusts text lines to a new window size. This option affects text regions only.

When you wrap text in a notebook, and then unwrap it, the vertical line appears. This line shows you the position of the right margin of the current page format.

When you print the page, MuPAD lets you choose between scaling down the whole page or cropping the content to the right of the line. The line does not appear on printed pages. To remove this line, select View > Wrap To Window.

Wrap Expressions in Input Regions

To wrap the contents of the input regions to a notebook window size:

  1. Select Format > Defaults.

  2. In the resulting dialog box, click the Calculations tab.

  3. From the drop-down menu Format, select Input Paragraph.

  4. Select the Word wrap check box.

Now MuPAD wraps all new expressions and commands in the input regions to a notebook window size. If you use wrapping for input regions and then resize your notebook, MuPAD automatically adjusts expressions and commands to a new window size.

Wrap Output Expressions

By default, MuPAD wraps results displayed in the output regions to a notebook window size. The system also wraps long lines in outputs when printing them. When wrapping breaks a number, an identifier, or a strings, MuPAD inserts the line break symbol \. For example, the following result cannot be wrapped to the default notebook window size without inserting a line break inside the number:

The line break symbol does not affect the result of computation. If you copy the result to an input region, the line break symbol does not appear in the copy.

When you resize a notebook, MuPAD automatically adjusts output lines to a new window size. If a new window is large enough to accommodate the output in one line, the line break symbols disappear. They also disappear when you disable wrapping and reevaluate the corresponding input region. To disable wrapping:

  1. Select Format > Defaults.

  2. In the resulting dialog box, click the Calculations tab.

  3. From the drop-down menu Format, select Output Math.

  4. Select the Wrap lines check box.

If you disable wrapping, MuPAD does not insert lines breaks in the new output expressions. If you want to remove line breaks in the existing output expressions, reevaluate these expressions.

Was this topic helpful?