Skip to content
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

Problems with newer versions of DW2PDF #15

Open
Juergen-aus-Zuendorf opened this issue Jul 26, 2021 · 0 comments
Open

Problems with newer versions of DW2PDF #15

Juergen-aus-Zuendorf opened this issue Jul 26, 2021 · 0 comments

Comments

@Juergen-aus-Zuendorf
Copy link

Juergen-aus-Zuendorf commented Jul 26, 2021

Hello,

when I write several formulas one below the other, everything is ok on the screen. But in the pdf output the formulas overlay each other:
Example from the plugin page:

<m>S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}</m> 
<m 8>delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }</m>
<m 32>delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3</m>

Result:
grafik

Here is the output with the older versions (since verson 2020-08-20):
grafik

For pdf generation I use the default template.

Notice:
I've described the problem analogously at issue #433 of the dw2pdf plugin

Best regards
Juergen

splitbrain added a commit that referenced this issue Jan 2, 2023
It seems that manually adjusting the vertical alignment is no longer
needed, since inline-block is doing the correct thing already.

For exporting to PDF a higher resolution image is needed. In theory this
could also be used in the browser, but on "normal" displays that looks
even shittier. The proper approach would probably be to render the image
in multiple size and use a source set...

Ideally the underlying library would need to be rewritten to use SVG.

Addresses splitbrain/dokuwiki-plugin-dw2pdf#433, #14 and #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant