Code Monkey home page Code Monkey logo

Comments (13)

elliott-wen avatar elliott-wen commented on May 23, 2024 4

@LubosD Hi, I refactored the repo. Now, you can find all the compilable components like pdftex, xetex, and dvipdfm over there. :D

from swiftlatex.

jaltekruse avatar jaltekruse commented on May 23, 2024

I also ran into this, appears to be fixable with adding a line to a nested Makefile

diff --git a/webassembly/xpdf/Makefile b/webassembly/xpdf/Makefile
index 904d9f1..ff331c8 100755
--- a/webassembly/xpdf/Makefile
+++ b/webassembly/xpdf/Makefile
@@ -11,6 +11,7 @@ xpdf/Lexer.cc  \
 xpdf/Catalog.cc                  \
 xpdf/Stream.cc \
 xpdf/Object.cc  \
+xpdf/PDFDocEncoding.cc \
 xpdf/TextString.cc \
 xpdf/Dict.cc                           \
 xpdf/Error.cc               xpdf/Page.cc               \
diff --git a/webassembly/xpdf/xpdf.a b/webassembly/xpdf/xpdf.a
index f3e9dd9..761bc27 100644

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.

from swiftlatex.

Throvn avatar Throvn commented on May 23, 2024

I have the exact same issue:

0: SwiftLaTeX-(1:0) Unexpected error happened, please check the detailed log. Status 3, Engine: XeLaTeX


I can't find the format file `swiftlatex22p.fmt'!

Could you find a fix by now?

from swiftlatex.

LubosD avatar LubosD commented on May 23, 2024

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.

from swiftlatex.

elliott-wen avatar elliott-wen commented on May 23, 2024

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.

from swiftlatex.

LubosD avatar LubosD commented on May 23, 2024

@elliott-wen Thanks a lot for your answer. But how does swiftlatex_export.wasm get built?

from swiftlatex.

elliott-wen avatar elliott-wen commented on May 23, 2024

from swiftlatex.

LubosD avatar LubosD commented on May 23, 2024

@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 _compilePDF, but this is nowhere to be found in the Git repo. I think you must have forgotten to share the sources of that.

from swiftlatex.

elliott-wen avatar elliott-wen commented on May 23, 2024

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

from swiftlatex.

LubosD avatar LubosD commented on May 23, 2024

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.

from swiftlatex.

elliott-wen avatar elliott-wen commented on May 23, 2024

That's really my fault... I was getting a bit rusty

export_engine.zip

BTW This is the server script we use to host the latex files [](url
texlive.zip
)

Do you want to be the maintainer of this repo? I could grant the admin access to you? @LubosD

from swiftlatex.

LubosD avatar LubosD commented on May 23, 2024

@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.

from swiftlatex.

elliott-wen avatar elliott-wen commented on May 23, 2024

Thanks so much for your help.

I was thinking about the future of this repo.
Probably instead of providing a full-brown Overleaf-like editor, we can just provide a library or tool that generates PDFs from tex files.

from swiftlatex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.