Closed Mathnerd314 closed 4 years ago
cc @langston-barrett @7c6f434c @mt-caret @vbgl @veprbl for comments
latinmodern-math
pkgs/data/fonts/lm-math/default.nix – has meta, unpacks only the needed fileslmmath
pkgs/data/fonts/lmodern/lmmath.nix – resides in the same directory with lmodern
, tries to provide texmfSo, perhaps, we should keep the implementation of latinmodern-math
under the name lmmath
and make latinmodern-math
an alias. The satysfi needs to be fixed to use existing packages (also implements a duplicate of lmodern
).
Well, for texmf one would presumably use the TexLive package, as it has separated run
and doc
outputs unlike the other packages. And it auto-updates along with the rest of TexLive.
The only issue with using it as the sole package is that it's not a multiple output derivation so using it in the fonts list looks like
builtins.elemAt texlive.lm-math.pkgs 0
rather than just texlive.lm-math
.
It shouldn't be that hard to set up TexLive to have attributes usable directly, by setting outPath
and so forth. Nix doesn't support multiple outputs for fixed-output derivations, so it'd be a bit of a hack.
The "packages" in texlive
are set up to be used with texlive.combine
. They were not intended to be used in any other way.
A grep of
lm-math
:The latest version is 1.959 per http://www.gust.org.pl/projects/e-foundry/lm-math/download.
I'd say that the texlive and fonts/lm-math versions can stay as they have different paths (
fonts/opentype/public/lm-math/latinmodern-math.otf
vsshare/fonts/opentype/latinmodern-math.otf
), although ideally just the texlive version would stay, but the others are not helping anything at all.