Questions tagged [tilde]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
39 views

How do I get the Chinese tilde "哇~~~" to look right?

哇~~~,你太棒了! This usage of the Chinese tilde ~ needs to look the above: the tilde has the same width as a Chinese character, and is in the center vertically. However, it comes out looking like: (I'm ...
user avatar
0 votes
2 answers
116 views

Write n with tilde above, as in El Nino

I'm trying to write "El Niño" in text mode within a paragraph. I'm currently doing it like El Ni$\mathrm{\tilde{n}}$o, which is frankly ridiculous. Can anybody explain how to do this more ...
user avatar
3 votes
2 answers
164 views

How to write a tilde with vertical line?

I want to write an tilde with an vertical line like thank you for your help :) Where i found it: Solution: \documentclass{article} \usepackage{stackengine,amssymb} \def\vTilde{\mathbin{\...
user avatar
  • 33
0 votes
0 answers
26 views

LaTeX/Special Characters with natbib [duplicate]

I'm trying to reference a source with the authors name including a tilde and a accent: Castañón When I put the following line as text it works but when I use the same line in my myreferences.bib (...
user avatar
  • 1
0 votes
0 answers
32 views

Lowering superscript to match elements without tilde

Consider: \[ \mathrm{A}^{+}\tilde{\mathrm{A}}^{+} \] \[ \mathrm{Aa}^{+}\tilde{\mathrm{Aa}}^{+} \] Is there a simple way to lower the final plus-sign, so that it aligns with the first three? (This is ...
user avatar
2 votes
1 answer
33 views

Lowering elements in subscript to match elements with tilde

Consider: \[ x_{a}^{+}\qquad x_{\tilde{a}}^{+} \] Is there a simple way to make the first "a" the same height as the second one? The problem doesn't occur when the superscripts are removed.
user avatar
2 votes
2 answers
153 views

Is there difference between using ‘~’ and Unicode non-breaking space?

Does (Lua)LaTeX treat these two character the same or is there some difference? I've got used to write Unicode NBSPs using Shift-Space shortcut and it is easier for me to use this instead of the tilde ...
user avatar
  • 169
0 votes
1 answer
41 views

How to add a tilde "~" in between two letters (\alpha and l)? I attached my text below:

\documentclass[a4paper, pointlessnumbers, %draft, parskip=half, automark ]{scrartcl} \setlength{\parindent}{0pt} \usepackage[a4paper, left=2.2cm, right=2.2cm, top=2.5cm, ...
user avatar
0 votes
1 answer
65 views

How to insert a vertically centered tilde into a URL?

I need to insert a vertically centered tilde into a URL in text mode (not inside the \url or \href commands). I've tried the solution proposed here but I can't get it to work. Any ideas? Here is my ...
user avatar
  • 950
1 vote
2 answers
59 views

siunitx explicit-sign not for all numbers in column

One have the table that align according decimal point by siunitx package, and sign before all numbers is tilde (\sim). How remove tilde for number 7 only, without break the alignment? (I tried to add $...
user avatar
  • 155
2 votes
2 answers
284 views

How to make tilde symbol in the center on the line text?

\documentclass{article} \usepackage[left=3cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{listings} \lstset{basicstyle=\ttfamily\footnotesize,breaklines=true,numbers=left,mathescape} \begin{...
user avatar
0 votes
0 answers
60 views

Vertically position tilde in LaTeX [duplicate]

I would like to have a tilde like this: ~some text But it seems hard / impossible to easily achieve that in LaTeX. Is it possible to have a "vertically centred" tilde which also looks like ...
user avatar
  • 63
2 votes
3 answers
58 views

Vertically scale accent, but keep distance to symbol equal

I need a \tilde which is a little more noticeable, why I tried this answer in combination with scalebox. However, together with the vertical scaling, also the vertical distance between the symbol and ...
user avatar
0 votes
1 answer
64 views

How do I make the tilde encompass two variables?

I want to put a tilde above $ \tilde{L_1}^{T}\omega_1 $ such that it encompasses these two variable. How do I do that? My approach here puts two separate \tilde on L_1 and the transpose T $$\frac{\...
user avatar
1 vote
1 answer
356 views

Handling tilde for the home directory in latex, Windows 10, MiKTeX 2.9

I am seeking to include in a latex run a range of files off different paths; I am working in MiKTeX 2.9 under Windows 10. I am unable to get \string~ to point to %USERPROFILE%. A MWE to illustrate is: ...
user avatar
0 votes
0 answers
288 views

How to get an inverted (or reversed) tilde on a math symbol?

How can we get a reversed (or inverted) tilde on top of a math symbol, in math-mode? I'm sure that this reversed tilde does exist in LaTeX (I strongly believe I have seen it before), but I'm yet ...
user avatar
  • 2,034
2 votes
2 answers
867 views

Writing a \sim with the letter a centered above

I want something like \sim^a but with the 'a' in the top center not like a power.
user avatar
  • 21
4 votes
1 answer
109 views

ConTeXt: Replace tokens in document title option

Background Macros are autogenerated for a book's title and author name. The title can sometimes include TeX-specific tokens, such as ~ and ldots{}. Problem When setting the document properties, the ...
user avatar
  • 10.9k
1 vote
0 answers
42 views

Redefining inline math, so it always proceeded by a non breaking space (~)

I don't like when inline math is typeset at the beginning of a new line. Is there a way to redefine the dollar sign so that Text text $i$. Text, $i$ text $i$ text. is automatically translated to ...
user avatar
2 votes
2 answers
160 views

\tilde in parenthesis

How could this command be done? I mean a \tilde.
user avatar
  • 181
2 votes
1 answer
143 views

Defining `\subsetcong` and `\subsetsim` via proper tilde over and under `\subset`

I'd like to define a new command \subsetcong that would typeset a tilde over \subseteq to make it look similar to how tilde is over = in \cong. And also, I'd like to define \subsetsim to mean a \...
user avatar
0 votes
1 answer
651 views

Can we have x with tilde on top?

Basically, I want to have a X with tilde ontop of X. I tried to follow: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} $\backsim\ \sim\ \thicksim$ \end{document} ...
user avatar
  • 2,423
3 votes
1 answer
710 views

Half of approx symbol

I would like to use half of the \approx approx symbol as an accent above a variable instead of \sim. This is due to formatting reasons, see The symbols are almost equivalent, however \sim is ...
user avatar
  • 927
0 votes
1 answer
185 views

nice tilde in listings with indent working

I am trying to have a nice tilde when using the listings package Inspired by an answer here: The correct way to type tilde? I tried the following solution: \documentclass{article} \usepackage[T1]{...
user avatar
1 vote
2 answers
952 views

Accent marks in LyX

I recently started using LyX since it's faster than plain latex but I'm having trouble adding accent marks (´ and ~) to my words (I speak spanish). I'm used to using \' and \~ like in plain latex but ...
user avatar
  • 123
0 votes
2 answers
174 views

Listings with color OR tilde, not both

Trying to get a listing block with a command prompt that has both color and a proper formatting. I can get the proper format with a simple black typeset, but not with color...the tilde (signifying ...
user avatar
4 votes
1 answer
210 views

problem with tilde and squaring overlined symbols, stix2

I have problem with the following math text: As you can see, the tilde over S is not actually wide, but it's squared nicely. On the other hand, the overline over the X is okay, but the deuce is ...
user avatar
  • 43
2 votes
1 answer
77 views

How can I write in a equation "~" with more aesthetics?

I know that \tilde{a} in a equation shows: but when I write \tilde{V^{\mu}},\tilde{V}^{\mu} in a equation, it shows: and I am searching something like that: They are similar, but they are not the ...
user avatar
6 votes
3 answers
808 views

Spacing around \tilde{=}

How can I get proper spacing when using tilde over operator symbols? \begin{align*} x &= y\\ x &\tilde{=} b \end{align*} Yields: But I would like the tilde version to have the same kind of ...
user avatar
  • 161
2 votes
1 answer
49 views

Tilde in listings using lineskip and a command breaks "onehalfspace"

I'm trying to produce an inline code snippet that starts with a ~. Using onehalfspacing per university requirement and lineskip=-1pt for subjectively better legibility, packing the \lstinline inside ...
user avatar
  • 163
1 vote
1 answer
605 views

hyperref with tilde

How can I make the tilde appear in the url in the following document? I know that this has been asked many times before but googling has -not- helped me in my case. The following document does not ...
user avatar
  • 2,253
2 votes
1 answer
77 views

Babel and listings cause problem with hard spaces in sectioning headers in classicthesis

Problematic MWE: \documentclass[headinclude,footinclude]{scrbook}%\documentclass[headinclude,footinclude,a4paper]{scrbook} \usepackage{classicthesis}%\usepackage[style=arsclassica]{classicthesis} \...
user avatar
  • 988
2 votes
1 answer
407 views

Unbreakable spacing with tilde causes longer line

I am working on my thesis, but I came to a problem with unbreakable space in latex using tilde. It does an unbreakable space, but puts both words on previous line so the line is longer and at the end ...
user avatar
  • 21
2 votes
0 answers
698 views

tilde above letter without changing font

I am writing a paper and am using a template where the author's names are in capitals, such as: \textsc{Robert Robertson$^1$\thanks{Corresponding Author: robert@gmail.com}, James Jameson$^1$, Will ...
user avatar
3 votes
1 answer
278 views

Make superscript lower for letter with tilde

Is there any way to have the t in my superscript further down? $\widetilde{\boldsymbol{W}}^t$ is the code for the second W^t, and $\boldsymbol{W}^t$ is the code for the first W^t in the screen-...
user avatar
13 votes
3 answers
17k views

Double-tilde over symbol

I am trying to get a double tilde symbol over a letter but I can't find a well suiting solution. I tried $\tilde{\tilde{z}}$ and $\overset{\approx}{z}$ but both solution look a bit off. I am ...
user avatar
  • 133
1 vote
1 answer
475 views

Can tilde symbol expanded to a whole word [duplicate]

I am new to using the tilde symbol in latex using the \tilde. It appears above one letter only. It seems to be this can be overlooked. Can I expand it somehow to be clearer? can the symbol be expanded ...
user avatar
1 vote
1 answer
991 views

Big tilde over regular text, not in math mode?

I am looking for ways to put tilde over regular text. In math mode, we can put tilde above letters by $\widetilde{ASK}$. Is there a way to do the same thing for regular text longer than three letters? ...
user avatar
0 votes
1 answer
263 views

Tilde over Hebrew letter

I need a simple solution for making a tilde over a Hebrew sign. \tilde{א} doesn't work. I also tried it with \makebox and \libertineGlyph{uni02DC} but \makebox produces more other mistakes. Are there ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 113
1 vote
1 answer
166 views

tilde in superscript creates unnecessary spaces

I am using tile in math mode but it creates some unnecessary spaces over the variable I am using in superscript mode. x^{\sim}
user avatar
  • 13
12 votes
2 answers
11k views

What is the difference between ~ (tilde) and \, (backslash comma) for a nonbreaking space? [duplicate]

Regarding tiny nonbreaking spaces, is there a difference between using a ~ (tilde) and using \, (backslash comma)? If so, what is the difference, in terms of length, properties, situations where you ...
user avatar
13 votes
3 answers
7k views

Tilde below letter + subscript creates unwanted spacing

I use a tilde below a letter as a symbol for a vector. Redefining the \vec-command delivers a good output, but subscripts are a pain. I'm using the following code: \documentclass[10pt,a4paper]{...
user avatar
  • 1,009
0 votes
1 answer
98 views

tilde and bar entangled into each other

some times when we want to introduce two or more signs on top of a letter (for example tilde and bar signs over the letter u) they are entangled to each other (especially when we convert it to PDF) ...
user avatar
  • 71
6 votes
1 answer
278 views

redefine ~ only within the scope of a \newcommand

I'd like to create a command (\newcommand) that does some decoration around a text (basically drawing a box around the text), for technical reports: Eg like: Use \pdobj{frob}{noz zle} for ...
user avatar
  • 347
2 votes
1 answer
284 views

\Vdash with a tilde instead of a horizontal line?

I'm basically looking for a nicely type-set version of the symbol ||~, or a way to make it myself. Is there a way to generate a math-mode symbol that looks like a \VDash, but with a tilde in place of ...
user avatar
  • 1,407
1 vote
1 answer
615 views

Is this a tilde? [duplicate]

Is this a tilde or some other ("upper tilde") symbol?
user avatar
  • 181
3 votes
1 answer
867 views

Tilde in lstinputlisting

I am trying to include an R file in my document. There is a tilde in one of the R commands and when I try to use \lstinputlisting{file.r}, I get the awkward tilde which appears as if it were a ...
user avatar
  • 265
3 votes
3 answers
2k views

LaTeX superscripts problem with widetilde

I tried to put a superscript (squared) with a \xi variable in the \widetilde : $\widetilde{\xi}^2 = (\widetilde{\xi})^2 \neq \widetilde{\xi^2}$ gives Which seems to be se same things, whereas it is ...
user avatar
3 votes
2 answers
511 views

Is there a good way to write URLs with tilde without using url or hyperref packages?

I want to write URLs, but the stylesheet cannot be used with url or hyperref packages. Then if I copy the urls from my pdf file and paste them to the browser, tilde symbols become %2(+a weird ...
user avatar