{tilde} is for questions about handling the special tilde character.

learn more… | top users | synonyms

66
votes
7answers
22k views

Correctly typesetting a tilde

How do I set the tilde (~) character correctly in LaTeX? There’s a question discussing that on Stack Overflow, with a lot of answers. But dare I say it? They all suck: \textasciitilde is too high, ...
19
votes
1answer
12k views

URL with tilde character?

I'm trying to make a URL with a tilde character (~) in it: \usepackage{url} ... \url{http://lyle.smu.edu/~tspell/jaws} It looks right in the resulting PDF, but when clicking on it the browser goes ...
13
votes
3answers
2k views

How to insert a nice tilde in a lstlisting?

How do I insert a nice tilde that is centered in the middle in a lstlisting? I found another thread about tildes but I can't apply it because the method described there only works outside of ...
11
votes
2answers
2k views

How to use tilde or space in includepdf filename?

I'm trying to include a pdf in a document, using pdfpages package, but I'm having troubles when filename contains tilde or space. e.g. ...
11
votes
2answers
4k views

Sub tilde in LaTeX

In LaTeX, \tilde{x} puts a ~ on top of the x. How can I put a ~ below the x?
9
votes
1answer
4k views

Tilde and slash in LaTeX

I am getting strange errors in LaTeX: perhaps you should insert a `~' before "\ref" missing `\ ' after "i.e." missing `\ ' after "i.e." I understand that the first expects me to put a tilde before ...
9
votes
2answers
4k views

moderncv : \homepage - can't handle a tilde

