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

learn more… | top users | synonyms

95
votes
8answers
43k 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, ...
28
votes
2answers
22k 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 ...
26
votes
1answer
74k 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.
21
votes
1answer
1k views

What does the tilde character (~) do in math mode?

What effect does the tilde character ~ have in math mode? Is it the same non-breaking space that it is in text mode? Is it bad style to use ~ in math mode? I've seen it used in some examples but ...
17
votes
2answers
5k 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. ...
16
votes
1answer
9k 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 ...
14
votes
3answers
3k 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 ...
14
votes
2answers
33k 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 ...
13
votes
2answers
6k 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: ...
12
votes
1answer
7k 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 ...
12
votes
2answers
8k views

Sub tilde in LaTeX

In LaTeX, \tilde{x} puts a ~ on top of the x. How can I put a ~ below the x?
8
votes
4answers
653 views

Norm of “a” looks different from Norm of “b” in math mode

I run into the following little problem in the LaTeX math mode: $ \left \|\tilde{a} \right \| + \left \| \tilde{b} \right \| $ when trying this in the Latex Equation Editor, it looks a bit weird: ...
8
votes
2answers
743 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 ...
8
votes
2answers
570 views

How come the tilde ~ sometimes does not behave like non-breaking space?

This is again one of the behaviors that are quite difficult to catch in a reconstructible (and simple) example, so one has to resort to animations. Basically, the issue is this: the tilde (~) is ...
8
votes
1answer
467 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 ...
8
votes
1answer
183 views

How to make ~ work for en-dashes?

I have a German LaTeX-document that tries to implement German en-dash line-breaking rules with ~ like this: \documentclass[twocolumn,a4paper]{scrartcl} \usepackage[T1]{fontenc} \usepackage{german} ...
7
votes
2answers
765 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} ...
6
votes
2answers
642 views

tilde in hyperref url with \usepackage[T1]{fontenc}

By default, LaTeX typesets tildes "too high", but the hyperref package ordinarily corrects this behaviour for URLs (it vertically centers tildes, as expected). However \usepackage[T1]{fontenc} seems ...
6
votes
1answer
1k 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
660 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
1k 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 ...
6
votes
3answers
177 views

How to get spacing in math mode without just repeating fixed spaces (tilde ~)?

I'm looking for a way to move text in my equation, instead of just shoving multiple ~~~~ until it's in the right position. I'm quite new to LaTeX, what exactly would be the command? I'm also looking ...
5
votes
4answers
464 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
858 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
1k 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
63 views

Symbol with tilde AND sub/super-scripts

I need to typeset a mathematical symbol consisting of a letter with a tilde and both sub- and super-scripts. The subscript is fine, but the tilde runs into the superscript. How can I fix this? Here ...
4
votes
1answer
226 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
559 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
1answer
237 views

What does symbol ~ do in Latex?

I noticed this symbol in an example. Including or excluding this from the source doesn't change anything. However, if I include \~, it puts a ~ on the first letter of the next word. So, what could be ...
3
votes
2answers
207 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
445 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} ...
3
votes
1answer
2k 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 ...
3
votes
2answers
39 views

substitute widetilde in one font for another in plain tex

I am using newtx fonts in plain TeX. However, I prefer most of cmex to ntxexx. There is one exception (so far that I have found), the \widetilde, which is beautiful in ntxexx. I do not have any ...
3
votes
1answer
54 views

Is there a way to adjust the vertical position of accent above a greek letter in math mode?

I'm trying to write phi with a wide tilde on top in order to indicate an estimate in statistics, but the tilde are by default clear above the letter, like so: I'm wondering if there is a way to ...
3
votes
1answer
996 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
2k 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
39 views

Tilde do not cover all variable

With this my equation: \begin{equation} \label{eq:new-ri} \tilde{RI} = \frac{RI(v)}{\hat{q}v^\gamma}, \end{equation} I have this result: QUESTION: Is possible obtain a more large tilde which ...
2
votes
4answers
1k 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
2answers
543 views

The correct way to type tilde?

So, I know there are a lot of posts about this already, with answers like \textasciitilde, \texttildelow and $\sim$ and they all seam to work in their own way. But what I've found is that they look ...
2
votes
1answer
411 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
405 views

How to write a tilde over a sigma? [duplicate]

Good evening to everybody here.. My problem is how to write a "tilde" over a symbol (sigma for the precision) in the text mode.. Thank you so much
2
votes
2answers
160 views

\widetilde{} alternative for formula over the tilde

I'd like to put some formula over the tilde in math mode and adjust the tilde length to the length of that formula. It seems that \widetilde{} is almost what I need, however it puts the formula below ...
2
votes
0answers
41 views

Increase margin between tilde and line of fraction [closed]

I've written a document with some complex formulars in it. I find the distance or the margin between a decoration of a variable, in this case a tilde and the line of the fraction, in which it stands ...
2
votes
1answer
1k 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
20 views

LyX/LaTeX widetilde with superscripts problem

Using the \widetilde command to denote a tilde on a letter usually works wonders, although the tilde needs to be slightly lowered in my opinion. This didn't bother me too terribly until I needed to ...
1
vote
1answer
46 views

tilde between Figure (or Table) and number when \ref{…} with chemstyle and babel spanish

When I reference a figure or table in the text using \ref{something} it appears a tilde between Figura (or Tabla) and the number (something like Figura~1), but I realized it's only when using packages ...
1
vote
1answer
72 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
273 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
98 views

Tilde symbol inside an environment [duplicate]

I have set a new matcode environment in order to have some matlab code in my .tex file, using the matlab-prettifier package (combined with the listings package). However, I have a problem with the ...
1
vote
0answers
89 views

\widetilde not displayed correctly [closed]

I have a problem using \widetilde in my specific LaTeX project environment. I am writing my Ph.D. thesis and am using a university-provided template. I assume that this template is the reason why ...