-
Notifications
You must be signed in to change notification settings - Fork 15
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
Compile PDF file #5
Comments
Is it possible to compile the LaTeX server to WebAssembly, and then run it as WebWorker? |
Yes. We have discussed this idea from beginning: https://github.com/SwiftLaTeX/SwiftLaTeX
The cons:
Therefore, we think we should try other methods first. |
Ah I missed this. So I tweaked the implementation in #28 and the compilation speeds are really impressive (few hundred ms for recompilation). The initial compile times take a bit of time but my guess is that has partly to do with the package service. I believe it also already works with I'm encouranged to push for this direction in favor of truly local-first software. Plus it seems like a nice way to show "completeness" in our retreat demo (BTW the header for bootstrapping says "Hackathon" I think we'll probably test this during retreat?) Also we can sidestep AGPL restrictions by keeping all compiler code strictly separated (easy enough) and make it possible to build it as an optional module, similar to what ffmpeg does. Anyway, I'm actually in favor of AGPL (I don't want/see anyone commercializing any part of this) but that's not my call of course. |
Thank you for your hard work! We can separate the compiler as a downloadable module. I'm not sure about the limitation of AGPL. |
Ok, great. How do you suggest to proceed? Can you review the draft PR? Actually I don't think I can make it much cleaner than it is. |
I still prefer to set up a server... But let's discuss this on the retreat. |
Not perfect but currently working. Close for now. |
After #28 is merged, it is able to compile PDF files completely offline after caching necessary files. |
https://github.com/zjkmxy/ndn-workspace-solid/blob/3e46cb7757ff9fcdaeabd339c16a4212d175e01a/src/components/share-latex/share-latex.tsx#L169-L182
Current implementation tries to push a ZIP file to localhost's 6175 port, which is supposed to be running a LaTeX server.
We need a better design for this.
Note: the LaTeX server's code is not published. Please let me know if you need to access it.
Idea: There are two ways. Need discussion.
The text was updated successfully, but these errors were encountered: