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?

3

2 Answers 2

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

1
1
\documentclass{article}

\usepackage{undertilde}

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

enter image description here

2
  • 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, 2020 at 22:20
  • Can I suggest you try the second part of the answer here: tex.stackexchange.com/a/23096/172164
    – TivV
    Jan 13, 2020 at 22:23

Not the answer you're looking for? Browse other questions tagged .