Treat tildes as spaces outside URLs

This commit is contained in:
gloamxun committed 2026-10-26 03:54:15 +08:00
1 parent 994c360ec0
commit e6a12fae9a
4 files changed
+20 -6

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ The following packages are accepted as built-ins: `geometry`, `graphicx`,
`amsmath`, `amssymb`, `amsfonts`, `booktabs`, `hyperref`, `cite`, `natbib`,
`inputenc`, `fontenc`, `url`, `nicefrac`, `microtype`, `cleveref`, `lipsum`,
`doi`, `authblk`, and `fancyhdr`. Their commands are approximated where they
affect text (`\url` becomes breakable monospace, `\nicefrac`, `\cref`,
affect text (`\url` becomes breakable monospace (a `~` outside URLs becomes a space, while URLs keep their tildes), `\nicefrac`, `\cref`,
`\doi`, `\lipsum`, `\verb`); `\hypersetup` and `\microtypesetup` remain
PDF-backend no-ops, while fancyhdr's page decorations are painted natively.