Skip to content

Commit 92d8313

Browse files
committed
Use a consistent size and position for all tildes.
1 parent c4ce2ae commit 92d8313

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/macros.tex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,13 @@
126126
\newcommand{\dcr}{-{-}}
127127
\newcommand{\exor}{\^{}}
128128
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
129-
% \renewcommand{\tilde}{{\smaller\ensuremath{\sim}}} % extra level of braces is necessary
130-
\renewcommand{\tilde}{\protect\raisebox{-.5ex}{\larger\textasciitilde}}
129+
130+
% Make all tildes a little larger to avoid visual similarity with hyphens.
131+
% FIXME: Remove \tilde in favour of \~.
132+
\renewcommand{\tilde}{\textasciitilde}
133+
\renewcommand{\~}{\textasciitilde}
134+
\let\OldTextAsciiTilde\textasciitilde
135+
\renewcommand{\textasciitilde}{\protect\raisebox{-0.17ex}{\larger\OldTextAsciiTilde}}
131136

132137
%%--------------------------------------------------
133138
%% States and operators

0 commit comments

Comments
 (0)