-
Notifications
You must be signed in to change notification settings - Fork 4
Compare different methods of entering primes in LaTeX Math #10
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
base: master
Are you sure you want to change the base?
Changes from all commits
c7a3c5e
f495bf4
b6f2b4b
32a92dc
d8b69fb
b618a86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,21 @@ | ||
| \begin[papersize=a7]{document} | ||
| \nofolios | ||
| \neverindent | ||
| \font[family=Libertinus Serif,size=12pt] | ||
| \use[module=packages.math] | ||
| \set[parameter=math.font.size,value=16] | ||
| \set[parameter=math.font.family,value=Libertinus Math] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Erm. So we are no longer testing STIX Two Math? We ought, and the output won't be correct in 0.15.9 but will eventually be fixed. No need to remove the case. |
||
|
|
||
| Math mode manners: | ||
|
|
||
| \set[parameter=math.font.family,value=STIX Two Math] | ||
| \begin[mode=display]{math} | ||
| \table[columnalign=right left]{ | ||
| f(x) &= a\prime + b\dprime + c\trprime \\ | ||
| f\prime(x) &= x^2 + 1 | ||
| f(x) &= a^\prime + b^\dprime + c^\trprime \\ | ||
| f^\prime(x) &= x^2 + 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems correct to me, but for full parity with xelatex, we should also see the short-hand variant. |
||
| } | ||
| \end{math} | ||
|
|
||
| \set[parameter=math.font.family,value=Libertinus Math] | ||
| \begin[mode=display]{math} | ||
| \table[columnalign=right left]{ | ||
| f(x) &= a\prime + b\dprime + c\trprime \\ | ||
| f\prime(x) &= x^2 + 1 | ||
| f(x) &= a' + b'' + c''' \\ | ||
| f'(x) &= x^2 + 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, my misunderstanding in the previous comment, you split the shorthand version. Can we stick closer to the xelatex version? |
||
| } | ||
| \end{math} | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,13 +15,19 @@ | |
| \setmathfont{STIX Two Math} | ||
| \[\mathlarger{\begin{aligned} | ||
| f(x) & = a\prime + b\dprime + c\trprime \\ | ||
| f\prime(x) & = x^{2} + 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this one (lacking the |
||
| f(x) & = a^{\prime} + b^{\dprime} + c^{\trprime} \\ | ||
| f(x) & = a' + b'' + c''' \\ | ||
| f\prime(x) & = x^{2} + 1\\ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't be this one a |
||
| f'(x) & = x^{2} + 1 | ||
| \end{aligned}}\] | ||
|
|
||
| \setmathfont{Libertinus Math} | ||
| \[\mathlarger{\begin{aligned} | ||
| f(x) & = a\prime + b\dprime + c\trprime \\ | ||
| f\prime(x) & = x^{2} + 1 | ||
| f(x) & = a^{\prime} + b^{\dprime} + c^{\trprime} \\ | ||
| f(x) & = a' + b'' + c''' \\ | ||
| f\prime(x) & = x^{2} + 1\\ | ||
| f'(x) & = x^{2} + 1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same remarks as for the STIX example. |
||
| \end{aligned}}\] | ||
|
|
||
| Prose poses problems: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd keep that line: Llet's have the non-math font as Libertinus Serif, I am not mistaken LaTeX's
\usepackage{libertinus}does both things in on package (picking Libertinus as main text font and Libertinus Math as math font). Bare SILE needs more lines here (setting the main text font, loading the math support and setting the math font and its size explicitly) for a similar ouyput.