Comments (3)
In LaTeX2e 2023-11-01 (see e98027d), to make it safe in csnames, definition of active tilde was changed from
\def~{\nobreakspace{}}
to
Lines 1229 to 1234 in 4472861
The new definition acts like \nobreakspace
without trailing pair of braces when used in non-csnames, for example in math equations.
There's even a code comment (added by a4df9c4) which explains why the {}
is now unneeded.
Lines 1217 to 1220 in 4472861
I think current behavior of ~
in math is more correct. Note the spacing (actually the math class of minus sign) between minus sign and number 2 was interfered by the trailing {}
in ~
prior to LaTeX2e 2023-11-01.
Also maybe math spacing commands \,
, \:
, and \;
are more recommended than ~
.
\RequirePackage{latexbug}
\documentclass{article}
\begin{document}
Before \LaTeXe{} 2023-11-01
\begingroup
\def~{\nobreakspace{}}
\begin{equation}
-1,~ -2
\end{equation}
\endgroup
Starting from \LaTeXe{} 2023-11-01
\begin{equation}
-1,~ -2
\end{equation}
from latex2e.
I see, thank you so much for the detailed explanation! Should I close this issue?
from latex2e.
I would say so, but not the other one you opened up in colortbl because while releated that nevertheless might need some actions.
from latex2e.
Related Issues (20)
- doc documentation (bug?): 'symbolic' name for \levelchar in \index{} example on page 11 produces garbled entry HOT 1
- User-defined marks swallowed if inside multicols HOT 1
- Macros defined with \newcommand are protected when they have an optional argument, but expand fully when they have no optional argument HOT 3
- Empty hook raises error with label-specific message HOT 1
- Extra \endgroup in \AddToHook HOT 5
- Label redefinition - with just one label HOT 1
- Add \protected status to \begin
- `letter.cls` documentation contains offensive term HOT 1
- latex-dev: version is required in luatexbase.provides_module HOT 3
- \dots fails if followed by commands involving primitive `\if`
- Single-branch forms of CamelCase conditionals, continued HOT 1
- Missing composite command for โi with macronโ HOT 1
- Documentation of \ShowCommand HOT 3
- \hook_debug_on: does not log changes made by AddToHookNext HOT 3
- Drop unnecessary \@noitemerr in \addvspace and \addpenalty HOT 3
- usrguide.pdf: Mention space-trimmed aspect of \NewDocumentEnvironment et al.
- Commands with optional argument as last argument cannot be used in argument of `array`'s `>{...}` HOT 30
- \thetotalpages does not match documented value HOT 1
- ltmarks doc should not claim multicol support implemented
- textcolor consumes whitespaces HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latex2e.