Linked Questions

760
votes
9answers
1.5m views

How does one insert a backslash or a tilde (~) into LaTeX?

How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.) I ...
42
votes
3answers
40k 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 ...
25
votes
2answers
1k views

Why can't caret and tilde be escaped with backslash alone?

I can escape some special characters with a backslash. \documentclass{article} \begin{document} \# \$ \% \& \_ \{ \} \end{document} But why can't I escape ^ and ~ with a backslash alone? For ...
20
votes
3answers
7k 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 ...
20
votes
4answers
3k views

How can I create a full-size circumflex in typewriter font?

I have some C source code and would like to show the circumflex or caret (^) in the way it is typically shown in source code -- as a full-size character. The source code will be appearing in ...
15
votes
8answers
3k views

Why is tilde not available out of the box in TeX?

Today I need to type ~ in my document, but apparently it does not get rendered properly. I just got a blank space. I searched on the web and I found the same problem here. However, its solutions show ...
9
votes
1answer
15k views

Quick question about curly braces not showing up

Ii am writing a short code, so I doubt anything else in the code is causing the problem. This is the problematic line of code: \[ M_R := \max {|f(z)|: |z - z_0| = R }\le M\] It doesn't show the ...
5
votes
2answers
471 views

Is it possible to have URLs link from a pdf to the webpage? [duplicate]

Possible Duplicate: How does one insert a URL correctly? I'm writing up a document, and at one point I cite a file online found at http://www.math.uconn.edu/~kconrad/blurbs/grouptheory/groupsp3....
4
votes
4answers
2k 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 in ...
4
votes
1answer
3k 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 \textasciitilde work....
3
votes
2answers
438 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
2k 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
1answer
785 views

put a link in the document

I'm using the following code snippet to put a link in the document: \begin{footnotesize} \begin{verbatim} http://vlm1.uta.edu/~zhangzhong/fall_detection/ \end{verbatim} \end{footnotesize} But the ...
2
votes
1answer
62 views

Quotation marks and hyphen in listings generate un-copyable PDF

I'm writing a document for general purpose so that anyone can follow it and the idea is to copy and paste this command in a Linux terminal. But when I do that in a terminal give me error because ...
1
vote
1answer
819 views

How to display a 'not tilde' character [duplicate]

This doesn't seem to work: \usepackage{textcomp} \newcommand{\TextTilde}{\raisebox{0.5ex}{\texttildelow}} f(n) \not\TextTidle g(n) It displays the slash before the tilde. Is there any way I can get ...

15 30 50 per page