Skip to main content

Questions tagged [tilde]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 views

Issue with \tilde symbol appearance when using unicode-math package in LaTeX

I am experiencing an issue with the appearance of \tilde{x} in equation environment when using the unicode-math package (see the left figure). Specifically, \tilde{x} looks different from the one ...
Heritis's user avatar
4 votes
2 answers
275 views

Tilde sign in URL is appearing in superscipt position

The Tilde (~) sign in the URL appears in the superscript position. How can I change it so that it gets the same position (near the normal line) as in the text here? \documentclass[12pt,twoside]{report}...
raf's user avatar
  • 719
3 votes
2 answers
71 views

url with `\urlstyle(same)` seems to force `lowtilde`

When using \urlstyle{same}, the url package will substitute a low 'faked' tilde, even if the lowtilde option is not specified: \documentclass{article} \usepackage{url} \urlstyle{same} \begin{...
oulenz's user avatar
  • 167
4 votes
2 answers
89 views

Clash between \footnote{} and \widetilde{} in revtex document class

I am writing a research paper using the revtek4-2 (or revtex4-1) document class, and I need to write a footnote containing a mathematical symbol that requires \widetilde (not \tilde). It seems that ...
Andrea Urru's user avatar
0 votes
1 answer
51 views

Tilde floats above superscript instead of above letter

\begin{equation} \begin{split} \Tilde{B_{k}^{ij}} = f(B^{i})_{k} + (1 - \lambda) f(B^{j})_{k} \\ \Tilde{y^{ij}} = \lambda y^{i} + (1 - \lambda) y^{j} \end{split} \end{equation} This is my current ...
postnubilaphoebus's user avatar
0 votes
1 answer
64 views

Diffcoeff version 5 tilde

my distribution updated diffcoeff to version 5.3 and now a lot of stuff is broken: Powers of \dl, e.g. \dl^2 x don't work anymore (See Powers of \dl with diffcoeff) Symbols with a tilde on them don't ...
damendred's user avatar
6 votes
1 answer
500 views

How to compile a file with tilde (`~`) in the name?

I have just discovered with surprise that if a TeX file has a tilde ~ in its name, xelatex and pdflatex refuse to compile it: $ cat te\~st.tex \documentclass{article} \begin{document} Hello. \end{...
Alexey's user avatar
  • 2,161
0 votes
0 answers
35 views

Is the preferred use of tilde command with braces?

It looks like the standard way of using the \tilde is as in $\tilde{a}$. However, I saw a latex document in which the usage was $\tilde a$. Will the two ways of defining a tilde produce the same ...
Andre's user avatar
  • 1,021
2 votes
1 answer
117 views

Spacing problem of really wide tilde

Based on this answer, I implement two versions of \widetilde, which is wide enough to cover all the text I want: \documentclass{article} \usepackage{amsmath,amssymb,stackengine,scalerel} \newlength\A \...
Yijun Yuan's user avatar
3 votes
2 answers
863 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.
apadana's user avatar
  • 205
1 vote
2 answers
262 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 ...
James6M's user avatar
  • 11
1 vote
1 answer
53 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 ...
Ismael Manzanares Carmona's user avatar
0 votes
1 answer
363 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 ...
Irati's user avatar
  • 23
2 votes
2 answers
181 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 ...
Grey's user avatar
  • 27
2 votes
1 answer
67 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 ...
Ann's user avatar
  • 529
1 vote
1 answer
42 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} \...
RosesBouquet's user avatar
2 votes
1 answer
172 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 ...
Rebecca J. Stones's user avatar
0 votes
2 answers
3k 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 ...
Robbie Mallett's user avatar
3 votes
2 answers
613 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{\...
Felix O's user avatar
  • 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 (...
Timo's user avatar
  • 1
0 votes
0 answers
45 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 ...
user8463's user avatar
3 votes
1 answer
50 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.
user8463's user avatar
2 votes
2 answers
561 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 ...
jiwopene's user avatar
  • 189
0 votes
1 answer
207 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, ...
NirvanicUniverse's user avatar
0 votes
1 answer
236 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 ...
Tonechas's user avatar
  • 976
1 vote
2 answers
149 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 $...
Kobi's user avatar
  • 164
2 votes
2 answers
743 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{...
Ongky Denny Wijaya's user avatar
0 votes
0 answers
66 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 ...
AJP's user avatar
  • 63
2 votes
3 answers
147 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 ...
Robert Seifert's user avatar
0 votes
1 answer
171 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{\...
MajorMajorMajorMajor's user avatar
1 vote
1 answer
657 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: ...
Danny Quah's user avatar
0 votes
0 answers
581 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 ...
Cham's user avatar
  • 2,328
2 votes
2 answers
4k 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.
dxander's user avatar
  • 21
4 votes
1 answer
119 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 ...
Dave Jarvis's user avatar
1 vote
0 answers
96 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 ...
ClearlyProcastinating's user avatar
2 votes
2 answers
219 views

\tilde in parenthesis

How could this command be done? I mean a \tilde.
eraldcoil's user avatar
  • 263
2 votes
1 answer
329 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 \...
Piotr Tarasov's user avatar
0 votes
1 answer
1k 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} ...
aan's user avatar
  • 2,693
4 votes
1 answer
4k 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 ...
Skydiver's user avatar
  • 977
0 votes
1 answer
377 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]{...
ASeaton's user avatar
1 vote
2 answers
2k 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 ...
Kirtpole's user avatar
  • 123
0 votes
2 answers
247 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 ...
bgrundy's user avatar
4 votes
1 answer
312 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 ...
Ilya68's user avatar
  • 43
2 votes
1 answer
100 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 ...
Boris Valderrama's user avatar
6 votes
3 answers
1k 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 ...
zenna's user avatar
  • 161
2 votes
1 answer
77 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 ...
towe's user avatar
  • 163
1 vote
1 answer
893 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 ...
shuhalo's user avatar
  • 2,545
2 votes
1 answer
87 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} \...
Peter's user avatar
  • 998
2 votes
1 answer
620 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 ...
Steven's user avatar
  • 21
2 votes
0 answers
1k 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: [email protected]}, James Jameson$^1$, Will ...
GeoMonkey's user avatar
  • 131