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)
- Image upscaled for no apparent reason HOT 7
- Avoid option conflicts between classs and packages HOT 4
- Reformatting examples in clsguide.tex HOT 5
- fpeval expands past its argument HOT 2
- New command: \__kernel_set_arg_to_keyvalue:Nnn HOT 4
- amsmath: `{align}` inherits line-depth of above `{gather}`, results in incorrect vertical placement tags HOT 3
- `\disable@package@load` ready to be used by third-party classes? HOT 1
- \if@reversemargin wrongly documented in source code HOT 1
- expansion of key-value package options differ on the first and second call HOT 2
- \IfInstanceExistTF unavailable in 2024-06-01 pre-release 1 HOT 9
- Adding a .dir-locals.el to the project root directory HOT 5
- \afterpage from afterpage package broken with recent distribution HOT 3
- CamelCase or Pascal case? HOT 3
- array package exhibits a surprising spacing difference when math cells end in explicit spaces
- `flushright` isn't right in rtl paragraphs HOT 13
- Loading `textcomp` turns `LaTeX Info` messages into `Package textcomp Info` messages HOT 22
- Rollback declarations should be improved in several files HOT 2
- \textcircled and TS1 missing circle. HOT 2
- \resizebox* mentioned but unexplained in grfguide? HOT 6
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.