In word, you can add lines in the form of fields or by drawing. Press ctrl+f9 and enter eq\x\to (text) in the curly braces that appear. You can see the effect after switching the field codes.
If you must underline the letters, you can do the following: Add a border to the cells. Select special alphabetic characters that already contain underscore characters: 2 1
Select the underlined style, then enter the corresponding characters in the formula editing box, and click outside the formula editing box after the input is completed to exit the formula editing state. Tip: ① Select the inserted formula, move the mouse to the lower right corner and drag the arrow diagonally, then press and hold the left button to drag, and the size of the formula can be quickly adjusted.
Enter e in the cell, Format-Pinyin Guide-Edit. Enter "-". If it is not displayed, please select Format-Pinyin Guide-Show or Hide. If the underline is too far, replace "-"with a space, and then select Format-Pinyin Guide-Settings-Font, and select "Single Underline" as the underline.
PS: I'll add a picture for you. Question: How to underline in WORD? How to add a dot (. ) a letter? First question: Select Edit → Replace → Advanced. In the search scope, select All.