-
Notifications
You must be signed in to change notification settings - Fork 109
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
Cannot build WASM core #67
Comments
I also ran into this, appears to be fixable with adding a line to a nested Makefile
I'm still having trouble running it though, because even the local version reaches out the currently offline hosted version to download a binary file called swiftlatex22p.fmt that I am having trouble finding anywhere. |
I have the exact same issue:
Could you find a fix by now? |
Here: https://drive.google.com/file/d/1VYOktAnug02dpF_xnb1ewWhaYCyNjwbs/view?usp=sharing But I already managed to forget how I generated it last year. I think I copied it from xetex? I wish the author was more communicative. BTW: there are even no sources published for swiftlatex_export.wasm, which is dvipdfmx. |
Hi, all. Sorry for the late response. I am really struggling with making a life recently. Life is hard :( @LubosD There's a complete XeTeX engine source code under the webassembly directory. Also inside the pre.js file, there is a compileLaTeXFormatRoutine, which can generate the format. |
@elliott-wen Thanks a lot for your answer. But how does swiftlatex_export.wasm get built? |
Inside the folder,
https://github.com/SwiftLaTeX/SwiftLaTeX/tree/master/webassembly, we have a
makefile. Setting up emscripen and type make should do the trick.
Also the output webassembly is looking for LaTeX template files from a remote server,
which was broken as I didnt have enough money to pay for it.
The server is just a python script. I will go find the source code and
share it with you.
…On Mon, 7 Feb 2022 at 07:50, Luboš Doležel ***@***.***> wrote:
@elliott-wen <https://github.com/elliott-wen> Thanks a lot for your
answer. But how does swiftlatex_export.wasm get built?
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLPC3EEXPHP4JOPPF3DX5LUZ27IJANCNFSM5JBHDUSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@elliott-wen Well, I know about that, it builds swiftlatex.wasm, which can also produce DVI files. But then there's DvipdfmxEngine, which uses swiftlatex_export.wasm. This WASM file exports functions like |
oh, i see. I guess you misunderstood... the engine is actually modified to generate html/svg directly. https://github.com/SwiftLaTeX/SwiftLaTeX/blob/master/webassembly/xetexdir/XeTeXHTML.cpp :D |
I'm well aware, but it apparently has support for generating PDFs as well, which is the primary reason why I took interest in it :-) And also why I push for open sourcing the dvipdfmx webassembly port. |
That's really my fault... I was getting a bit rusty BTW This is the server script we use to host the latex files [](url Do you want to be the maintainer of this repo? I could grant the admin access to you? @LubosD |
@elliott-wen I'm not sure I'd have time to be a true maintainer :-) Especially because I'm more interested in client-side PDF generation (from .tex files) than the interactive online editing functionality. But at least I could import the sources you posted into Git, produce Docker images (incl. Dockerfiles) so that people can get things running easily on their end etc. etc. |
Thanks so much for your help. I was thinking about the future of this repo. |
@LubosD Hi, I refactored the repo. Now, you can find all the compilable components like pdftex, xetex, and dvipdfm over there. :D |
After going through the instructions, after
make
I get:The text was updated successfully, but these errors were encountered: