Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 5 additions & 9 deletions data/prime-symbol/sile.sil
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]
Copy link
Contributor

@Omikhleia Omikhleia Feb 6, 2025

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.

\use[module=packages.math]
\set[parameter=math.font.size,value=16]
\set[parameter=math.font.family,value=Libertinus Math]
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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}

Expand Down
10 changes: 8 additions & 2 deletions data/prime-symbol/xelatex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this one (lacking the ^ is removed, why do we keep the preceding line? Reading the original description of the test for all languages, I'd tend to guess it expected proper user input (so with a^\prime etc. for the "long" variant, and a' etc. for the short-hand variant), both following The TeXBook. Do we also want to show the output for an incorrect user input? If so, we need both lines, and to explain the issue...

f(x) & = a^{\prime} + b^{\dprime} + c^{\trprime} \\
f(x) & = a' + b'' + c''' \\
f\prime(x) & = x^{2} + 1\\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be this one a ^\prime?

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same remarks as for the STIX example.

\end{aligned}}\]

Prose poses problems:
Expand Down
Loading