Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am able to produce a standard length \sim with a tiny S above it, but I would like the \sim tilde to be longer (maybe one and half times as wide as a capital letter). Any tips on how to change the width/length of \sim?

share|improve this question
    
See also the question tex.stackexchange.com/q/15830/86 and its answers. –  Loop Space May 29 '11 at 20:23

1 Answer 1

\usepackage{amsmath,graphicx}
\newcommand{\widesim}[2][1.5]{
  \mathrel{\overset{#2}{\scalebox{#1}[1]{$\sim$}}}
}

$A \widesim{S} B$

$A \widesim[2]{SS} B$

If the scaling is not excessive, the symbol should render well. The optional argument, that tells LaTeX how much to scale horizontally, should not be more than 2.5, otherwise some artifacts will appear. The default value is, as you requested, 1.5.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.