Questions tagged [tilde]

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

Filter by
Sorted by
Tagged with
3 votes
2 answers
808 views

How to write ~2.1 in LaTex?

When I type '~2.1' here, the distance between ~ and 2.1 is perfect (i.e. exactly what I want). How can it be achieved in LaTeX? With $\sim\,2.1$, the distance between them is too large.
  • 165
1 vote
2 answers
101 views

Output the ASCII tilde character

The internet is awash with questions and answers for producing a nice looking tilde. But my goal is to produce output (PDF, let's say) from which one can copy-paste into another application and get ...
  • 11
1 vote
1 answer
34 views

Character ĵ being displayed as a black box

I'm writing a document in which I try to use the following characters used in Esperanto: ĉ, ĥ, ĵ, ŭ, ŝ, Ĉ, Ĥ, Ĵ, Ŭ, Ŝ. Until now I was using base latex and it was working just fine, but I switched to ...
0 votes
1 answer
101 views

Character ñ in basque language [closed]

I'm trying to put the character ñ with basque language. I've seen that in some languages you can use \~{n} but it doesn't work. I need to put it in the text format, not like $\tilde{n}$. Can someone ...
  • 23
2 votes
2 answers
98 views

How to get a tilde over i without the dot

I am using the package tipa, with the {\~i} command but I have also tried the mathmode command \tilde{i} as well. Both commands produce the following: I would like to have a tilde that takes the ...
  • 27
2 votes
1 answer
35 views

How to prioritize tilde (non-breaking space) over hyphen (breaking space)

I am using a tilde in the defined \quoteboxtable because I do not want a line break to occur between the dash and the name of the person being quoted. However, justification of the line is taking ...
  • 507
1 vote
1 answer
34 views

How to check for the presence of a tilde (~) at the end of a text string?

How do I get to 'true'? \documentclass{minimal} \usepackage{xstring} \begin{document} \IfEndWith{string~}{\textasciitilde}{true}{false} \IfEndWith{string~}{\textasciitilde{}}{true}{false} \...
2 votes
1 answer
71 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 ...
0 votes
2 answers
327 views

Write n with tilde above, as in El Nino [duplicate]

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 ...
3 votes
2 answers
343 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{\...
  • 33
0 votes
0 answers
62 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 (...
  • 1
0 votes
0 answers
34 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 ...
3 votes
1 answer
41 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.
2 votes
2 answers
270 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 ...
  • 169
0 votes
1 answer
108 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, ...
0 votes
1 answer
126 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 ...
  • 956
1 vote
2 answers
93 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 $...
  • 155
2 votes
2 answers
447 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{...
0 votes
0 answers
61 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 ...
  • 63
2 votes
3 answers
90 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 ...
0 votes
1 answer
104 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{\...
1 vote
1 answer
478 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: ...
0 votes
0 answers
386 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 ...
  • 2,054
2 votes
2 answers
2k 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.
  • 21
4 votes
1 answer
115 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 ...
  • 11.3k
1 vote
0 answers
62 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 ...
2 votes
2 answers
179 views

\tilde in parenthesis

How could this command be done? I mean a \tilde.
  • 213
2 votes
1 answer
186 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 \...
0 votes
1 answer
887 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} ...
  • 2,533
3 votes
1 answer
1k 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 ...
  • 937
0 votes
1 answer
256 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]{...
1 vote
2 answers
1k 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 ...
  • 123
0 votes
2 answers
200 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 ...
4 votes
1 answer
251 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 ...
  • 43
2 votes
1 answer
85 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 ...
6 votes
3 answers
948 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 ...
  • 161
2 votes
1 answer
56 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 ...
  • 163
1 vote
1 answer
736 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 ...
  • 2,313
2 votes
1 answer
81 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} \...
  • 988
2 votes
1 answer
474 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 ...
  • 21
2 votes
0 answers
839 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 ...
  • 131
3 votes
1 answer
307 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-...
13 votes
3 answers
21k 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 ...
  • 133
1 vote
1 answer
635 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
1k 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? ...
0 votes
1 answer
269 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 ...
1 vote
1 answer
3k 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 ...
  • 113
1 vote
1 answer
190 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}
  • 13
13 votes
2 answers
13k 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 ...
13 votes
3 answers
8k 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]{...
  • 1,019