I'm using the latest version of moderncv from CTAN. When I set : \homepage {homepage: my.homepage.url/~username/} The tilde doesn't show up. So I tried: \usepackage{textcomp} \homepage {homepage: ...
8
votes
2answers
189 views

Automatically spacing the tilde (~) symbol as a prefix number using the `siunitx` package

I'm trying to work out if there is a way to get siunitx to natively handle the ~ symbol (\sim) in the same way that it can handle the < and > operators before a number, as I would like to be able ...
7
votes
2answers
576 views

Why is docstrip putting extra macro calls in a hyperlink inside a footnote that has a tilde?

Here's a minimal example of Docstrip putting extra macro bits into a \href call inside a footnote when the URL has a tilde: % \iffalse \documentclass[a4paper]{ltxdoc} \usepackage{hyperref} ...
7
votes
1answer
3k views

Why is this n with tilde disappearing in a BibTeX reference?

Working with the following abridged line in a BibTeX entry: author = {J. Pe\~{n}a} For some reason results in a BibTeX compilation to: J.~P. {n}a With a period and a space appearing and the ...
7
votes
1answer
351 views

how to get PSTricks QR codes to handle tildes properly?

I am getting bitten by the same problem from one of my previous questions: tildes are not handled properly. But now it's the PSTricks QR code package that's not working, and none of the suggestions ...
6
votes
1answer
887 views

Using tilde `~` in csname in Beamer

In beamer, I would like to be able to use the tilde character ~ in the name of a command sequence. I tried with adjusting catcodes. While this was successful with the standard article class, it failed ...
6
votes
1answer
14k views

tilde over a symbol Phi

Please suggest me a way to put tilde over a symbol phi. I can easily put it over a letter but coming to the case of symbols, it is giving problems. Thanks in advance.
6
votes
1answer
325 views

Problem with url link-`~` is replaced by %257E

I am adding a url in my document using \url{}. The link, however doesn't lead to where it is suppossed to lead. My code is \documentclass{article} \usepackage{hyperref} \begin{document} ...
6
votes
2answers
494 views

How to get a bold wide tilde?

If I type \boldmath $\widetilde T$\unboldmath I get where unfortunately the tilde above the T is a little flimsy for my taste. Is there a better way to do this? I found a paper that has ...
5
votes
2answers
10k views

How do I draw a tilde in math mode? [duplicate]

Possible Duplicate: How does one insert a backslash or a tilde into LaTeX? I have tried using \text{\~{}} to draw a tilde in math mode. However, this only produces a superscript tilde. I ...
5
votes
4answers
353 views

The use of “tilde” changes the proximity to the set theory symbol (ref img)

I just want to format a simple set theory example. But the following is annoying: See how close the cap gets to the 'A' because of the tilde sign? I've used sim for the tilde sign. Any ...
5
votes
1answer
418 views

Problem with ẽ tilde and UTF8

I have a problem with the following character ẽ: e with tilde I am using UTF-8 encoding and I get the following error ! Package inputenc Error: Unicode char \u8:ẽ not set up for use with ...
5
votes
1answer
771 views

Customize the width of \widetilde on letters H, K, M, N, W, and X

For example either $\widetilde{\bm{H}}$ or $\widetilde{\boldsymbol{H}}$ would result rather huge tilde over the letter H, K, M, N, W, and X, please see the following alphabet: I can ...
4
votes
1answer
88 views

tilde mark over letters in exponents or subscripts in math mode under revtex4-1

A space between the tilde mark and a letter is relatively higher in exponent or subscript in math mode. For instance, the tilde mark appears differently spaced over the letter z in the two following ...
3
votes
1answer
141 views

Hyphenation with Acronyms

I have difficulties getting hyphenation right in long acronyms with user-defined hyphenation rules when trying to prevent line breaks between the long and the short form. \documentclass{article} ...
3
votes
2answers
135 views

tilde in a url in the address portion of a letter

I am trying to include my website address in the address block of a letter. My webaddress has a tilde character, and my usual solution, $\sim$, to the tilde formatting problem is not working. The ...
3
votes
1answer
284 views

Tilde in verbatim

I am writing a manual for an R file in which expressions like this are common: lm.1 <- lm(y ~ x1 + x2) I will be enclosing code samples in a verbatim environment but this doesn't work properly ...
2
votes
2answers
1k views

How to show tilde in superscript

I would like to show a tilde in the superscript of a letter. For example F^{\tilde{}} But it does not look good. Any suggestions? Thanks and regards!
2
votes
1answer
321 views

Tilde in author field changes S letter with Estonian babel

Bibtex generates fallowing code to bbl file. \bibitem{Bell_1964} J.~S. Bell, \enquote{On the {Einstein-Podolsky-Rosen} paradox,} Physics \textbf{1}. and similarly \bibitem{BellSpeakableAndNot} ...
2
votes
4answers
853 views

How to show ~(tilde) in footnote? [duplicate]

Possible Duplicate: Correctly typesetting a tilde I can show ~(tilde) in normal text, using text as follows, \begin{quote} \verb|~| \end{quote} But the problem is when I try to put this ...
2
votes
1answer
366 views

sfmath: bug or feature? Tildes are wrongly displayed

If I compile the following code (TeXLive 2011; Mac OS X 10.7.2, latexmk 4.26), I get wrongly placed tildes (in the middle of the letters instead of on top of them). Is this a bug? ...
2
votes
1answer
1k views

How to insert LaTeX symbols? [duplicate]

Possible Duplicate: How does one insert a backslash or a tilde into LaTeX? I tried inserting symbols in latex. e.g.: \texttildelow It didn't work. But symbols like ...
2
votes
1answer
722 views

How to use special symbols in LaTeX, such as @, ~ [duplicate]

Possible Duplicate: How does one insert a backslash or a tilde into LaTeX? I wonder how I can typeset in LaTeX this text: @Data.test~ I mean, I want to have in the end "To display the data ...
1
vote
1answer
27 views

XeTeX problem: no italics with i+tilde

When I use \emph{\~\i} to create an i with tilde in XeTeX (using Linux Libertine), the i is not typeset in italics. Does anyone know a workaround? You can see a MWE here: ...
1
vote
1answer
90 views

Tikz: the use of \tilde is not working in the tikz environment

From my post on placing a node at the intersection of two circles, I came across a problem. When I compile the document, \tilde F renders ~F and not a tilde over the F. I can't duplicate this issue ...
1
vote
0answers
42 views

Getting rid of tilde in “Fig.~1” [closed]

When I use IEEEtran package like below script, figure names contain a tilde. Is there a way to remove them or IEEE conventions dictate something like that? \documentclass[conference]{IEEEtran} ...
0
votes
0answers
48 views

Vertically centered tilde with \raisebox includes space when copying from pdf

I'm trying to use the hack suggested here (option 1) in order to obtain a vertically centered tilde (using Computer Modern font) and it works fine. However, when I try to copy this symbol together ...