0

I've tried using overset and underset, however, the $sim$ can't match the text length above or below. Just like the handwriting below:

enter image description here

Axia
  • 514
  • Why not use straight arrow? – Stephen Dec 09 '23 at 05:36
  • Could you provide your attempt using overset and underset? That would give us something to start from. Are you wanting the \sim to match the length of above and below? What if above and below have different lengths? – Teepeemm Dec 09 '23 at 05:36
  • For something like this $\overset{r_2\leftrightarrow n}{\underset{r_1}{\sim}}$ we have to put this \overset{r_2\leftrightarrow n}{\underset{r_1}{\sim}} within $. – Anton Vrdoljak Dec 09 '23 at 06:05
  • You may want to have a look at and search in this document: https://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf – MS-SPO Dec 09 '23 at 06:26
  • 1
    $\widetilde{r_1 x}$? – Mico Dec 09 '23 at 06:59
  • @Stephen Because it's a transform of a matrix in "Linear Algebra" textbook, in China – Axia Dec 09 '23 at 11:15
  • These posts may be useful: 1. https://tex.stackexchange.com/questions/614754/how-to-decorate-text-above-and-below-a-sim-sim-like-xrightarrow – Stephen Dec 10 '23 at 08:43
  • 1
  • https://tex.stackexchange.com/questions/544297/stretch-sim-in-matrix-transformations
  • – Stephen Dec 10 '23 at 08:49