Tilde \textasciitilde and fix ~ in \verb (#1286)

* \textasciitilde and fix ~ in \verb

* Add support for `\textasciitilde` which reproduces tilde character
  in text mode.
* Make `~` render as tilde instead of space within `\verb`,
  by manually mapping that character to `\textasciitilde`.
  This seems to be the only character that needs such manual mapping
  to reproduce LaTeX's `\verb` behavior.

* Add `, -, ', ~ to Verb screenshot test
This commit is contained in:
Erik Demaine
2018-05-09 08:48:47 -04:00
committed by GitHub
parent 43bfaedbc8
commit 3e529dd5a0
5 changed files with 7 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -358,6 +358,7 @@ Verb: |
\verb* \verb* , & \verb*|\verb* |, \\
\verb!<x> & </y>! & \scriptstyle\verb|ss verb| \\
\verb*!<x> & </y>! & \small\verb|sm verb| \\
\verb|``---''~|
\end{array}
VerticalSpacing:
pre: potato<br>blah