Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mathtext: Finetuning sup/super block to match TeX reference#4873

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mdboom merged 14 commits intomatplotlib:masterfromzblz:subsuper-finetune
Aug 25, 2015
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
14 commits
Select commitHold shift + click to select a range
3a32194
first attempt
zblzAug 6, 2015
800ff30
shrink after Hlist!
zblzAug 6, 2015
8007cd1
latest finetuning for cm, other fonts will need different parameters!
zblzAug 6, 2015
22a6682
finetune stix and stixsans
zblzAug 6, 2015
2ade0fa
add tests for brackets
zblzAug 7, 2015
84ace61
apply different rules for dropsub (integrals)
zblzAug 7, 2015
2b050ec
add sub/superscript parameters for Arev Sans
zblzAug 7, 2015
4d7d377
remove kerning between nucleus and sub or super
zblzAug 8, 2015
c56e56e
improve integral and slanted nuclei placement
zblzAug 8, 2015
4d1c494
remove redundant test
zblzAug 10, 2015
ccdeeba
implement comments by mdboom
zblzAug 24, 2015
341d481
add all baseline images with subsuper
zblzAug 24, 2015
43b5455
fix no nucleus in mathtext
zblzAug 24, 2015
f1fe6e5
add baseline images changed outside of test_mathtext and new test
zblzAug 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix no nucleus in mathtext
  • Loading branch information
@zblz
zblz committedAug 24, 2015
commit43b5455aa3fca4ec9e00e0eb4f9f2896e4b51bcc
3 changes: 2 additions & 1 deletionlib/matplotlib/mathtext.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2791,7 +2791,8 @@ def subsuper(self, s, loc, toks):
# create new Hlist without kerning
nucleus = Hlist(new_children, do_kern=False)
else:
last_char.width = last_char._metrics.advance
if isinstance(nucleus, Char):
last_char.width = last_char._metrics.advance
nucleus = Hlist([nucleus])

# Handle regular sub/superscripts
Expand Down
1 change: 1 addition & 0 deletionslib/matplotlib/tests/test_mathtext.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -101,6 +101,7 @@
r'$xyz^kx_kx^py^{p-2} d_i^jb_jc_kd x^j_i E^0 E^0_u$', # github issue #4873
r'${xyz}^k{x}_{k}{x}^{p}{y}^{p-2} {d}_{i}^{j}{b}_{j}{c}_{k}{d} {x}^{j}_{i}{E}^{0}{E}^0_u$',
r'${\int}_x^x x\oint_x^x x\int_{X}^{X}x\int_x x \int^x x \int_{x} x\int^{x}{\int}_{x} x{\int}^{x}_{x}x$',
r'testing$^{123}$',

]

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp