How to Highlight a Matrix Row or Column in Word Equation Editor
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.
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.
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.
Navigate to the Insert tab on the Word ribbon, click on Text Box, and select Draw Text Box from the drop-down menu.
Click and drag to draw the text box directly over the specific row or column of the matrix you wish to highlight.
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.
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.
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.
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. Open WPS Writer: Launch WPS Office and create or open your Word document.
- 2. Insert an Equation: Go to the Insert tab, click Equation, and build your matrix.
- 3. Highlight with Shapes: Use Insert > Shapes to draw a transparent rectangle around your matrix rows or columns precisely.

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.




