# Arrows for inputting text up and down in latex

Time：2021-9-4

### Right arrow

In latex, you can enter the right arrow of the upper and lower text with`\Xrightarrow [upper formula] {lower formula}`Write it out, as shown in the figure below:

x\xrightarrow[a]{b}y

### left arrow

In latex, you can enter the right arrow of the upper and lower text with`\Xleftarrow [formula above] {formula below}`Write it out, as shown in the figure below:

x\xleftarrow[a]{b}y