logo
search
Formatting Issues

How to Highlight a Matrix Row or Column in Word Equation Editor

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user wants to draw a rectangular box around a specific row or column of a matrix within Microsoft Word's Equation Editor to highlight it.

Product
Microsoft Word
Device & OS
not provided
Scenario
Emphasizing or highlighting specific mathematical elements, rows, or columns within a matrix equation for presentations or assignments.
Observed behavior
Microsoft Word's Equation Editor lacks a native command to directly format or draw rectangular boxes around individual matrix rows or columns.
Before you start

Ensure your matrix is fully typed out and correctly positioned in the Equation Editor before applying highlighting shapes, as editing the matrix later may require you to reposition the box.

Solution 1Recommended

Use a Transparent Text Box or Shape to Box the Matrix

Since Word does not natively support boxing parts of a matrix, you can manually overlay a transparent text box or rectangle shape to achieve the highlight effect.

This workaround relies on Microsoft Word's drawing tools. By placing a shape over the equation and removing its background fill, you can frame any element within your matrix seamlessly.

1
Insert a Text Box

Navigate to the Insert tab on the Word ribbon, click on Text Box, and select Draw Text Box from the drop-down menu.

2
Draw Over the Matrix

Click and drag to draw the text box directly over the specific row or column of the matrix you wish to highlight.

3
Remove Fill and Padding

Right-click the text box border and select Format Shape. Set the Fill to 'No fill' to make it transparent, and reduce the internal margins (padding) to zero so the box fits tightly.

4
Adjust the Border Style

In the Line settings of the Format Shape pane, choose a distinct color (such as red or blue) and adjust the border thickness to make the highlight stand out clearly.

5
Set Text Wrapping

To prevent the box from disrupting your document layout, click the Layout Options icon next to the text box and select 'In Front of Text', allowing you to freely position it over the equation.

Anchoring Your Highlight: To prevent the highlight box from shifting out of place when adding new text, click the anchor icon next to the selected text box and lock it to the paragraph containing your matrix.
Free Microsoft Office alternative

Create Mathematical Documents Easily with WPS Office

If you frequently work with complex equations and find Microsoft Word's formatting restrictive, try WPS Office. It offers a robust Writer application with seamless Microsoft Word compatibility, an intuitive Equation Editor, and powerful drawing tools to format your mathematical documents flawlessly without expensive subscriptions.

  1. 1. Open WPS Writer: Launch WPS Office and create or open your Word document.
  2. 2. Insert an Equation: Go to the Insert tab, click Equation, and build your matrix.
  3. 3. Highlight with Shapes: Use Insert > Shapes to draw a transparent rectangle around your matrix rows or columns precisely.
Fully compatible with Microsoft Word (.docx) formatsBuilt-in Equation Editor for building complex mathematical matricesAdvanced drawing and shape tools for custom highlights and annotationsFree, lightweight, and works seamlessly across Windows, Mac, and Linux
microsoft office alternative - wps office

Frequently Asked Questions

Can I highlight a matrix row using background color in Word Equation Editor?

No, Word's Equation Editor does not support applying background colors to specific cells, rows, or columns within a matrix. You must use overlay shapes with semi-transparent fills to create a highlighted background effect.

Will the highlighted box move if I add more text to my document?

Yes, if the text box is anchored to a different paragraph or if the document layout changes, the box might lose alignment with the equation. To prevent this, ensure the shape is anchored directly to the equation's paragraph.

Is there a keyboard shortcut to draw a box around an equation?

There is no built-in keyboard shortcut for drawing a box around equation elements in Word. The most reliable method is manually inserting a text box or shape from the Insert tab.