Fontspec question: Say I've defined a new fontfamily \FooBar, what is the proper way to locally redefine \rmdefault to use \FooBar? I have a setup that I'm testing and some of the data is set via \url (with \urlstyle{rm}) and I need to change that font as well, so just issuing \FooBar does not work.
Since it is only \urls rm style, and \urlstyle{rm} is littered inside the code it is probable best to do something like \makeatletter \def\url@rmstyle{% \def\UrlFont{\FooBar}} \makeatother
@DavidCarlisle Too late, I just sent it off. Was more thinking about the users on OverLeaf. Karl kan take it if he wants.
@DavidCarlisle apparently I need your help with git. It seems I've sent my version number changes to master branch instead of main. I thought I had rebased or what ever my local repro.
@daleif there is no master branch (for reasons of politics and social justice) if your local checkout is still on a master branch then execute thise to get on to main:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin main
@daleif overleaf won't take the first cut of 2024 so any udates in the next few weeks will make it on to overleaf
Do we have a guide or an answer on the site as to how one can substitute the math letters under lualatex by and italic text font from a non math font? (just for testing, wanted to see what was possible)
It you want really to change \mathbf and similar: This is done easily by (re)declaring the math alphabets.
The problem starts if you want to adapt the \symXX commands which normally map chars to the glyphs on the mathematical plan. Here the implementation is rather broken. It works more or less...
@DavidCarlisle it seems to work. Can one scale it as well (the setup is a but wonky, as some part has scaling uptions others does not, so smallest cdommon demonimator dictates).
Scaling works
Hmm, might has an ok math setup for one of our AU fonts under LuaLaTeX then. (using KpMath-Sans with letters and perhaps numbers substituted, need to see how the kerning ends up. I think I've played with this before and things have often turned up bad after some testing)
@JosephWright clearly a not-so-well-thought-through-interface-issue: tex.stackexchange.com/a/712811/117050. \keys_precompile:nnN should've always set a function, imho.
@daleif yes that's come up before with different packages. If I remember correctly the generator has started generating regular as the font shape but latex expects m and expecially expects m/n as the default fallback font so if it's not theer it mans (although won't actually matter unless you select a missing font and the fallback is needed) the package sould get fixed:-)
@JosephWright hm, just another reason why expkv is superior, it doesn't have to deal with that distinction and hence it is clear that it assigns to a function (also, you can use #1...#9 in precompiled keys, so maybe \keys_precompile_cs:Npnn?)