]> git.lyx.org Git - features.git/commit
Support macros from hepnames and hepparticles packages
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 26 Nov 2021 17:22:17 +0000 (18:22 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 27 Nov 2022 18:47:02 +0000 (19:47 +0100)
commitec767f02a059d18b74b97a3465555f62db1c2135
treea6f12a897b848d1db980e326013b82b41e27c61c
parent0266b70a5ab9eaaf3b270697cf8b04c3c9fa17fb
Support macros from hepnames and hepparticles packages

This macros are important for particle physicists. Note that the
package hepparticles as distributed in recent texlive does not work
(see #11804) and need to be patched. This is however not something we
can do, and any physicist wanting to use this will have patched his
own version I guess.

I contacted Andy Buckley, the author of the package, who answered that
he is aware of the issue but does not have time right now to fix it.
The workaround is straightforward: on line 176 of hepparticles.sty,
replace "\updefault" by "n".

Two parts:
- add *lots* of definitions to lib/symbols
- add hepparticles and hepnames as simple features in LaTeXFeatures.

The definitions are courtesy of @renyhp, and extracted from the
aforemented packages:
https://www.ctan.org/pkg/hepparticles
https://www.ctan.org/pkg/hepnames

Fixes bug #11804.
lib/symbols
src/LaTeXFeatures.cpp