I spent a couple of minutes trying to figure out how to create a nice tilde (~) for writing the name of Max/MSP externals in LaTeX (e.g. dac~), so I figured I could post the solution in case anyone else wonders. First I tried using \tilde{} and \widetilde{}, but they didn’t look nice. However, this little thing does the trick:

$\sim$

I guess you need the math environment to get this working. I have the following in my preamble:

\usepackage{amsmath}