-
Notifications
You must be signed in to change notification settings - Fork 26
UnicodeMath -- mimic LaTeX package unicode-math for more control over font styles
#141
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
Conversation
|
This looks awesome ! Unfortunately, I won't have time to look in details and review this before next week (please ping me if I don't come back to it then).
For a first implementation, this is probably fine. I would like at some point to define a new LaTeXString type that could carry this information, but then there would be some more work to make sure that the info is used/usable by Makie.
I think that for now it doesn't matter much. The main interest of having it as a separate package is that it could be used by others, and you would have full control over it. From my side, depending on another packages (and/or on UnicodeFun) is not a problem.
In principle, we can distribute different part of the software with different licenses (e.g. the fonts in the asset folder are not MIT). How exactly is this PR derived from
I will look into #138 as soon as possible. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #141 +/- ##
==========================================
- Coverage 78.39% 71.23% -7.17%
==========================================
Files 10 13 +3
Lines 597 869 +272
==========================================
+ Hits 468 619 +151
- Misses 129 250 +121 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for the insights :)
No hurry; it is also a side quest for me, as I will need these font-style options for a thesis project.
I think I might try to make it a standalone package and request only minor changes to the
For the main functionality, i.e., the The additional commands I mainly added out of curiosity by automatically scanning a source file and doing regex matching. If we end up with a standalone package, the license does not matter much, and we could easily use LPPL or similar.
|
|
close in favor of #143 |
This is a WIP with the goal of enabling a bit more control over character shapes similar to
unicode-mathin LaTeX.Potentially helps with #94 #107 #137 #124 and similar issues.
Currently, there is a submodule
UnicodeMathwitha) dictionaries for mapping between different shapes/styles within a math alphabet and
b) some extra commands that are also defined in
unicode-math.Based on the dictionaries in
UnicodeMath, we can define commands like\symbf,\symitetc. for the parser.By hooking in the layout routine, it is then possible to mimic different typesetting conventions.
Currently, configuration is a bit clunky... for the
sym_stylefunction, it is done withRefs in the submoduleUnicodeMath, similar to how the font family is defined globally.Besides documentation and clean-up, I am unsure how best to proceed and could use some suggestions, @Kolaru @SimonDanisch
UnicodeMathas a submodule inMathTeXEngineorUnicodeMathintoUnicodeFunorMathTeXEngineMoreover, I am a bit unsure about licensing.
unicode-mathis licensed under "LaTeX Project Public License".Can our code be MIT? If not, then option 3 seems inevitable.
Option 1 has the advantage that we could enable additional symbols to be typeset properly, like
\Bbbsumin the example below, by changing package constants.PS: I have worked with #138 because that is the font I need under Linux.