0

Following the question in Can we have x with tilde on top?

Basically, i want to have vector lenght like this

enter image description here

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}

$\| \tilde{x} \|  $   

\end{document}

The output is:

enter image description here

But how to have another tilde at the bottom of X?

aan
  • 2,663

2 Answers2

2

Two variants with the accents package:

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{accents}

\begin{document}

$ \| \underaccent{\tilde}{\tilde{x}} \| \qquad\| \undertilde{\widetilde{x}} \| $

\end{document}

enter image description here

Zarko
  • 296,517
Bernard
  • 271,350
  • Thanks. Another link questions https://tex.stackexchange.com/questions/524175/how-to-force-a-space-in-tilde-vector – aan Jan 14 '20 at 03:01
1
\documentclass{article}

\usepackage{undertilde}

\begin{document}
$\| \utilde{\tilde{x}} \|$
\end{document}

enter image description here

TivV
  • 743
  • thanks. Yours MWE above, when I used in overleaf, it generate error, saying "LaTex Error: File undertilde.sty not found. Did i make mistake? – aan Jan 13 '20 at 22:20
  • Can I suggest you try the second part of the answer here: https://tex.stackexchange.com/a/23096/172164 – TivV Jan 13 '20 at 22:23