New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changing font series defaults #306
Comments
no you don't. That's a bug. The logic to work around the fact the CM/LM need bx while more or less any other font needs b is obviously not quite correct, i it doesn't take a change of So here is a possible patch -- not necessarily the one that goes into the kernel in the end but give it a try:
|
Thanks. This would still fail, however, when the change happens inside the document. I'm aware that |
I guess there is no way to avoid getting some edge cases that are behaving differently when you extend functionality, but maybe the following logic will make old and new work together well enough.
The processing logic is then:
Does that make sense or did I overlook a case? |
I should add that I think it is next to impossible (with reasonable effort) to detect the case that \bfdefault was changed to itself so if that happen I guess no resetting of the meta family defaults will happen. |
That should now also be covered thanks to a good suggestion by @zauguin . |
Thanks, looks good to me. |
For platex and friends there is an open request to support this in a more structured way: 85b982e#commitcomment-37946221 will think about how to best handle the so move back to in progress. |
Use new hook management for the hooks in fall release --- so reopen |
@aminophen The NFSS commands now have hooks using the new hook management scheme --- this will become available with -dev release (III) around 1st of October (the old names should still be supported for now but if would be good to alter external code, as eventually that legacy support should get dropped). |
@FrankMittelbach Thanks --- I will check the new scheme soon. |
Brief outline of the bug
The new font series management seems to make it impossible to change the default series other than, well, through the new font series management. Modifying
\bfdefault
or\mddefault
won't have any effect anymore because the values in\bfseries@rm
etc. will always take precedence. Is this really the intended behaviour? I sense some major compatibility issues here.Secondly, specifying
\DeclareFontSeriesDefault
without the optional argument won't be effective, either (for the same reason), which actually makes the optional argument mandatory.Or am I missing something completely?
Minimal example showing the bug
Log file (required) and possibly PDF file
test.log
The text was updated successfully, but these errors were encountered: