Comments (13)
@LubosD Hi, I refactored the repo. Now, you can find all the compilable components like pdftex, xetex, and dvipdfm over there. :D
from swiftlatex.
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.
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.
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.
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.
@elliott-wen Thanks a lot for your answer. But how does swiftlatex_export.wasm get built?
from swiftlatex.
from swiftlatex.
@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.
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.
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.
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
texlive.zip
)
Do you want to be the maintainer of this repo? I could grant the admin access to you? @LubosD
from swiftlatex.
@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.
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)
- [Enhancement] Change editor font size
- Demo page is not loading HOT 1
- Docker image and documentation HOT 11
- Bug: setTexliveEndpoint HOT 3
- How to run on localhost HOT 4
- Can this library be used in node.js? HOT 21
- CORS access to mirror? HOT 3
- How to make the engine use the local texlive file for typesetting? HOT 4
- ReferenceError: cwrap is not defined swiftlatexpdftex.js HOT 2
- Is the demo working? HOT 4
- warning: sorry, PostScript images are not supported by Tectonic
- Output svg HOT 2
- Future? HOT 5
- How to properly process figures (e.g., pdf files)? HOT 2
- Question: Why PdfTeX and XeTeX instead of LuaTeX? HOT 2
- How can I use the wysiwyg editor?
- Spaces in folder name
- _maloc is not defined HOT 2
- Issue with PdfTeXEngine.js Integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftlatex.